+ Reply to Thread
Results 1 to 3 of 3

Lookup Value if number falls in range in same row

  1. #1
    Registered User
    Join Date
    11-17-2011
    Location
    Zimbabwe
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    2

    Lookup Value if number falls in range in same row

    Happy new year. Been trying to work this out but can't seem to be able to find a solution. I have 2 sheets, and in sheet1 is my source data with for columns. Column A contains ticket numbers and can sometimes be grouped but the first 5 digits will always remain constant for that particular group. columns B & C are basic formulas to try and split the group so I get the first and last ticket number in each group and column D is the team the tickets belong to.

    The tricky bit for me now is I get from a different source the same ticket numbers but in this one (Sheet2) the ticket numbers come split already and in individual rows but with no team names. What am trying to do is to be able to fill in the team names in sheet2 from the data in sheet1 eg Ticket number 900992897 will fall in the range 900992897-2899 and so should show team as Adventure. Hope this makes sense. Thanks in advance.


    Sheet1 Sheet2
    Column A Column B Column C Column D Column A Column B
    Ticket Nos Start End Team Name Ticket Nos Team Name
    900991547-1549 900991547 900991549 Adventure 900992897
    900992356-2358 900992356 900992358 Admirals 900993578
    900992569-2573 900992569 900992573 Dynamo 900994522
    900992897-2899 900992897 900992899 Adventure 900995781
    900993578-3579 900993578 900993579 Adventure 900992357
    900994520-4522 900994520 900994522 Dynamo 900991548
    900994589-4593 900994589 900994593 Captains 900992358
    900995780-5785 900995780 900995785 Dynamo 900992569
    900996897-6898 900996897 900996898 Admirals 900992573
    900992898
    900992899
    900992570
    900992571
    900992572
    900993579
    900991549

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Lookup Value if number falls in range in same row

    Hi Fadzie,

    Welcome to the Forum!

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    11-17-2011
    Location
    Zimbabwe
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    2

    Re: Lookup Value if number falls in range in same row

    Hi xladept

    Thanks for the response. I have attached a sample of what am trying to do. Please note the ticket group can be more than 2 tickets. just noticed my sample on has max of 2 for those that are grouped.

    thanks
    Attached Files Attached Files

+ 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. Replies: 4
    Last Post: 05-22-2013, 04:15 AM
  2. determining if a number falls in a range
    By efried12 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-05-2013, 07:09 PM
  3. Replies: 1
    Last Post: 01-17-2013, 10:44 AM
  4. Formula to determine whether number falls within range??
    By Cat in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-16-2005, 10:05 PM
  5. Replies: 1
    Last Post: 01-17-2005, 01:39 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