selecting the larger of two cells

risoriso

New Member
Joined
Nov 3, 2002
Messages
2
I have a project where, I am required to select the larger of two cells, if A1 is larger than B1, I want to place "W" in C1, if B1 is larger than A1 I want to paste "I" in C1.
thankyou
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

applebyd

Active Member
Joined
May 27, 2002
Messages
348
Try

IF(a1>b1,"W","I")

In the C column

You can then drag this down.

HTH

DaveA
 

applebyd

Active Member
Joined
May 27, 2002
Messages
348
Well,

You can mess with th >= or <= signs as it will have to be one or the other.

DaveA

:wink:
 

Forum statistics

Threads
1,143,640
Messages
5,719,984
Members
422,256
Latest member
downeybm

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
Top