Find Max Value With 1 Criteria (No Array)

fittdaddy

New Member
Joined
Feb 17, 2012
Messages
8
See table below. I need to return the max value of Column B (week) if Column A (year) contains a value (such as 2011). This also needs to be accomplished without using an array. Any help would be greatly appreciated.

A B
Year Week
2011 1
2010 1
2012 1
2011 2
2010 2
2012 2
2011 3
2010 3
2012 3
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Sorry, the weeks probably wouldn't be in ascending order. Any other thoughts?
Try this...

Book1
ABCDE
220111_20113
320101___
420121___
520112___
620102___
720122___
820113___
920103___
1020123___
Sheet1

This formula entered in E2:

=MAX(INDEX((A2:A10=D2)*B2:B10,0))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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