Jan 09 2023 12:28 PM
Hello, everybody! I need your help! :)
Please see the attached image. I have to calculate de Gross salary from Net and we have 2 situations:
This means I am using 2 different formulas to generate the result based on this 10% deduction. One formula without the 10% deduction support from the government and another formula including the 10% deduction.
Is it possible that these 2 formulas change automatically depending on the YES or NO text that wil be selected in the dropdown list? I mean if I will select NO, we will have the normal gross salary formula calculation but if I select YES, the formula calculation will change and it will automatically generate the result with 10% deduction.
I don’t know if this is possible or not. I have searched everywhere but found no solution. Maybe someone will be able to help. Thank you very much! :)
Jan 09 2023 12:49 PM
Let's say Net Salary is in D2 and the Yes/No for 10% Deduction is in E2. The formula for Gross Salary would be
=D2*2-IF(E2="Yes",10%*D2,0)
or
=D2*(2-10%*(E2="Yes"))
Jan 10 2023 04:32 AM