IMPOSSIBLE MACRO TO WRITE..............Or so it seems! :-)

Status
Not open for further replies.

sssb2000

Well-known Member
Joined
Aug 17, 2004
Messages
1,169
Hi everyone,
I'm writing a very large code and this is one of the last parts i can't figure out to complete the entire thing :)
I was wondering if anyone could help me write a code for the following problem:

code would

-Check with cell "G39" to see if the value is greater than 0, if so:
-search Column AA
-Find the lowest set of numbers (in the example above, it would be 4)
-Add 1 to the rows corresponding to that number.But add the 1 in column Z
-Subtract 1 from G39 (so in this case, Z964:Z968 would all get a 1 BUT G39 would only lose 1 NOT 5)
-check to see if G39 is greater than 0...If so:
-search AA again, find the lowest number (code MUST NOT add to a number more than once....so in the second search, it would choose 9)
-add 1 to the corresponding rows..but in Column Z
-subtract 1 from G39

-Do this until G39 is zero

Please help :pray:
non-Working v7 1-31-05.xls
ZAAABAC
9644
9654
9664
9674
9684
969
9709
9719
9729
973
97429
97529
97629
97729
97829
97929
980
98156
98256
98356
98456
98556
98656
Sheet1
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Please continue in your original thread:
hhttp://www.mrexcel.com/board2/viewtopic.php?t=127800
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,203,027
Messages
6,053,120
Members
444,640
Latest member
Dramonzo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top