Add condition to Max formula, If=0, "-"

NextWorldAngel

New Member
Joined
Oct 19, 2006
Messages
31
I am using this array formula
=MAX((A15:A300)*(B15:B300="Local")*(D15:D300=MAX((B15:B300="Local")*(D15:D300))))

I need to add a condition that if there is no information in the range that is looking for the MAX number, then it will come back with a "-"
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
give this a shot...

=IF(MAX(A15:A300)=0,"-",MAX((A15:A300)*(B15:B300="Local")*(D15:D300=MAX((B15:B300="Local")*(D15:D300)))))
 
Upvote 0
I'm looking for the Max in Column D
If In Column B the criteria="Local"
And pulling the number in Column A as the answer.
 
Upvote 0
Then I think this will work...

=IF(MAX(D15:D300)=0,"-",MAX((A15:A300)*(B15:B300="Local")*(D15:D300=MAX((B15:B300="Local")*(D15:D300)))))
 
Upvote 0
I'm looking for the Max in Column D
If In Column B the criteria="Local"
And pulling the number in Column A as the answer.

Given:

Code:
3	local		4
6	local		7
5	c		6
21	local		7
9	c		8
5	c		2
9	local		7
what is the answer?
 
Upvote 0

Forum statistics

Threads
1,215,480
Messages
6,125,047
Members
449,206
Latest member
Healthydogs

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