Max and Min number within a column text resulting from formulas

jeremypyle

Board Regular
Joined
May 30, 2011
Messages
174
I have tried for ages to work this out. I am trying to find the max number and the min number within a column of formulas. The text result of the formulas are as follows:

d2=#N/A
d3=#N/A
d4=733.33%
d5=-#N/A
d6=#N/A
d7=83.33%
d8=28.57%

In cell e2, I want to search for the maximum number within d2:d8.

#N/A is the result of a formula

In cell e3, I want to search for the maximum number within d2:d8 (less the result of e2. So in effect, it would give me the 2nd greatest percentage.

I'd appreciate somebody's help =)
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
I have tried for ages to work this out. I am trying to find the max number and the min number within a column of formulas. The text result of the formulas are as follows:

d2=#N/A
d3=#N/A
d4=733.33%
d5=-#N/A
d6=#N/A
d7=83.33%
d8=28.57%

In cell e2, I want to search for the maximum number within d2:d8.

#N/A is the result of a formula

In cell e3, I want to search for the maximum number within d2:d8 (less the result of e2. So in effect, it would give me the 2nd greatest percentage.

I'd appreciate somebody's help =)
Control+shift+enter, not just enter:

=MAX(IF(ISNUMBER(D2:D8),D2:D8))

Replace MAX with MIN to obtain the minimum.
 
Upvote 0
Control+shift+enter, not just enter:

=MAX(IF(ISNUMBER(D2:D8),D2:D8))

Replace MAX with MIN to obtain the minimum.

Ok thanks so much for your help. That is perfect. How though do you find the max of d2:d8 less the result from cell e2.

For example, e2 will give the greatest result. Then I want e3 to say =MAX(IF(ISNUMBER(D2:D8),D2:D8)less the result of e2

Is this possible?
 
Upvote 0
Don't worry, I have figured it out.

=LARGE(IF(ISNUMBER($D$2:$D$2000),($D$2:$D$2000)),1)

gives the largest result

=LARGE(IF(ISNUMBER($D$2:$D$2000),($D$2:$D$2000)),2)

gives the 2nd largest result.

You can do the same with smallest by exchanging LARGE with SMALL
 
Upvote 0
Ok thanks so much for your help. That is perfect. How though do you find the max of d2:d8 less the result from cell e2.

For example, e2 will give the greatest result. Then I want e3 to say =MAX(IF(ISNUMBER(D2:D8),D2:D8)less the result of e2

Is this possible?

Don't worry, I have figured it out.

=LARGE(IF(ISNUMBER($D$2:$D$2000),($D$2:$D$2000)),1)

gives the largest result

=LARGE(IF(ISNUMBER($D$2:$D$2000),($D$2:$D$2000)),2)

gives the 2nd largest result.

You can do the same with smallest by exchanging LARGE with SMALL

You are welcome. Thanks for providing feedback.
 
Upvote 0

Forum statistics

Threads
1,222,028
Messages
6,163,482
Members
451,838
Latest member
DonSlayer

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