Please can someone help with an IF formula

marcidee

Board Regular
Joined
May 23, 2016
Messages
196
Office Version
  1. 2019
in C27 I have a drop down box that says
CONNECT MANAGEMENT FEE (10%) Yes
CONNECT MANAGEMENT FEE (10%) NO

I have this formula which works fine in Cell D27

=IF(RIGHT(C27,3)="YES",D28*10%,"")

(so if No D27 is empty, if Yes Calculates 10% of D28)

Now in D28 I would like:
If C27 = YES it calculates (D26*0.111109)+D26
If C27 = No (or C27 is empty) D28 is the same as D26
Thank you for your help
Marc
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hello! If I understand correctly.
Book1
CD
2610
27Yes11,11109
2811,11109
Sheet1
Cell Formulas
RangeFormula
D27D27=IF(RIGHT(C27,3)="YES",(D26*0.111109)+D26,"")
D28D28=IF(RIGHT(C27,3)="YES",(D26*0.111109)+D26,IF(OR(RIGHT(C27,3)="YES",C27=""),D26,""))
 
Upvote 0
Thank you for this, but it doesn't quite work. Formula in D27 was previously fine (if YES then 10% of D28, if No then leave blank) - so I haven't changed that.

The new formula for D28 leaves D28 blank if D27 is No. What I need is, if 'NO' D28 is the same as D26. If YES then =(D26*0.111109)+D26

Can you tweak please?
Thanks Marc
 
Upvote 0
So?
Book1
CD
2610
27no 
2810
Sheet1
Cell Formulas
RangeFormula
D27D27=IF(RIGHT(C27,3)="YES",(D26*0.111109)+D26,"")
D28D28=IF(D27<>"",(D26*0.111109)+D26,D26)
 
Upvote 0
Thank you for the update. Now if D27 = NO D28 is the same as D26 (perfect)
But if D27 - No i get a #ref!

I think I need a combination of your first and second answers.

So what I need is:

I am not touching the formula in D27 as that works fine (=IF(RIGHT(C27,3)="YES",D28*10%,"")

The formula (D26*0.111109)+D26 is for cell D28

So if D27 = Yes then in D28 then in D28 =(D26*0.111109)+D26
If D27 is No then D28 is the same as D26

Thanks again for helping me
Marc
 
Upvote 0
Hi Sergius

I have managed to get this working by combining your 2 formulas

=IF(RIGHT(C27,3)="YES",(D26*0.111109)+D26,IF(D27<>"",(D26*0.111109)+D26,D26))

Thank you so much for your help

Marc
 
Upvote 0
I have managed to get this working by combining your 2 formulas

=IF(RIGHT(C27,3)="YES",(D26*0.111109)+D26,IF(D27<>"",(D26*0.111109)+D26,D26))
That could be written more succinctly as
Excel Formula:
=D26+D26*0.111109*OR(D27<>"",RIGHT(C27,3)="YES")

Or if C27 is actually just Yes or No as indicated by some of your earlier formulas then
Excel Formula:
=D26+D26*0.111109*OR(D27<>"",C27="YES")
 
Upvote 0
That could be written more succinctly as
Excel Formula:
=D26+D26*0.111109*OR(D27<>"",RIGHT(C27,3)="YES")

Or if C27 is actually just Yes or No as indicated by some of your earlier formulas then
Excel Formula:
=D26+D26*0.111109*OR(D27<>"",C27="YES")
Thank you for the above - neither of the 2 above work if C27 is 'Yes' (works fine with 'No', ie if No then D28 is the same as D26) - however if C27 is Yes, then D28 should be D26*0.111109
If C27 is set to yes, your formula gives #ref! in D27 and D28
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
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