Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Sonya T
 
Posts: n/a
Default Number range function

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.

  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

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
  #3   Report Post  
Bryan Hessey
 
Posts: n/a
Default


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)


--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=388198

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Round a number in nested function kim Excel Worksheet Functions 1 July 6th 05 11:45 AM
Formula to count number of days in range which are less than today zooming Excel Worksheet Functions 2 June 21st 05 04:01 PM
Between/ range function sanpanico Excel Discussion (Misc queries) 3 April 28th 05 10:25 PM
Function to determine if any cell in a range is contained in a given cell [email protected] Excel Worksheet Functions 3 February 7th 05 04:19 PM
function cell range limitations AXA Excel Worksheet Functions 3 January 30th 05 11:09 PM


All times are GMT +1. The time now is 04:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"