Forum Discussion

spamitovic's avatar
spamitovic
Copper Contributor
Jul 03, 2022
Solved

Search correspondance and calculate

Hi members,

 

I have a table where I list the tax value for a slice of salary:

Min.Max.Tax
0300000%
300015000010%
500016000020%
600018000030%
8000118000034%
180001or more38%

 

Now I would like to calculate the annual salary, and based on the result, I should use vlookup function to search where the annual salary is situated and select the correct tax.

For example: If the annual salary is 45500, the selected tax should be 10%

 

But I try to mix VLOOKUP function with MIN and MAX functions but it doesn't work or just I don't know how to do it.

 

The result should be like that:

 

Salary/MonthTax
1500,000%
1000,000%
2800,0010%
2500,0010%
3000,0010%
2800,0010%

 

  • spamitovic Please see attached. I used LOOKUP rather than VLOOKUP. If you are on a modern Excel version, consider XLOOKUP.

     

    By the way, I believe a monthly salary of 2500 (i.e. 30000/year) should result in 0%, in stead of 10% in your example.

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    spamitovic Please see attached. I used LOOKUP rather than VLOOKUP. If you are on a modern Excel version, consider XLOOKUP.

     

    By the way, I believe a monthly salary of 2500 (i.e. 30000/year) should result in 0%, in stead of 10% in your example.

    • spamitovic's avatar
      spamitovic
      Copper Contributor
      Best answer. Thank you.
      Yes a monthly salary of 2500 should result in 0%.

Resources