Max or Large no to be found using multiple conditions

mahen

New Member
Joined
Apr 13, 2007
Messages
44
Hi All,


I need a formula as mentioned below. Many thanks for your help in advance

Based on column b it needs to filter the data in column A and provide me the Max value in column C, Example for Monday the value in column C should be 66.

A B C
12 Monday
73 Tuesday
45 Wednesday
27 Wednesday
66 Monday
51 Tuesday
58 Wednesday
34 Monday
14 Tuesday
81 Wednesday
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Confirm with ctrl+shift+enter and copy down as far as necessary:
=MAX(IF($B$2:$B$11=B2,$A$2:$A$11))
 
Upvote 0
Try like this

Excel Workbook
ABC
112Monday66
273Tuesday
345Wednesday
427Wednesday
566Monday
651Tuesday
758Wednesday
834Monday
914Tuesday
1081Wednesday
Sheet1
 
Upvote 0
Hi All,


I need a formula as mentioned below. Many thanks for your help in advance

Based on column b it needs to filter the data in column A and provide me the Max value in column C, Example for Monday the value in column C should be 66.

A B C
12 Monday
73 Tuesday
45 Wednesday
27 Wednesday
66 Monday
51 Tuesday
58 Wednesday
34 Monday
14 Tuesday
81 Wednesday
Try this array formula**:

=MAX(IF(B$2:B$11=B2,A$2:A$11))

** 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.

Copy down as needed.
 
Upvote 0
=MAX(IF($B$1:$B$10,$B1,$C$1:$C$10))

adjust ranges to suit and confirm with CTRL+SHIFT+ENTER not just ENTER and copy down.
 
Upvote 0
Hi All,

This forum is awesome, thank you all for your quick reply, the formula works the way i need it. This is an additional question to my first one, is there any possibility to integrate the same output with 2 more condition as explained below.

In column D when i filter for Jan, then in column C, i filter for Week 1 and column B when i filter for Monday, the output which i need to get in column E should be 56 which is highest number available for that condition.

A B C D E
12 Monday Week1 Jan 56
73 Tuesday Week1 Jan 73
45 Wednesday Week1 Jan
27 Wednesday Week1 Jan
66 Monday Week2 Feb
51 Tuesday Week1 Jan
58 Wednesday Week2 Feb
34 Monday Week2 Feb
14 Tuesday Week2 Feb
81 Wednesday Week2 Feb
67 Monday Week3 March
34 Tuesday Week2 Feb
89 Wednesday Week3 March
23 Wednesday Week3 March
12 Monday Week3 March
45 Tuesday Week3 March
78 Wednesday Week2 Feb
56 Monday Week1 Jan
34 Tuesday Week3 March
23 Wednesday Week1 Jan

Let me know if you need any further information, once again many thanks for your help.

Cheers,
Mahen
 
Upvote 0
Excel Workbook
ABCDE
1
212MondayWeek1Jan56
373TuesdayWeek1Jan73
445WednesdayWeek1Jan45
527WednesdayWeek1Jan45
666MondayWeek2Feb66
751TuesdayWeek1Jan73
858WednesdayWeek2Feb81
934MondayWeek2Feb66
1014TuesdayWeek2Feb34
1181WednesdayWeek2Feb81
1267MondayWeek3March67
1334TuesdayWeek2Feb34
1489WednesdayWeek3March89
1523WednesdayWeek3March89
1612MondayWeek3March67
1745TuesdayWeek3March45
1878WednesdayWeek2Feb81
1956MondayWeek1Jan56
2034TuesdayWeek3March45
2123WednesdayWeek1Jan45
Sheet1
 
Upvote 0
Hi All,

This forum is awesome, thank you all for your quick reply, the formula works the way i need it. This is an additional question to my first one, is there any possibility to integrate the same output with 2 more condition as explained below.

In column D when i filter for Jan, then in column C, i filter for Week 1 and column B when i filter for Monday, the output which i need to get in column E should be 56 which is highest number available for that condition.

A B C D E
12 Monday Week1 Jan 56
73 Tuesday Week1 Jan 73
45 Wednesday Week1 Jan
27 Wednesday Week1 Jan
66 Monday Week2 Feb
51 Tuesday Week1 Jan
58 Wednesday Week2 Feb
34 Monday Week2 Feb
14 Tuesday Week2 Feb
81 Wednesday Week2 Feb
67 Monday Week3 March
34 Tuesday Week2 Feb
89 Wednesday Week3 March
23 Wednesday Week3 March
12 Monday Week3 March
45 Tuesday Week3 March
78 Wednesday Week2 Feb
56 Monday Week1 Jan
34 Tuesday Week3 March
23 Wednesday Week1 Jan

Let me know if you need any further information, once again many thanks for your help.

Cheers,
Mahen
Try this...

Still array entered**:

=MAX(IF(B$2:B$21=B2,IF(C$2:C$21=C2,IF(D$2:D$21=D2,A$2:A$21))))

** 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.
 
Upvote 0
WOW!! you guys simply rock, such a quick reply and it feels like heaven :) Thank you so much for your help and i hope to come back to this forum frequently.

Once again thanks and have a good day ahead.

Cheers,
Mahen
 
Upvote 0
WOW!! you guys simply rock, such a quick reply and it feels like heaven :) Thank you so much for your help and i hope to come back to this forum frequently.

Once again thanks and have a good day ahead.

Cheers,
Mahen
You're welcome. Thanks for the feedback! :cool:
 
Upvote 0

Forum statistics

Threads
1,224,537
Messages
6,179,405
Members
452,911
Latest member
a_barila

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