+ Reply to Thread
Results 1 to 10 of 10

Excel 2007 : How do I get multiple values form a vlookup

  1. #1
    Forum Contributor
    Join Date
    08-26-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2007
    Posts
    149

    How do I get multiple values form a vlookup

    Hi Guys,

    i'm new here, so apologies if this has been asked before!!!

    I am trying to do a vlookup that brings back all data associated with the "look at " data.


    Now in the data attached I know that each one has 2 or 3 entries per code. But when I do the vlookup, it will only bring back the first instance. (I.E I know A5PS has two entries of arrived and finished time (14:29:00 and 09:49:00 on the same day)

    Is there a way to show each code by day each arrival and finish time?

    I've tried this, and it has bought back data, but I cna't work out where from?!?!

    INDEX('Raw Report'!$AU$2:$AV$9972,SMALL(IF('Raw Report'!$AU$2:$AU$9972=Sheet2!C5,ROW('Raw Report'!$AU$2:$AU$9972)),ROW(Sheet2!5:5)),2)

    as an array formula.

    any help would be amazing

    cheers

    Donna
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: How do I get multiple values form a vlookup

    You could possibly use a PivotTable to get the Count, then use the DrillDown option to get the items for each code
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    08-26-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: How do I get multiple values form a vlookup

    Thanks for that royUK, but Ideally I would need this to be a formula as it is part of an automated work sheet on performance.

    I just want to drop in the raw data and everything else updates as per a code that is entered. (If that makes sense!!)

    cheers

    Donna

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How do I get multiple values form a vlookup

    what are you looking up code.date or what?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Contributor
    Join Date
    08-26-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: How do I get multiple values form a vlookup

    Quote Originally Posted by martindwilson View Post
    what are you looking up code.date or what?
    Hi Martin,

    What I am looking to get is a list of dates that jobs were done on, who done them (code) and the start and finish times for each job on each day.

    The actual data i am working with is about 70,000 lines of data, and the worksheet is designed to tell me by day how many jobs were done in a region by each code. i know need to break that down to individual job and time on and off..I would pop the whole spreadhseet on here but its far too big.

    I hope this helps

    Donna

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How do I get multiple values form a vlookup

    70000 lines most formulas would probably struggle, what is the final layout going to look like'

  7. #7
    Forum Contributor
    Join Date
    08-26-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: How do I get multiple values form a vlookup

    Well 70000 might be a bit OTT!!!

    I basically want it to look like this:

    a1jk <- Enter Code

    Calls Attended Arrive Time End Time
    03/06/2011 1 12:00:00 12:15:00
    10/06/2011 3 9:00:00 9:30:00
    10/06/2011 11:00:00 12:00:00
    10/06/2011 13:30:00 13:35:00
    17/06/2011 3
    17/06/2011
    17/06/2011
    17/06/2011
    24/06/2011 1

  8. #8
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How do I get multiple values form a vlookup

    Maybe this workbook using helpers to avoid array formulae?

    You have multiple entries with differing arrived/finished times, is this correct?
    e.g.
    01/06/2011 A5PS

    This workbook will return the first found times.

    [EDIT]
    Oops your sample doesn't have calls attended so I missed that bit
    Attachment updated.
    Attached Files Attached Files
    Last edited by Marcol; 08-26-2011 at 10:44 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  9. #9
    Forum Contributor
    Join Date
    08-26-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: How do I get multiple values form a vlookup

    Wow Marcol, that looks like it will work, I shall send it home and try it out.

    I was kind of going in the right direction , but when I joined the Date and code together, it all kind of stopped working!!!

    Once agian thanks, and if it does work (It looks like if will) I shall amend as neccesary

    cheers

    Donna

  10. #10
    Forum Contributor
    Join Date
    08-26-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: How do I get multiple values form a vlookup

    hi Marcol,

    i have looked at this and is whatI am after, but where you have the first code/date unique says 2 calls attended, I need both the start and end times shown.

    Are you able to do that?

    Cheers

    Donna

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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