MS Excel IF

TimReeks

New Member
Joined
Nov 5, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I want to include the cell contents in the True result of an IF statement, as in IF(E2>M2, "Team Name in D2 WIN", IF(E2<M2, "TeamName in L2 WIN", "DRAW"). So the result of the True statement is a Team name from either D2 or L2 depending on which team won, and "WIN".?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hello! This should work.
VBA Code:
=IF(E2>M2;D2 &" "& "WIN";IF(E2<M2;L2 &" "& "WIN";"DRAW"))
 
Upvote 0
IF(E2>M2, "Team Name in D2 WIN", IF(E2<M2, "TeamName in L2 WIN", "DRAW").
IF(E2>M2, D2&" WIN", IF(E2<M2, L2&" WIN", "DRAW").
 
Upvote 0
Hi & welcome to MrExcel.
Another option
Excel Formula:
=CHOOSE(SIGN(E2-M2)+2,L2&" win","Draw",D2&" Win")
 
Upvote 0

Forum statistics

Threads
1,223,942
Messages
6,175,544
Members
452,652
Latest member
eduedu

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