Index Collect Formula Showing #Invalid Value

Sarah123
Sarah123 โœญโœญโœญโœญ

I've been searching around and my formula looks correct. I even saw on a previous discussion that you should erase the formula and then log out and log back into Smartsheet and maybe that will help (unfortunately it didn't for me). I've also tried to make the formula manually multiple times. The only thing I can think of is that the person's ID number would show up multiple times (because they have multiple days off in the sheet). Here is my formula: =INDEX(COLLECT({Hours}, {Week}, "08/14/22", {Resource Time Off SAP Range 1}, ID@row), 1)


There are no errors on the other sheets - it's just a list of the people with their ID numbers, which week ending they have taken time off for and how many hours is PTO during that week.

Tags:

Best Answer

  • Sarah123
    Sarah123 โœญโœญโœญโœญ
    Answer โœ“

    In case anyone stumbles on this thread later on - We got it to work! The correct formula is =INDEX(COLLECT({Hours}, {Value ID Column}, value@row, {Week}, =DATE(2022, 8, 14)), 1) . The ID number needs to be a helper column with =value([ID Number]@row) because of the leading zeros we have on some IDs. And the date column in the SAP pull needs to be a date column type.

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!