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?
 
Last edited:

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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)< p>
How is the formula written wrong?
Try these...

C3: =MAX(A2,A3)

D3: =MIN(A2,A3)
 
Upvote 0

Forum statistics

Threads
1,222,315
Messages
6,165,299
Members
451,950
Latest member
WH2000

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