Calculating a percentage IF = yes
Ok I need a formula that:
Will calculate a 12.5% of A1 if H1 is Yes and calculate 20.5% of A1 if G1 is yes. is this possible. I can't figure it out. Please help
ExcelExperts.comExcel Consultancy, VBA Consultancy, Training and Tips Call:+442081234832 |
|
Excel / VBA ConsultancyFree Training VideosFree SpreadsheetsExcel / VBA JobsNavigationWho's onlineThere are currently 0 users and 995 guests online.
New Excel Experts
Current Excel / VBA Jobs |
Calculating a percentage IF = yesOk I need a formula that: |
Highest Ranked Users
Recent Blogs
ForumsRecent comments
User login |
=A1*IF(H1="Yes",0.125,IF(G1="
=A1*IF(H1="Yes",0.125,IF(G1="Yes",0.205,0))
This returns the correct answer if one and only one of H1 and G1 have yes.
If both have yes, it returns 12.5% of A1. If neither have yes it returns 0.
If you would prefer something different in these circumstances, post what you'd like.
thank you Yamor, is there a
thank you Yamor, is there a way to now add the percentages if H1 and G1 both if they both equal yes.
AND Function
Hi Jennifer,
You can start the function with a nested AND in order to combine multiple factors before activating a true statement in an IF function.
I have added into Yamor's original function as follows:
=A1*IF(AND(H1="Yes",G1="Yes"),0.33,IF(H1="Yes",0.125,IF(G1="Yes",0.205,0)))
Regards
Mark
Or perhaps slightly
Or perhaps slightly easier:
=A1*(IF(H1="Yes",0.125,0)+IF(G1="Yes",0.205,0))