Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 07-18-2005, 08:05 PM
Sonya T
Guest
 
Posts: n/a
Number range function

Please Register to Remove these Ads

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.

Reply With Quote
  #2  
Old 07-18-2005, 08:19 PM
Bryan Hessey Bryan Hessey is offline
Forum Guru
 
Join Date: 13 Mar 2005
Posts: 6,200
Bryan Hessey is becoming part of the community
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)
Reply With Quote
  #3  
Old 07-18-2005, 09:05 PM
Dave Peterson
Guest
 
Posts: n/a
Re: Number range function

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.

Sonya T wrote:
>
> 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.


--

Dave Peterson
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump