Calculation

MAMIBUSSOL

Board Regular
Joined
Jun 2, 2011
Messages
95
i have the following data
A B
04/06/2011 757L
05/09/2011 657L
08/04/2010 457L

I use the MAX function to find the highest date, but I need to use the data in column B

so the highest date is 05/09/2011 I need to record the highest code as 657L

this works if B18:B22 has a date within the range

Code:
=IF(MAX(B18:B22)=B18,C18,IF(MAX(B18:B22)=B19,C19,IF(MAX(B18:B22)=B20,C20,IF(MAX(B18:B22)=B21,C21,IF(MAX(B18:B22)=B22,C22,"BR")))))

however, when I have no values in B18:B22 I expect to see my cell = "BR", however this doesn't happen

any ideas how to modify to get the desired result
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,222,441
Messages
6,166,056
Members
452,010
Latest member
triangle3

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