Formula for "2 cells...pick the cell with higher value and put it here"

Marq

Well-known Member
Joined
Dec 13, 2004
Messages
914
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
Excel 2007

Cells A2 and A3 will contain a value in each.

in this example A2 has 68...A3 has 32

I would like to have in cell C3 a formaul that reads, "out of cells A2 and A3...which ever value is the highest, put that value here in C3".

and in cell D3 have it read the opposite saying, "of the two cells A2 and A3, whichever is the lower number put that value here in D3".

this is what I made up in C3 thus far but I get the "#value!" error result:

=IF(A2>A3,A2),IF(A2<A3,A3)

How is the formula written wrong?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Excel 2007

Cells A2 and A3 will contain a value in each.

in this example A2 has 68...A3 has 32

I would like to have in cell C3 a formaul that reads, "out of cells A2 and A3...which ever value is the highest, put that value here in C3".

and in cell D3 have it read the opposite saying, "of the two cells A2 and A3, whichever is the lower number put that value here in D3".

this is what I made up in C3 thus far but I get the "#value!" error result:

=IF(A2>A3,A2),IF(A2<A3,A3)

How is the formula written wrong?

for some reason my original post did not show entire formula (that does not work)..let me try again..here it is:

=IF(A2>A3,A2),IF(A2<A3,A3)
 
Upvote 0
for some reason my original post did not show entire formula (that does not work)..let me try again..here it is:

=IF(A2>A3,A2),IF(A2<A3,A3)

It still is not showing the entire formula
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,253
Members
452,900
Latest member
LisaGo

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