Hlookup with multiple criteria.

drewjwats

New Member
Joined
Mar 15, 2016
Messages
3
I searched online for a good amount of time and came up empty handed, I may be explaining what I am attempting to do wrong.


I am trying to return a row value based on the customer number and a "Yes" in certain columns.

For example, in the following I would be attempting to return the value of the most recent yes. Week 2, for 0001 and week 5 for 0002. I cant for the life of me figure out what the formula would be.


Cus Number Week 1 Week 2 Week 3 Week 4 Week 5
0001 No Yes No No No
0002 No Yes No Yes Yes


Any help on this would be much appreicated.


Thank you!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
To be more clear, I would be linking from a different spread sheet, which only has the customer number, I would be attempting to return the week of the most recent yes.
 
Upvote 0
Does this help you (formula in I2 copied down)?


Excel 2010
ABCDEFGHI
1Cus NumberWeek 1Week 2Week 3Week 4Week 5Cus NumberWeek No
20001NoYesNoNoNo0001Week 2
30002NoYesNoYesYes0002Week 5
Sheet1
Cell Formulas
RangeFormula
I2=LOOKUP(2,1/(INDEX(B$2:F$3,MATCH(H2,A$2:A$3,FALSE),0)="Yes"),B$1:F$1)
 
Upvote 0

Forum statistics

Threads
1,214,870
Messages
6,122,019
Members
449,060
Latest member
LinusJE

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