INDEX(MATCH) returns #INVALID COLUMN VALUE

Options
Nahum
Nahum ✭✭
edited 12/09/19 in Formulas and Functions

I have two sheets with a common "Name" column between them. I would like for a checkbox in the second sheet to reflect in the first sheet, factoring in that not all of the names will be used in the second sheet.

I would normally use INDEX(MATCH) for this purpose. MATCH() is able to return the row number for the Name where it appears in the other sheet (or an appropriate error for missing match), but INDEX(MATCH()) returns an error for the column containing checkboxes. I was expecting a 0 or 1 value depending on check status.

The INDEX reference is to the checkbox column on the other sheet. I have also tried VLOOKUP, but it returns the same #INVALID COLUMN VALUE error.

Does Smartsheet offer a better way to do this sort of lookup?

Comments

  • L_123
    L_123 ✭✭✭✭✭✭
    Options

    Can you post your formula?

    Is the return column also a checkbox?

    You can try to do an if statement with the return

    =if(index(match()) = True,true, false

    if that doesn't work the last recommendation I have to try would be a collect

    =index(collect(Checkbox:Checkbox,Name:Name,Name@row),1)

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭
    Options

    I generally end up using the first suggestion when building sheets with similar requirements to yours.

     

    IF(the corresponding box on the other sheet = true, true)

    =IF(INDEX(........., MATCH(........, ........., .....)) = 1, 1)

     

     

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!