Formula to find and retrieve a specific value from a list with multiple values
Hi Community,
I am not sure what formula or combination of formulas to use for the below example:
I have a list of Spring products, each product is sorted into a type, and a similar list for Fall products. For each product I have a column to check if that specific product has an image. In a different sheet (here I use columns TYPE 2 & FORMULA?? but those should be on a different sheet), I have my list of types and I am looking for a formula that outputs the following: Look in the Spring table to see if any pant has an image, if it has an image output yes. If none of the Spring pants have images, look to see if any Fall pants have images. If any have an image, output yes, if none have images, output no.
Is there anything that I can use for that? Thanks in advance!
Best Answers
-
Hey @emka
Try this:
=IF(OR(COUNTIFS({Source sheet Spring Type column}, Type@row, {Source Sheet Spring Image column}, "Yes") > 0, COUNTIFS({Source Sheet Fall Type}, Type@row, {Source Sheet Fall Image column}, "Yes") > 0), "YES", "NO")
In case you are unfamiliar with 'cross sheet references' you will have to physically create references - you cannot simply copy paste this formula into your sheet. If you haven't created references before, see this link
Will this work for you? If you need any help, just shout out
Kelly
-
I'm glad that it worked for you and even happier that you further modified it to better suit your needs.
Kelly
Answers
-
Hey @emka
Try this:
=IF(OR(COUNTIFS({Source sheet Spring Type column}, Type@row, {Source Sheet Spring Image column}, "Yes") > 0, COUNTIFS({Source Sheet Fall Type}, Type@row, {Source Sheet Fall Image column}, "Yes") > 0), "YES", "NO")
In case you are unfamiliar with 'cross sheet references' you will have to physically create references - you cannot simply copy paste this formula into your sheet. If you haven't created references before, see this link
Will this work for you? If you need any help, just shout out
Kelly
-
Hi @Kelly Moore ,
That is fantastic thank you so much! Worked like a CHARM and I was able to modify it to add 3 extra source sheets.
-
I'm glad that it worked for you and even happier that you further modified it to better suit your needs.
Kelly
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!