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:
HomeAway$50TrueAway
HomeAway$75TrueHome
HomeAway$100TrueHome
HomeAway$125TrueHome

<tbody>
</tbody>

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

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
A​
B​
C​
D​
E​
F​
1​
HomeAway
$50​
TRUE​
AwayE1: =IF(OR(C1 = {75,100,125}) * D1, A1, IF((C1 = 50) * D1, B1, ""))
2​
HomeAway
$75​
TRUE​
Home
3​
HomeAway
$100​
TRUE​
Home
4​
HomeAway
$125​
TRUE​
Home
 
Upvote 0
A​
B​
C​
D​
E​
F​
1​
HomeAway
$50​
TRUE​
AwayE1: =IF(OR(C1 = {75,100,125}) * D1, A1, IF((C1 = 50) * D1, B1, ""))
2​
HomeAway
$75​
TRUE​
Home
3​
HomeAway
$100​
TRUE​
Home
4​
HomeAway
$125​
TRUE​
Home

<tbody>
</tbody>


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,216,518
Messages
6,131,121
Members
449,624
Latest member
MandlaMan

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