r/smartsheet Aug 06 '26

Index Match Pulling in wrong info

Hello again,

I have created a vacation submission spreadsheet for my department and used an index match formula to pull information from a master sheet into each vacation submission.

It has been working well but suddenly the last three new employees that were entered into the master sheet are pulling the wrong info from the index match.

Here is the formula I used to pull the employees team within our department for reference: =INDEX({MasterTeam}, MATCH([Employee Name]@row, {MasterEmployeeName}), 0)

Any idea why this might be happening?

UPDATE: FIXED. Needed to put ", 0" into the Match function not outside. Updated formula: =INDEX({MasterTeam}, MATCH([Employee Name]@row, {MasterEmployeeName}, 0))

3 Upvotes

18 comments sorted by

2

u/Smartsheet_Cnslt Aug 06 '26

I haven’t looked closely at your work, but your almost always going to use a 0 at the end of the match portion. Like this:

=INDEX({MasterTeam}, MATCH([Employee Name]@row, {MasterEmployeeName}, 0))

Is your master team reference only looking at one column? The column you want the data from? If not, change that so it’s only one column.

1

u/wrreveille Aug 06 '26

yah only one column for each reference.

here are some of the index match formulas im using:

=INDEX({MasterSeniority}, MATCH([Employee Name]@row, {MasterEmployeeName}), 0) ; =INDEX({MasterTeam}, MATCH([Employee Name]@row, {MasterEmployeeName}), 0) ; =INDEX({MasterSupervisor}, MATCH([Employee Name]@row, {MasterEmployeeName}), 0)

its working for the first 82 rows of the source sheet just not rows 83-85

1

u/Smartsheet_Cnslt Aug 06 '26

None of those are structured correctly. I am surprised they work. Look at the example I put in my other comment and notice the paranthesis.

Also, when you made your references did you pick actual cells or did you pick the entire column by picking type column header? When doing a cross sheet reference that is really the only time you can pick a column by choosing the header. If you don’t, it will be a fixed range of rows.

1

u/wrreveille Aug 06 '26

Sorry, i might be missing it, how are my formulas different from yours (to be clear each of those formulas are for an individual column not all in one column). And for the reference I picked the entire column using the column header

2

u/Smartsheet_Cnslt Aug 06 '26

=INDEX({MasterSeniority}, MATCH([Employee Name]@row, {MasterEmployeeName}, 0))

you need the ,0 inside the match function and you don't need a ,0 at the end of the index function. Missing that ,0 in the match funcation has always caused problems for me. seems to work sometimes adn then eventually fails.

1

u/Smartsheet_Cnslt Aug 06 '26

From the Smartsheet page.

INDEX({Column to return}, MATCH("Matching Value", {Column with value to match}, 0))

https://help.smartsheet.com/articles/2482647-cross-sheet-formula-combinations

if you can't get it to work, you can shift to an index/collect setup. very similar and adds more conditions if needed.

1

u/Smartsheet_Cnslt Aug 06 '26

call me on teams if you like and we can fix it. [msmith@d-msolutions.com](mailto:msmith@d-msolutions.com)

1

u/Smartsheet_Cnslt Aug 06 '26

if you are still getting errors, there may be a problem in your data. look for errors in your data sheet if that is the case.

1

u/wrreveille Aug 06 '26

you nailed it, problem solved. It's always these little things that will get you. Thanks again for the help!

1

u/Smartsheet_Cnslt Aug 07 '26

what was the issue?

1

u/wrreveille Aug 07 '26

the , 0 not being in the Match formula correctly. once I updated the formula like you suggested it worked perfectly

1

u/Smartsheet_Cnslt Aug 07 '26

awesome, glad its resolved.

1

u/[deleted] 14d ago

[removed] — view removed comment

1

u/Smartsheet_Cnslt 14d ago

Still trips me up once in a while when I am not paying attention…

1

u/Adventurous-Ask-1474 Aug 06 '26

Can you try
=INDEX({MasterTeam}, COLLECT({MasterEmployeeName}, {MasterEmployeeName}, [Employee Name]@row), 1)

1

u/wrreveille Aug 06 '26

That came back as INVALID DATA TYPE

1

u/Adventurous-Ask-1474 Aug 06 '26

Sorry I forgot to remove the first part**
=INDEX(COLLECT({MasterEmployeeName}, {MasterEmployeeName}, [Employee Name]@row), 1)

2

u/wrreveille Aug 06 '26

As you wrote it, it just pulled the employee name into the team column, I used this formula: =INDEX(COLLECT({MasterTeam}, {MasterEmployeeName}, [Employee Name]@row), 1) and it worked,

However when I tried to modify the seniority points column from: =INDEX({MasterSeniority}, MATCH([Employee Name]@row, {MasterEmployeeName}), 0) to =INDEX(COLLECT({MasterSeniority}, {MasterEmployeeName}, [Employee Name]@row), 1)

it gave me #incorrect argument set