IF and/or statement, true/false results different

janesdtr

New Member
Joined
Feb 19, 2003
Messages
11
Hello everyone,

I am having trouble constructing a formula that looks for either of 2 conditions and then returns different true and false values, depending on the conditions. I can successfully construct the formula when the true or false condition is the same for the 2 conditions, but can't wrap my head around this more complicated scenario.

Here I go:

If a2>0 AND c2=yes, then return a2*2 (if true) or a2 (if false)
OR
if b2>0 AND c2=yes, then return b2*2 (if true) or b2 (if false)

Thank you in advance for any advice you scoot my way!

Mary Beth
 
Thank you both for your solutions.

I had thought about adding the 2 cells as Hotpepper did, but worried about user errors where values would be entered in both the A and B columns. OTOH, a really big result in the formula cell would provide a clue that there were values in both A and B.

Villy, I was so narrowly focused on working the formula from left to right, that I didn't even consider using the "yes/no" column as the starting point for the IF statement. You redirected my brain.

Thank you both - I'll certainly use one of these. Nice to have options!

Mary Beth
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
You are preciously welcome though Hotpepper did a great formula there I also learned from that...
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,292
Members
452,902
Latest member
Knuddeluff

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