Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Google sheet formulae for calculate gross salary

If basic<10000 calculate gross=DA+basic, if basic>=10000 and <20000 , calculate
gross=DA+basic+50% of HRA, if basic >=20000, calculate gross = basic+DA+HRA

Can anyone suggest google sheet formulae?

if(basic < 10000 )
{
   gross = DA + basic
}else if(basic >= 10000 && basic < 20000)
{
    gross = DA + basic + (0.5 * HRA)
}else
{
    gross = DA + basic + HRA
}

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Just plug it to an IF formula.

=if(basic < 10000, DA + basic, if(and(basic >= 10000, basic < 20000), DA + basic + (0.5 * HRA), DA + basic + HRA))
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading