If/Or Function help please

L

Legacy 116183

Guest
I need some help with an if/or function with options

This function works fine for the females on the spearsheet:

=IF(C3="Female",IF(E3="Yes",0,IF(E3="No",9.5,IF(F3="Social",16.5,IF(F3="Resigned",16.5,IF(G3="New to Membership",16.5,""))))),"")

But if C3 = Male, how do I set it up ?

If C3 were male, I'd like IF(E3="Yes",0,IF(E3="No",9.35,IF(F3="Social",13.85,IF(F3="Resigned",13,85,IF(G3="New to Membership",13.85,
I know I could hvae a column next to the one for females, or use helper cells elsewhere on the spreadsheet, but I'd really like it all in one function if that's possible. If only to learn.

Thanks
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Try this:

Excel Formula:
=IF(C3="Female",IF(E3="Yes",0,IF(E3="No",9.5,IF(O(F3="Social",F3="Resigned",G3="New to Membership"),16.5,""))),
IF(C3="Male",IF(E3="Yes",0,IF(E3="No",9.35,IF(O(F3="Social",F3="Resigned",G3="New to Membership"),13.85,""))),""))
 
Upvote 0
Another option
Excel Formula:
=IF(E3="Yes",0,IF(C3="Female",IF(E3="No",9.5,IF(OR(F3={"Social","Resigned"},G3="New to Membership"),16.5,"")),IF(C3="Male",IF(E3="No",9.35,IF(OR(F3={"Social","Resigned"},G3="New to Membership"),13.85,"")),"")))
 
Upvote 0
Solution
Thanks very much for your response. It's kind of you to try and help me.

I shall give them a try.
 
Upvote 0
Glad we could help, let us know how it goes. (y)
 
Upvote 0

Forum statistics

Threads
1,215,436
Messages
6,124,869
Members
449,192
Latest member
MoonDancer

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