If and with multiple conditions & cells

HAPLOID

New Member
Joined
Mar 5, 2018
Messages
2
Novice Excel user trying to figure out an if and formula
[TABLE="width: 621"]
<colgroup><col><col span="2"><col><col></colgroup><tbody>[TR]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]BR[/TD]
[TD]CLOCK[/TD]
[TD]$2[/TD]
[/TR]
[TR]
[TD]BR[/TD]
[TD]CLOCK[/TD]
[TD]$2[/TD]
[/TR]
[TR]
[TD]BR[/TD]
[TD]TABLE[/TD]
[TD]$5
[/TD]
[/TR]
[TR]
[TD]BR[/TD]
[TD]CHAIR[/TD]
[TD]$3[/TD]
[/TR]
[TR]
[TD]LV[/TD]
[TD]CLOCK[/TD]
[TD]$3[/TD]
[/TR]
[TR]
[TD]LV[/TD]
[TD]CLOCK[/TD]
[TD]$3[/TD]
[/TR]
[TR]
[TD]LV[/TD]
[TD]CLOCK[/TD]
[TD]$3[/TD]
[/TR]
[TR]
[TD]LV[/TD]
[TD]CLOCK[/TD]
[TD]$3[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Essentially I am trying to say if A1=BR and B1=clock then $2 should be the multiplier (didnt include that data)
the formula i wrote was : =SUM(D2*E2) * IF(AND(A2="BR",B2="CLOCK",2))) but I get and error. Not sure where my mistake is. Any help would be appreciated
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Not sure if this is what you want :

=IF(AND(A1="BR",B2="CLOCK"),"2",
IF(AND(A1="BR",B2="TABLE"),"5",
IF(AND(A1="BR",B2="CHAIR"),"3",
"NOT DEFINED")))
 
Upvote 0
sorry should be :
=IF(AND(A1="BR",B1="CLOCK"),"2",
IF(AND(A1="BR",B1="TABLE"),"5",
IF(AND(A1="BR",B1="CHAIR"),"3",
"NOT DEFINED")))
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

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