Need a date if cell B = car, bus or taxi

jimboayr

Board Regular
Joined
Oct 9, 2005
Messages
120
I have in column A a list of dates from cell A1 down to cell A50.
In column B I can have either car bus or taxi.

What I want to do is have a list running along row 55 where cell B55 has car in it, cell C55 has bus and cell D55 has taxi.

Directley below this in cell B56, cell C56 and cell D55 I want to have the max date from column A.

Hope someone out there can help - I have tried If = Max but I'm going wrong somwhere and can't get it to work.

Thanks for any help that any of you can give me.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I have in column A a list of dates from cell A1 down to cell A50.
In column B I can have either car bus or taxi.

What I want to do is have a list running along row 55 where cell B55 has car in it, cell C55 has bus and cell D55 has taxi.

Directley below this in cell B56, cell C56 and cell D55 I want to have the max date from column A.

Hope someone out there can help - I have tried If = Max but I'm going wrong somwhere and can't get it to work.

Thanks for any help that any of you can give me.
Try thia array formula** entered in B56 and copied across to D56:

=MAX(IF($B1:$B50=B55,$A1:$A50))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.

Format as Date
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,172
Members
452,893
Latest member
denay

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