Hi team, hoping you can help with the index,match formula to find the occurrence where the storage unit is not blank (or zero). The formula is referring to a table (called "Runners") in another sheet. The table is refreshed every hour throughout the day to bring in new data. Unfortunately there are more columns of data than the sample below, so I am unable to use a pivot table or vlookup and must be an INDEX.
Here is where I am up to with the formula:
=IF(INDEX(Runners[[#All],[Storage Unit]],MATCH(F2,Runners[[#All],[Name]],0))<>0,INDEX(Runners[[#All],[Location]],MATCH(F2,Runners[[#All],[Name]],0)),"Give me second occurance")
F2 refers to another sheet with Names
Sample of table:
[TABLE="width: 211"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Location[/TD]
[TD]Storage Unit[/TD]
[/TR]
[TR]
[TD]Michael[/TD]
[TD]Brisbane[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Peter[/TD]
[TD]Sydney[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Louise[/TD]
[TD]Melbourne[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Peter[/TD]
[TD]Perth[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Louise[/TD]
[TD]Adelaide[/TD]
[TD]9[/TD]
[/TR]
</tbody>[/TABLE]
Outcome:
Index Louise to find "Adelaide" because there is a value in the storage unit column [9] - not "Melbourne" because it's the first Match.
Index Peter to find "Perth" because there is a value in the storage unit column [5] - not "Sydney" because it's the first Match.
Appreciate your help.
Dave.
Here is where I am up to with the formula:
=IF(INDEX(Runners[[#All],[Storage Unit]],MATCH(F2,Runners[[#All],[Name]],0))<>0,INDEX(Runners[[#All],[Location]],MATCH(F2,Runners[[#All],[Name]],0)),"Give me second occurance")
F2 refers to another sheet with Names
Sample of table:
[TABLE="width: 211"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Location[/TD]
[TD]Storage Unit[/TD]
[/TR]
[TR]
[TD]Michael[/TD]
[TD]Brisbane[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Peter[/TD]
[TD]Sydney[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Louise[/TD]
[TD]Melbourne[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Peter[/TD]
[TD]Perth[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Louise[/TD]
[TD]Adelaide[/TD]
[TD]9[/TD]
[/TR]
</tbody>[/TABLE]
Outcome:
Index Louise to find "Adelaide" because there is a value in the storage unit column [9] - not "Melbourne" because it's the first Match.
Index Peter to find "Perth" because there is a value in the storage unit column [5] - not "Sydney" because it's the first Match.
Appreciate your help.
Dave.