Hi everyone! I've only recently started using if functions so I need some help with my situation.
Say I have a spreadsheet with a list of employees and their salaries. Each employee belongs to a group each with their min and max pay. So what I need to do is to use a formula to see if the salary belongs in that range, for example:
Group A (3000$ - 5000$)
Group B (4000$ - 6000$)
So the formula I'm using right now is
=IF(AND(salary>=3000,salary<=5000),"NO","YES") for Group A and for Group B just different numbers. The formula seems to be working fine, but when I change filtering it messes all up.
Is there any way to make the formula so that it knows which group an employee belongs to and use appropriate salary range? Thanks in advance
Say I have a spreadsheet with a list of employees and their salaries. Each employee belongs to a group each with their min and max pay. So what I need to do is to use a formula to see if the salary belongs in that range, for example:
Group A (3000$ - 5000$)
Group B (4000$ - 6000$)
So the formula I'm using right now is
=IF(AND(salary>=3000,salary<=5000),"NO","YES") for Group A and for Group B just different numbers. The formula seems to be working fine, but when I change filtering it messes all up.
Is there any way to make the formula so that it knows which group an employee belongs to and use appropriate salary range? Thanks in advance
Last edited by a moderator: