Number range function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a function in excel where you can look up a number range and return
a value, rather than having to type out the full number range in a standard
vlookup function. For example, for vehicle numbers 1 - 50 I want to return a
type description "Car". I will have approx 60 different number ranges e.g.
1-50, 51-100, 101-150..etc.etc.
 
Lets hope for a better solution, but in case:

enter 1, in A1 and hold the CTRLK key and formula drag to 600, this
will number the range for you.
enter Car in B1 and drag to 50, Truck in 51 and drag to 100 etc.
The range can then be used as a range, or named and used as a Named
Range.

(note, to Formula drag, click the small square in the bottom right
corner of the highlight)
 
I'd create a list like this in sheet2!a1:b##:

1 car
51 truck
101 Van
151 Firetruck
201 policecar
....


Then use:
=vlookup(a1,sheet2!a:b,2)

Note that there isn't a False or 0 as the last parm in the function.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top