Index Match

Simont485

Board Regular
Joined
May 19, 2018
Messages
50
Hi all

So I have an issue with index match.

Column A is my index (A3:10) and Column B (B3:B10) is my match to C1 and result is in C2

Column B contains blank cells.

When C1 is blank I need to see a result in C2 from Column A

At present I get N/A

My Function in C2 is =Index(A3:A10,Match(C1,B1:B10))
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Nope....When C1 is blank I want D1 to return Person 1....... because B1 is blank.

That's what the suggested formula in post 2 does for your example data?


Excel 2013/2016
ABCD
1Person 1Person 1
2Person 2NA
3Person 3H
Sheet1
Cell Formulas
RangeFormula
D1=INDEX(A1:A3,MATCH(C1&"",INDEX(B1:B3&"",0),0))
 
Last edited:
Upvote 0
Ok so that now works..........??? Honestly it didn't earlier.Many many apologies and thanks

So if B3 was also Blank how would I get to see Person 3 in D2.......an so on for a longer list?
 
Upvote 0
if B3 was also Blank how would I get to see Person 3 in D2.......an so on for a longer list?

Hi, you could try like this:


Excel 2013/2016
ABCD
1Person 1Person 1
2Person 2NAPerson 4
3Person 3HPerson 6
4Person 4Person 8
5Person 5HPerson 10
6Person 6
7Person 7H
8Person 8
9Person 9H
10Person 10
Sheet1
Cell Formulas
RangeFormula
D1=IFERROR(INDEX($A$1:$A$10,AGGREGATE(15,6,(ROW($A$1:$A$10)-MIN(ROW($A$1:$A$10))+1)/(LEN($B$1:$B$10)=0),ROWS(D$1:D1))),"")
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,732
Members
449,093
Latest member
Mnur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top