Hey, guys,
I'm aware its possible to use vlookup to search in a range. However, let's say you only have the maximum limit. For the purpose of example a have column A with amount and column B with percentage.
Column A figures represent salaries:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]632[/TD]
[TD]0%[/TD]
[/TR]
[TR]
[TD]645[/TD]
[TD]3%[/TD]
[/TR]
[TR]
[TD]683[/TD]
[TD]5,7%[/TD]
[/TR]
[TR]
[TD]736[/TD]
[TD]7,5%[/TD]
[/TR]
</tbody>[/TABLE]
How does this work? Basically, if someone gets a salary UNTIL 736, it will pay 7,5%. In other words, 736 is the upper limit of the range.
If I use vlookup with TRUE as last statement, it will interpret 736 as the lower limit and, therefore, for a salary of 730, for instance, will return 5,7% when it should return 7,5%.
How can I solve this?
Thanks!
I'm aware its possible to use vlookup to search in a range. However, let's say you only have the maximum limit. For the purpose of example a have column A with amount and column B with percentage.
Column A figures represent salaries:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]632[/TD]
[TD]0%[/TD]
[/TR]
[TR]
[TD]645[/TD]
[TD]3%[/TD]
[/TR]
[TR]
[TD]683[/TD]
[TD]5,7%[/TD]
[/TR]
[TR]
[TD]736[/TD]
[TD]7,5%[/TD]
[/TR]
</tbody>[/TABLE]
How does this work? Basically, if someone gets a salary UNTIL 736, it will pay 7,5%. In other words, 736 is the upper limit of the range.
If I use vlookup with TRUE as last statement, it will interpret 736 as the lower limit and, therefore, for a salary of 730, for instance, will return 5,7% when it should return 7,5%.
How can I solve this?
Thanks!
Last edited: