Pulling Data Based on Certain Criteria

Hello Community,

I have a situation where I am trying to pull data from 3+ columns based on a few input fields (city, country, engineer level). We want to output the primary company, secondary company, and third company once this data is inputted.

On my base sheet, I have a City, State, Country, Engineer Level, Primary Company, Secondary Company, Third Company that has all of the information (picture below, there are other columns as well but they can be ignored).

On my input sheet, I have the same columns for the user to input the specific data where we want to then output the primary, secondary, and third company based on what they have inputted (picture below).

Any idea on how to pull the data we want to see? I was thinking a VLOOKUP but I am not sure if that will work for this situation.

Any help here is appreciated!

Tags:

Best Answer

  • Leibel S
    Leibel S ✭✭✭✭✭✭
    Answer ✓

    @John- Michael Diedrich

    You can to use a INDEX/COLLECT combo to get this done. Something along the lines of below. Please note you need to match up the references to how you made them by you

    =INDEX(COLLECT({Primary Company REFERENCE RANGE}, {City Ref Range},[City]@row,{State Ref Range},[State]@row, {Country Ref Range},[country]@row,),1)


    =INDEX(COLLECT({Secondary Company REFERENCE RANGE}, {City Ref Range},[City]@row,{State Ref Range},[State]@row, {Country Ref Range},[country]@row,),1)


    =INDEX(COLLECT({Third Company REFERENCE RANGE}, {City Ref Range},[City]@row,{State Ref Range},[State]@row, {Country Ref Range},[country]@row,),1)

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!