Hello everyone, I need help creating a macro with a math problem in it.
I have variables from drop down lists in C3 and C4 Which is currently a African Sumac and Agave and the count of how many was removed that day to the left of them.
plants removed
Count Type
5 AFRICAN SUMAC
2 AGAVE
Then i have the current inventory below it with the plant type in C8;9;10 and the current count to the left of those
Current Inventory
Count Type
100 AFRICAN SUMAC
50 ARISTOCRAT PEAR
60 AGAVE
Heres my question, is it possible to make a code that subtracts the removed count from the current count dependent on if the plant types match? and since i am using a large drop down list for the removed plant material would it be possible to make the removed count default to 0 at any time that the plant type is changed. The reason for this is that if there is a code to make it subtract the removed from the current i wouldnt want it to subtract automatically if the removed variable changes via the drop down list. does that make sense? Maybe i could use a module with a macro and a button procedure?
I appreciate all and any help. I have also created a small scale sample of would i would like to do... here is the download link.
http://wikisend.com/download/452542/Book1.xls
Bookmarks