awsumchillicrab
Board Regular
- Joined
- Jan 30, 2011
- Messages
- 56
Hi Excel people.
I've got something like this:
Column A showing grocery items, and they can repeat.
Column B showing the number of that item I need.
Column C showing the number of that item I bought in a transaction.
If I need 10 cucumbers and have bought 7 so far in two transactions...
A2 and A10 may say "cucumber"
B2 and B10 will both be "10"
C2 and C10 may be "3" and "4" respectively.
I'm trying to make a macro that will add 3+4, then replace C2 with "7" and delete the entire row10. So that at the end of the macro, "cucumber" will only ever show up once in column A.
If i buy 2 more cucumbers today, I'd like to add the transaction at the bottom of my table, re-run the macro, and have C2 showing "9".
Any help will be great, thanks!
I've got something like this:
Column A showing grocery items, and they can repeat.
Column B showing the number of that item I need.
Column C showing the number of that item I bought in a transaction.
If I need 10 cucumbers and have bought 7 so far in two transactions...
A2 and A10 may say "cucumber"
B2 and B10 will both be "10"
C2 and C10 may be "3" and "4" respectively.
I'm trying to make a macro that will add 3+4, then replace C2 with "7" and delete the entire row10. So that at the end of the macro, "cucumber" will only ever show up once in column A.
If i buy 2 more cucumbers today, I'd like to add the transaction at the bottom of my table, re-run the macro, and have C2 showing "9".
Any help will be great, thanks!