+ Reply to Thread
Results 1 to 9 of 9

Lookup number within a range and return zone.

  1. #1
    Forum Contributor
    Join Date
    06-15-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    100

    Lookup number within a range and return zone.

    Hi Guys,

    I need to be able to do a lookup for a number in a range.Like the below table, so if the number was 24 it would pick up Zone 3?

    Any ideas?

    Cheers,

    60-69 Zone 1
    99 Zone 1
    10-19 Zone 2
    30-39 Zone 2
    20-29 Zone 3

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Lookup number within a range and return zone.

    Are those the real number ranges or are they just made up for the post?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Lookup number within a range and return zone.

    What about the gaps e.g.

    0-9
    40-59
    70-98
    Over 99
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Contributor
    Join Date
    06-15-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    100

    Re: Lookup number within a range and return zone.

    Sorry guys,

    Made it smaller to make it simpler but it messed it up didnt it.

    The real range is

    60-69 Zone 1
    99 Zone 1
    10-19 Zone 2
    30-39 Zone 2
    20-29 Zone 3
    40-59 Zone 3
    70-98 Zone 3

  5. #5
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Lookup number within a range and return zone.

    See attached...
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    06-15-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    100

    Re: Lookup number within a range and return zone.

    Thanks man.

    Do I just use a standard vlookup formula on this now then?

    Can I ask the method behind it as well as i've got quite a few zones I need to do this for.

    Thanks again

  7. #7
    Forum Contributor
    Join Date
    06-15-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    100

    Re: Lookup number within a range and return zone.

    Okay ignore that vlookup question, I'm an idiot, I've just seen what you've done. The methodology would help though please

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Lookup number within a range and return zone.

    Hi,

    See attached
    Attached Files Attached Files

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Lookup number within a range and return zone.

    Setup your table as show:

    Data Range
    A
    B
    C
    D
    E
    F
    1
    Number
    Location
    ------
    From
    To
    Location
    2
    74
    Zone 3
    10
    19
    Zone 2
    3
    20
    29
    Zone 3
    4
    30
    39
    Zone 2
    5
    40
    59
    Zone 3
    6
    60
    69
    Zone 1
    7
    70
    98
    Zone 3
    8
    99
    99+
    Zone 1


    This formula entered in B2:

    =IFERROR(LOOKUP(A2,D2:F8),"")

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Lookup the largest number in a range and return a number of other factors
    By JumpingJim in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-10-2014, 04:07 AM
  2. [SOLVED] Freight Table - weight and zone lookup, return cost
    By yaman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-04-2014, 02:25 PM
  3. Replies: 5
    Last Post: 07-07-2013, 03:39 PM
  4. Replies: 3
    Last Post: 04-07-2013, 10:41 PM
  5. Replies: 3
    Last Post: 12-05-2011, 02:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1