Possible in excel question

mr. j

New Member
Joined
Mar 15, 2003
Messages
32
Office Version
  1. 365
Looking to see if this is possible in excel. It would be great if anyone could lead me in the right direction.

A1 there is a number
B2 Were text would go
C1 there is a number

If A1 is greater than C1 B2 says "Winner"
If A1 is less than C1 B2 says "Loser"
If A1 is equal to C1 B2 says "Draw"

Thanks
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
In B2 use -

Excel Formula:
=Ifs(A1>C1,"Winner",A1<C1'"Loser",True,"Draw")
 
Upvote 0
Hi mr. j,

Excel Formula:
=IFS(A1>A3,"Winner",A1<A3,"Loser",TRUE,"Draw")

Hope that helps,

Doug
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

how about
Excel Formula:
=choose(sign(a1-c1)+2,"Loser","Draw","Winner")
 
Upvote 0
Thanks all!

Fluff just went and added my version which is 365, Thanks.
 
Upvote 0
Thanks for that. (y)
All options should work for you in 365.
 
Upvote 0
If I may ask one more thing on the =choose(sign(a1-c1)+2,"Loser","Draw","Winner") if I wanted to add say "**" for zero how would I add that to the formula?
 
Upvote 0
Not sure what you mean, can you post some sample data along with the expected results.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
I am sorry, I didn't explain myself very well. If there is no data in a1 or c1 it says draw can I add to the formula so when there is no data in those two cells it would come up blank or with **?
 
Upvote 0
Ok, how about
Excel Formula:
=IF(OR(A1="",C1=""),"",CHOOSE(SIGN(A1-C1)+2,"Loser","Draw","Winner"))
 
Upvote 0

Forum statistics

Threads
1,217,414
Messages
6,136,480
Members
450,016
Latest member
murarj

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