Jump to content

Recommended Posts

Posted

Hi all,

 

Hopefilly there is an Excel guru here who can shed some light on this.

 

Been asked to do a sheet whereby if a value entered in a cell is within a specific range of numbers, another cell will display a pre-determined value.

 

It would be simple but ...... this is a the range example.... it goes up to 50 and most of the range values are the same except a few like row 3 below.

 

 

Columns are: Lower range, Upper range, Display Value.

 

 

E.g. (Row 2) If num is => 3 AND <=5 then display 80

 

 

0 2 0

3 5 80

6 6 82

7 7 83

8 8 84

9 9 85

 

 

 

Can anyone shed a good method of how this could be done ??

 

 

 

Cheers in advance ;)

Posted (edited)

Yeaah a Vlookup with a True switch would make the most sense. The True means it's a 'closest match' which basically means you can use a table as a lookup and if the range is 0 - 5, anything within that range (i.e. 0,1,2,3,4,5) will return the answer as required.

 

See link here for details (the example shows a single column lookup, but the principle is the same :) ): https://www.excelcampus.com/functions/vlookup-closest-match-true/

 

and here's a super quick example i set up using your table :)

 

vlookuptrye.jpg

Edited by MrMat
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...