Macro Multiplying Cells Depending on Data Validation
Posted by Wilma on March 23, 2001 9:35 AM
I have a worksheet in Excel 97. I have seven cells set up with data validation in column F from F25 to F31. Each of these seven cells only accept the following words: Shoe, Shirt, Tie and Total. I have another column to enter amounts (numbers). This column is made up of cells J25 to J31. I want Excel to do the following: That any number I enter in J25 be multiplied in this same cell by 0.12 only when it sees the word Shirt in F25 (its adyacent cell); but if the same thing happens entering any number in cells J26 thru J31 and the same word (Shirt) is seen in in their adyacent F26 thru F31 cells, the number entered should be multiplied by 0.12. I also want Excel to do the same if the word selected is Shoe instead of Shirt. In this case, the multiplication should be by 0.25 instead of 0.12. Could anybody help? Your answer will be appreciated. Thanks.