Help with Excel Macros

Discussion in 'Software' started by leduchieu, Aug 24, 2004.

  1. leduchieu

    leduchieu Private E-2

    Hi mate!
    I have a range of numbers in one cells. My taks is using excel to seperate 3 digits pairs for all numbers and validate it. If 3 digits are bigger than 500 then turn that delete that 3 digits pair. In the end, the task ask to count the total 3 digits pairs. I'm just newbie so it'd be hard for me to write a macro to do such complicated task. So please help me.

    Here is the numbers
    1328416834741519202724670366650077022878021795160207270765179727545960
    2122400370304200388396648894284158317564273956390441548491978227724120
    9905247887810856493366279804326579383287341421324130590977603584891983
    0019950993986033845287890946246972157484675017763844331112577113111059
    605786483287333786707936987109853927186312378061244488978197040195419
    9124018312174410192918163692013121154288392963731865724904017901762077
    9745814229120635961132249904663321619358025915426388449019120743650813
    3524938646344757241760514692571248951924868719244636607114583044052639
    3898046600117591190046743278607794039298978389514532378680388935137005
    1075052745387498736558959537318929559062394041319859960704082981283126
    3624727850739582067337800638357105184724524922234278071174569610418327
    7099466986997447243801174421591139220724543223692370009232336543859685
    9963894702114631814881386804319062852506020168515188598478210026582525
    7205515774438579980510419769392599303544215608347143989907702296544247
    2403865541857885583538835593991379035112013243952076210224678327532286
    7497614631359082822139470915481285430166090737588736782002689712157676
    3555371628701892643663407911789034855359803924101236270777868957821059
    3567612797514348297642010263449292092155588075464458581953317862973344
    7481567523729852318302446635949892420633588428596107648701643499467662
    4524688048651735098991060898943606332819685599922149475505583469871800
    7650947069863784179711910496728857597966324661008354728819725897530761

    Thanks!!
     
  2. usafveteran

    usafveteran MajorGeek

    Well, I don't think I can tell you how to create a macro to do this, but I think you need to clarify your requirements for the benefit of anyone who might be able to help you.

    Exactly how do you want to group those numbers? Starting from the upper left corner and simply going from left to right and chopping off three digits at a time? Or, is it more complicated than that? I see you have 70 characters in each row except the fifth row down, which has 69 characters. 70/3 leaves a remainder of 1. If the 23 sets of 3 digits are taken from row 1, again, is that last digit supposed to be combined with the first two digits of the next row?
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds