Find largest absolute value

maxyoursandals

New Member
Joined
Oct 22, 2020
Messages
4
Office Version
  1. 365
Platform
  1. Windows
I have 3 columns each with different numbers positive or negative. I need to find/return the larfest value of the three and return
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Maybe something like this.

Book1
ABCDE
1110-27127250
217156185
3138-535
48149107
5168-25063
6151-15-60
719153197
8-4894189
9166652
10-341516
11100199120
1216190196
Sheet1
Cell Formulas
RangeFormula
E1E1=MAX(ABS(A1:C12))
 
Upvote 0
If you want to return the actual value, how about
+Fluff v2.xlsm
FGHIJ
1
2-113-9-20
3-147-2
4-3215
5-20-9-5
6-3-19-1
713-7-16
8-7-3-1
9812-3
10-16118
11-18-109
Main
Cell Formulas
RangeFormula
J2J2=AGGREGATE(14,6,F2:H11/(ABS(F2:H11)=MAX(ABS(F2:H11))),1)
 
Upvote 0
Edit, accidentally posted:


I have 3 columns each with different numbers, positive or negative. I need to find/return the largest value of the three and keep the sign (+ or -). I tried
If you want to return the actual value, how about
+Fluff v2.xlsm
FGHIJ
1
2-113-9-20
3-147-2
4-3215
5-20-9-5
6-3-19-1
713-7-16
8-7-3-1
9812-3
10-16118
11-18-109
Main
Cell Formulas
RangeFormula
J2J2=AGGREGATE(14,6,F2:H11/(ABS(F2:H11)=MAX(ABS(F2:H11))),1)

On mobile so accidentally posted twice. What I meant to say is I have 3 columns (A1:C1) of positive and negative numbers. I want to return the highest value of the three in cell D1 with the sign intact.

I previously tried a choose match large function but it obviously only returns positive numbers.
 
Upvote 0
Ok how about
+Fluff v2.xlsm
ABCD
1-20-9-5-20
2-20
Main
Cell Formulas
RangeFormula
D1D1=AGGREGATE(14,6,A1:C1/(ABS(A1:C1)=MAX(ABS(A1:C1))),1)
D2D2=CHOOSE(MATCH(MAX(ABS(A1:C1)),ABS(A1:C1),0),A1,B1,C1)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,548
Messages
6,125,472
Members
449,231
Latest member
Sham Yousaf

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