Multiple IF statements
Hi, I'm attemping to assign PRICE to items based on CONDITION and CATEGORY but my limited skills with formulas are keeping me from my desired results. I'm hoping some one can help me out.
In my PRICE column if have the following formula. It works for the "Chair" category but nothing else. Any guidance is appreciated.
=IF(AND(Condition@row = "Fair"), IF(Category@row = "chair", "$5.00"), IF(AND(Condition@row = "good"), IF(Category@row = "chair", "$10.00"), IF(AND(Condition@row = "excellent"), IF(Category@row = "chair", "$15.00"), IF(AND(Condition@row = "Fair"), IF(Category@row = "storage", "$10.00"), IF(AND(Condition@row = "good"), IF(Category@row = "storage", "$20.00"), IF(AND(Condition@row = "excellent"), IF(Category@row = "storage", "$30.00"), IF(AND(Condition@row = "Fair"), IF(Category@row = "Large Furniture", "$25.00"), IF(AND(Condition@row = "good"), IF(Category@row = "large furniture", "$50.00"), IF(AND(Condition@row = "excellent"), IF(Category@row = "large furniture", "$75.00"), IF(AND(Condition@row = "Fair"), IF(Category@row = "small furniture", "$5.00"), IF(AND(Condition@row = "good"), IF(Category@row = "small furniture", "$10.00"), IF(AND(Condition@row = "excellent"), IF(Category@row = "small furniture", "$15.00")))))))))))))
Thank you!
Ken
Best Answer
-
Try this:
=IF(AND(Condition@row = "fair", Category@row = "chair"), 5, IF(AND(Condition@row = "good", Category@row = "chair"), 10, IF(AND(Condition@row = "excellent", Category@row = "chair"), 15, IF(AND(Condition@row = "fair", Category@row = "storage"), 10, IF(AND(Condition@row = "good", Category@row = "storage"), 20, IF(AND(Condition@row = "excellent", Category@row = "storage"), 30, IF(AND(Condition@row = "fair", Category@row = "large Furniture"), 25, IF(AND(Condition@row = "good", Category@row = "large furniture"), 50, IF(AND(Condition@row = "excellent", Category@row = "large furniture"), 75, IF(AND(Condition@row = "fair", Category@row = "small furniture"), 5, IF(AND(Condition@row = "good", Category@row = "small furniture"), 10, IF(AND(Condition@row = "excellent", Category@row = "small furniture"), 15, "not found"))))))))))))
Format your Price column for $.
Answers
-
Try this:
=IF(AND(Condition@row = "fair", Category@row = "chair"), 5, IF(AND(Condition@row = "good", Category@row = "chair"), 10, IF(AND(Condition@row = "excellent", Category@row = "chair"), 15, IF(AND(Condition@row = "fair", Category@row = "storage"), 10, IF(AND(Condition@row = "good", Category@row = "storage"), 20, IF(AND(Condition@row = "excellent", Category@row = "storage"), 30, IF(AND(Condition@row = "fair", Category@row = "large Furniture"), 25, IF(AND(Condition@row = "good", Category@row = "large furniture"), 50, IF(AND(Condition@row = "excellent", Category@row = "large furniture"), 75, IF(AND(Condition@row = "fair", Category@row = "small furniture"), 5, IF(AND(Condition@row = "good", Category@row = "small furniture"), 10, IF(AND(Condition@row = "excellent", Category@row = "small furniture"), 15, "not found"))))))))))))
Format your Price column for $.
-
That did it. You rock! Thank you very much!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!