maxima

charijit

Board Regular
Joined
Nov 27, 2003
Messages
89
I have

A1=2, A2=-3, A3=-55, A4=6, A5=9.

In A6 I wanted to put 1.1 times the maximum absolute value (55) with its sign (-55x1.1 = 60.5). For that I wrote

A6=LOOKUP(MAX(ABS(A1:A5)),ABS(A1:A5),SIGN(A1:A5))*ROUNDUP(1.1*MAX(ABS(A1:A5)),0).

The result of this formulae is #VALUE!. I wish to know my fault and also the method to achieve the desired result.

Wish you everyone MERRY CHRISTMAS.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi, and Merry Christmas to you too!

Try the following...

=INDEX(A1:A5,MATCH(MAX(ABS(A1:A5)),ABS(A1:A5),0))*1.1

...confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!
 
Upvote 0
charijit said:
I have

A1=2, A2=-3, A3=-55, A4=6, A5=9.

In A6 I wanted to put 1.1 times the maximum absolute value (55) with its sign (-55x1.1 = 60.5). ...

Do you want to see 60.5 or -60.5 as result?
 
Upvote 0
charijit said:
Aladin,
Sorry for the mistake. I wish to see -55*1.1 = -60.5 rounded up to -61.

Wrap the formula expression Domenic suggested inside ROUND or ROUNDUP with decimal places set to 0.
 
Upvote 0

Forum statistics

Threads
1,214,592
Messages
6,120,433
Members
448,961
Latest member
nzskater

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