IF, INDEX, MATCH formula help
I need to add an IF statement into an INDEX MATCH formula that pulls the system size of a column if it is not blank.
This formula will be on sheet #1 and needs to be an IF, INDEX, MATCH. Sheet #2 will have the actual system size column and Sheet #3 will have the target system size column. The formula should pull from sheet #2 (actual size) but if no value is present, then it should pull from sheet #3. All sheets have a column, Project ID, which is what we will INDEX MATCH with.
Is it possible to put this all in a formula?
Best Answer
-
Hi @swaldon2,
This should give you what you're after.
=IF(NOT(ISBLANK(INDEX({Actual Size}, MATCH([Project ID]@row, {Project ID 1})))), INDEX({Actual Size}, MATCH([Project ID]@row, {Project ID 1})), INDEX({Target Size}, MATCH([Project ID]@row, {Project ID 2})))
{Project ID 1} and {Project ID 2} are cell references to the project id in Sheet 2 and Sheet 3.
Hope this helps,
Dave
Answers
-
Hi @swaldon2,
This should give you what you're after.
=IF(NOT(ISBLANK(INDEX({Actual Size}, MATCH([Project ID]@row, {Project ID 1})))), INDEX({Actual Size}, MATCH([Project ID]@row, {Project ID 1})), INDEX({Target Size}, MATCH([Project ID]@row, {Project ID 2})))
{Project ID 1} and {Project ID 2} are cell references to the project id in Sheet 2 and Sheet 3.
Hope this helps,
Dave
-
@DKazatsky2 That works, thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!