help with formula's
hello new to smartsheets. i am looking to make a V lookup that will crosslookup on 2 sheet to tell me if it is on that sheet or not.
this is what i come up with so far.
=IFERROR(IF(ISBLANK($[Cable Name]@row), VLOOKUP($[Cable Name]@row, {K2 Power/Motor Cable List Tracker Range 1}, 1, false)) Motor, 0)
I would like it to say "Motor" if it is on the K2 Power/Motor Cable List sheet and "Instrument" if its on the K2 Instrument Tacker.
I cant seem to find a way to use 2 different Ref in 1 formula.
Best Answer
-
The way I would do this is actually to use a cross-sheet COUNTIF Function formula.
This will COUNT if that specific value appears on Sheet 1, and if it does (or if the count is greater than 0), then return a specific text. However if it doesn't (so the COUNT is 0), we can then say, try this other COUNTIF formula looking at a second sheet!
So for example, here's the first COUNTIF statement:
=IF(COUNTIF({K2 Power/Motor Cable List Column}, [Cable Name]@row) > 0, "Motor"
The {range} would only need to be the one column that has the Cable Names listed. (See: Cross-sheet formulas)
Then we continue the formula, where if it's not greater than 0, we check the other sheet.
IF(COUNTIF({K2 Instrument List Column}, [Cable Name]@row) > 0, "Instrument"
Now, if neither of these formulas is True (they both say 0), we can say "Not Found" or something similar.
Try this full formula:
=IF(COUNTIF({K2 Power/Motor Cable List Column}, [Cable Name]@row) > 0, "Motor", IF(COUNTIF({K2 Instrument List Column}, [Cable Name]@row) > 0, "Instrument", "Not Found"))
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Answers
-
The way I would do this is actually to use a cross-sheet COUNTIF Function formula.
This will COUNT if that specific value appears on Sheet 1, and if it does (or if the count is greater than 0), then return a specific text. However if it doesn't (so the COUNT is 0), we can then say, try this other COUNTIF formula looking at a second sheet!
So for example, here's the first COUNTIF statement:
=IF(COUNTIF({K2 Power/Motor Cable List Column}, [Cable Name]@row) > 0, "Motor"
The {range} would only need to be the one column that has the Cable Names listed. (See: Cross-sheet formulas)
Then we continue the formula, where if it's not greater than 0, we check the other sheet.
IF(COUNTIF({K2 Instrument List Column}, [Cable Name]@row) > 0, "Instrument"
Now, if neither of these formulas is True (they both say 0), we can say "Not Found" or something similar.
Try this full formula:
=IF(COUNTIF({K2 Power/Motor Cable List Column}, [Cable Name]@row) > 0, "Motor", IF(COUNTIF({K2 Instrument List Column}, [Cable Name]@row) > 0, "Instrument", "Not Found"))
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives