Max or Min value for absolute value

pagrender

Well-known Member
Joined
Sep 3, 2008
Messages
652
Hi,

I'm having some trouble with a formula. I would like the "Low" amount to be the value closest to zero and the "High" amount to be the number furthest from zero. My issue with this formula is that it does not work correctly if the values in the table are negative. Can someone help me with my formula below?

Thanks!
Excel Workbook
AFAGAH
316Method11-12
3172 Yr Avg5
3183 Yr Avg11
3195 Yr Avg13
320Baseline28
321
322Low5
323High28
WriteUp
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
All you need is

{=MIN(ABS(AH$317:AH$320))}

{=MAX(ABS(AH$317:AH$320))}


 
Upvote 0
Hi guys,

I tried that formula earlier but ended up with an issue. If I change the 5 to a -5 (in cell AH317), my new low number should be -5. This formula is producing a result of 5. Any ideas?
Excel Workbook
AFAGAH
316Method11-12
3172 Yr Avg(5)
3183 Yr Avg11
3195 Yr Avg13
320Baseline(28)
321
322Low5
323High28
WriteUp
 
Upvote 0
How about,

=IF(MAX(A1:A10) > -MIN(A1:A10), MAX(A1:A10), MIN(A1:A10))
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,555
Members
452,928
Latest member
101blockchains

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