Cross-Sheet Index Match Reference

I am trying to pull a budget number from one sheet into another based on the ROWID which is pasted into sheet 2 by the user. I need the formula to look at a Quarter column in sheet 2 and determine based on the content, bring back the number in the Q1, Q2, Q3 or Q4 column in sheet 1.

This is the formula AI provided but it's returning #Invalid Value. If I update to -1 matching because the data is not in numerical order, I get #NoMatch.

=IF([Quarter]@row = "Q1", INDEX({Q1 Range}, MATCH([ROW ID]@row, {Q1 Range}, 0), 25), IF([Quarter]@row = "Q2", INDEX({Q1 Range}, MATCH([ROW ID]@row, {Q1 Range}, 0), 30), IF([Quarter]@row = "Q3", INDEX({Q1 Range}, MATCH([ROW ID]@row, {Q1 Range}, 0), 35), IF([Quarter]@row = "Q4", INDEX({Q1 Range}, MATCH([ROW ID]@row, {Q1 Range}, 0), 40), ""))))

I have also tried VLOOKUP + IF function. It works for a singular IF statement but not for multiple.

=IF(Quarter@row = "Q1", (VLOOKUP([ROW ID]@row, {Q1 Range}, 25, false)), "")

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!