Cell is either A or B

adam1993

New Member
Joined
May 16, 2018
Messages
16
Column C1= $125, $100 or $75 AND D1 = TRUE then this cell = A1, if not then it is blank. But also if column C1 = $50 and D1 = TRUE then this cell = B1.


Not sure how to get this formula to work :confused:[TABLE="width: 500"]
<tbody>[TR]
[TD]Home[/TD]
[TD]Away[/TD]
[TD]$50[/TD]
[TD]True[/TD]
[TD]Away[/TD]
[/TR]
[TR]
[TD]Home[/TD]
[TD]Away[/TD]
[TD]$75[/TD]
[TD]True[/TD]
[TD]Home[/TD]
[/TR]
[TR]
[TD]Home[/TD]
[TD]Away[/TD]
[TD]$100[/TD]
[TD]True[/TD]
[TD]Home[/TD]
[/TR]
[TR]
[TD]Home[/TD]
[TD]Away[/TD]
[TD]$125[/TD]
[TD]True[/TD]
[TD]Home[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
[Table="width:, class:grid"][tr][td="bgcolor:#C0C0C0"][/td][td="bgcolor:#C0C0C0"]
A​
[/td][td="bgcolor:#C0C0C0"]
B​
[/td][td="bgcolor:#C0C0C0"]
C​
[/td][td="bgcolor:#C0C0C0"]
D​
[/td][td="bgcolor:#C0C0C0"]
E​
[/td][td="bgcolor:#C0C0C0"]
F​
[/td][/tr][tr][td="bgcolor:#C0C0C0"]
1​
[/td][td]Home[/td][td]Away[/td][td]
$50​
[/td][td]
TRUE​
[/td][td="bgcolor:#CCFFCC"]Away[/td][td]E1: =IF(OR(C1 = {75,100,125}) * D1, A1, IF((C1 = 50) * D1, B1, ""))[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
2​
[/td][td]Home[/td][td]Away[/td][td]
$75​
[/td][td]
TRUE​
[/td][td="bgcolor:#CCFFCC"]Home[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
3​
[/td][td]Home[/td][td]Away[/td][td]
$100​
[/td][td]
TRUE​
[/td][td="bgcolor:#CCFFCC"]Home[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
4​
[/td][td]Home[/td][td]Away[/td][td]
$125​
[/td][td]
TRUE​
[/td][td="bgcolor:#CCFFCC"]Home[/td][td][/td][/tr]
[/table]
 
Upvote 0
[TABLE="class: grid"]
<tbody>[TR]
[TD="bgcolor: #C0C0C0"][/TD]
[TD="bgcolor: #C0C0C0"]
A​
[/TD]
[TD="bgcolor: #C0C0C0"]
B​
[/TD]
[TD="bgcolor: #C0C0C0"]
C​
[/TD]
[TD="bgcolor: #C0C0C0"]
D​
[/TD]
[TD="bgcolor: #C0C0C0"]
E​
[/TD]
[TD="bgcolor: #C0C0C0"]
F​
[/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
1​
[/TD]
[TD]Home[/TD]
[TD]Away[/TD]
[TD]
$50​
[/TD]
[TD]
TRUE​
[/TD]
[TD="bgcolor: #CCFFCC"]Away[/TD]
[TD]E1: =IF(OR(C1 = {75,100,125}) * D1, A1, IF((C1 = 50) * D1, B1, ""))[/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
2​
[/TD]
[TD]Home[/TD]
[TD]Away[/TD]
[TD]
$75​
[/TD]
[TD]
TRUE​
[/TD]
[TD="bgcolor: #CCFFCC"]Home[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
3​
[/TD]
[TD]Home[/TD]
[TD]Away[/TD]
[TD]
$100​
[/TD]
[TD]
TRUE​
[/TD]
[TD="bgcolor: #CCFFCC"]Home[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
4​
[/TD]
[TD]Home[/TD]
[TD]Away[/TD]
[TD]
$125​
[/TD]
[TD]
TRUE​
[/TD]
[TD="bgcolor: #CCFFCC"]Home[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


That gave me an error message :/ Maybe a better way of asking is... If D = True, if C is $50, then E= B but if D = True, C is either 75, 100 or 125 then E = A but if neither of the two are True then "-"
 
Upvote 0
The formula works on my end. You may have to modify to use the correct argument separator for your language settings.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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