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
 
What am I not understanding about you data or requirement?
I have your formula from post #1 in D27

works fine with 'No', ie if No then D28 is the same as D26
OK, here is my formula in D28 with that scenario. I have your formula from post #6 in E28 for comparison

24 10 13.xlsm
CDE
263
27No 
2833
Sheet2 (2)
Cell Formulas
RangeFormula
D27D27=IF(RIGHT(C27,3)="YES",D28*10%,"")
D28D28=D26+D26*0.111109*OR(D27<>"",RIGHT(C27,3)="YES")
E28E28=IF(RIGHT(C27,3)="YES",(D26*0.111109)+D26,IF(D27<>"",(D26*0.111109)+D26,D26))
Cells with Data Validation
CellAllowCriteria
C27ListYes,No


however if C27 is Yes, then D28 should be D26*0.111109
.. and here is my formula with that scenario. I still have your formula from post #6 in E28 for comparison
24 10 13.xlsm
CDE
263
27Yes0.333333
283.3333273.333327
Sheet2 (2)
Cell Formulas
RangeFormula
D27D27=IF(RIGHT(C27,3)="YES",D28*10%,"")
D28D28=D26+D26*0.111109*OR(D27<>"",RIGHT(C27,3)="YES")
E28E28=IF(RIGHT(C27,3)="YES",(D26*0.111109)+D26,IF(D27<>"",(D26*0.111109)+D26,D26))
Cells with Data Validation
CellAllowCriteria
C27ListYes,No


Seems to me my formula and your formula from post #6 are producing the same results. What am I missing?
 
Upvote 0

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
What am I not understanding about you data or requirement?
I have your formula from post #1 in D27


OK, here is my formula in D28 with that scenario. I have your formula from post #6 in E28 for comparison

24 10 13.xlsm
CDE
263
27No 
2833
Sheet2 (2)
Cell Formulas
RangeFormula
D27D27=IF(RIGHT(C27,3)="YES",D28*10%,"")
D28D28=D26+D26*0.111109*OR(D27<>"",RIGHT(C27,3)="YES")
E28E28=IF(RIGHT(C27,3)="YES",(D26*0.111109)+D26,IF(D27<>"",(D26*0.111109)+D26,D26))
Cells with Data Validation
CellAllowCriteria
C27ListYes,No



.. and here is my formula with that scenario. I still have your formula from post #6 in E28 for comparison
24 10 13.xlsm
CDE
263
27Yes0.333333
283.3333273.333327
Sheet2 (2)
Cell Formulas
RangeFormula
D27D27=IF(RIGHT(C27,3)="YES",D28*10%,"")
D28D28=D26+D26*0.111109*OR(D27<>"",RIGHT(C27,3)="YES")
E28E28=IF(RIGHT(C27,3)="YES",(D26*0.111109)+D26,IF(D27<>"",(D26*0.111109)+D26,D26))
Cells with Data Validation
CellAllowCriteria
C27ListYes,No


Seems to me my formula and your formula from post #6 are producing the same results. What am I missing?
Thank you for helping
The formula you have put in E28 (which was the one I was using) does work fine
The formula you have put in D28 still produces the error
D27 is also fine
 
Upvote 0
The formula you have put in D28 still produces the error
You can see that it does not produce an error for my sample data & in fact produces an identical result to your formula in E28 for both sets of sample data.

What is different about what I have and what you have?

So that I can understand, can you post a small sample with XL2BB like I have that shows my formula producing that error?
 
Upvote 0
Apologies for the delay - its taken me a while to work out how to install the XL2BB add on - the first version is the one that works - the second is using your formulas


INTERNALSUB TOTAL£1,230.00 CONNECT MANAGEMENT FEE (10%) Yes
INTERNALTOTAL INC MARGIN FEE£1,722.00 CONNECT MANAGEMENT FEE (10%) No
INTERNALCONNECT MANAGEMENT FEE (10%) Yes191.33
CLIENT FACINGCLIENT TOTAL1913.33

Your formula

INTERNALSUB TOTAL£1,230.00 CONNECT MANAGEMENT FEE (10%) Yes
INTERNALTOTAL INC MARGIN FEE£1,722.00 CONNECT MANAGEMENT FEE (10%) No
INTERNALCONNECT MANAGEMENT FEE (10%) Yes191.33
CLIENT FACINGCLIENT TOTAL0.00
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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