Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

excel macro

Status
Not open for further replies.

HOMMER

Technical User
Apr 12, 2001
112
US
want a macro to look a cell say a2 that has a number. this number will be different every day and the user types in the number each day. then using this number look at column b and subtract the number that is in a2 untill it is 0 or less. At this point print say in cell c1 the cell number it ran out on. example:
a2 = 401 b2 = 150 c2 = b5 (the number 401 ended at
b3 = 100 cell b5 so i want to
b4 = 150 say 401 will end on b5)
b5 = 100


thanks for the help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top