Formula not working on new sheet but same data

Options

So I am trying to pull the Tag (Column is named "TAG" and is a 4 digit #) and Loc (Location - Column is named "LOC") from a reference sheet "Perfection Yard Check" when the VIN (Vin number, column is named "VIN" on both sheets) on the current sheet matches the VIN on the reference sheet "Perfection Yard Check". I want to do the same thing with the LOC column, pull the location data in the reference sheets "LOC" column if the VIN matches the reference sheet. I tried the AI but that failed and seemed to simple to have worked.

There is a formula that is working on a sheet someone else built, but when I copy to the new sheet and change the years to match what we are using now, I get an "UNPARESEABLE" error:

=IF(COUNTIF({PERFECTION YARD CHECK VIN}, VIN@row) = 1, INDEX({PERFECTION YARD CHECK TAG}, MATCH(VIN@row, {PERFECTION YARD CHECK VIN}, 0)), IF(COUNTIF({Perfection Yard Delivered 2024 VIN}, VIN@row) = 1, INDEX({Perfection Yard Delivered 2024 TAG}, MATCH(VIN@row, {Perfection Yard Delivered 2024 VIN}, 0)), IF(COUNTIF({Perfection Yard Delivered 2025 VIN}, VIN@row) = 1, INDEX({Perfection Yard Delivered 2025 TAG}, MATCH(VIN@row, {Perfection Yard Delivered 2025 VIN}, 0)), "")))

I feel this formula is more complicated than it needs to be.

Best Answer

  • Davisc8
    Davisc8 ✭✭
    edited 01/22/25 Answer ✓

    Never mind - I saw a similar post - you (Paul Newcome) had answered that question as well. I came up with

    =IFERROR(INDEX({PERFECTION YARD CHECK TAG}, MATCH(VIN@row, {PERFECTION YARD CHECK VIN}, 0)), "")

    and it works perfectly !

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!