Trouble with a formula

jkeller

New Member
Joined
Dec 17, 2013
Messages
19
I have been out of using excel formulas for a while and I am struggling with what I think should be a simple formula. I am trying to create a formula that says if cell A2 ="DE" and cell B2="SC" then C2 will show 6. If cell A2="DE" and Cell B2="DC" then cell C2 will show 12. and if cell A2 does not equal DE C2 will be blank.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
What happens if B2 does not equal SC or DC?
 
Upvote 0
Ok, how about
Excel Formula:
=IF(A2="DE",IF(B2="sc",6,IF(B2="dc",12,"")),"")
 
Upvote 0

Forum statistics

Threads
1,215,336
Messages
6,124,330
Members
449,155
Latest member
ravioli44

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