Index/Match returning first non-blank cell

kcrabb2

New Member
Joined
Oct 22, 2015
Messages
9
So I understand index/match will return the first instance of the match it finds, even if the answer is "". What I need is a formula that will return the first instance where the cell is not "". Here's an example:

Customer No.Salesperson Code
C000176
C000176DG
C000176DG
C000176DG
C000176DG
C000176DG
C000176DG
C000176DG

In this instance Excel is returning a "" value, what can I use for it to return "DG"...Thanks!
 

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.
Best way would be with a helper column.
Book2
ABCDEF
1Customer No.Salesperson CodeCriteriaResult
2C000176 C000176DG
3C000176DG3
4C000176DG4
5C000176DG5
6C000176DG6
7C000176DG7
8C000176DG8
9C000176DG9
Sheet2
Cell Formulas
RangeFormula
F2F2=INDEX(B:B,MINIFS(C:C,A:A,E2))
C2:C9C2=IF(B2="","",ROW(C2))
 
Upvote 0

Forum statistics

Threads
1,214,791
Messages
6,121,611
Members
449,038
Latest member
apwr

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