+ Reply to Thread
Results 1 to 10 of 10

Vlookup for multiple rows to create a temporary range?

  1. #1
    Registered User
    Join Date
    03-06-2015
    Location
    sweden
    MS-Off Ver
    Office 2007
    Posts
    5

    Question Vlookup for multiple rows to create a temporary range?

    Hopefully I can explain what I am trying to do, I have tried to google, but I feel I don't have the right words.

    I have two sheets in a book. In sheet one I have each "guest" as a type of members register.
    In one of the columns I am using COUNTIF to tally up the number of rows (meetings) that guest has in sheet two, the big list of meetings.
    That works well and I can see on sheet one that I met Bob 3 times and Ann 5 times.
    I would like to also see at a glance when we most recently met. So in other words, use a MAX on "all the dates in C:C that have Bob in col A:A"

    Does this make sense at all? Otherwise please let me know and I will try and be clearer.

    Here's an example file: ListTest2.xlsx
    Last edited by soclose; 03-06-2015 at 11:43 AM. Reason: Edited to add file!

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Vlookup for multiple rows to create a temporary range?

    Welcome to the forum.

    Typically if someone wants help they will post a sample workbook (follow the instructions in my signature).
    In this workbook they will include sample data that is representative of the actual data (or you can use actual data if it is NEAT and easy for us to understand AND NOT SENSITIVE).
    Also in the workbook, is a layout of exactly what they want the output to look like. Give us an example of what you are trying to do and you can use typed numbers and tell us you are looking for a formula to populate a cell or a specific range.

    This will help us help you.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    03-06-2015
    Location
    sweden
    MS-Off Ver
    Office 2007
    Posts
    5

    Re: Vlookup for multiple rows to create a temporary range?

    Thanks! Have edited my post to include a test file.
    I should perhaps have adjusted my example given then to say that in contacts!J2 I want to see the latest date on which I met the person with the nick in contacts!A2. That person has two dates in meetings!C and I would like to pull up the most recent of the two so it dynamically updates as more and more dates are added.

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Vlookup for multiple rows to create a temporary range?

    So I am not EXACTLY sure which is the unique key on each of the tabs (I was expecting there to be a name, but I think the "number" column is unique).

    Either of these two formulas will work in cell J2 assuming the data in the MEETINGS tab is sorted in order of oldest to newest:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-06-2015
    Location
    sweden
    MS-Off Ver
    Office 2007
    Posts
    5

    Re: Vlookup for multiple rows to create a temporary range?

    Yeah, sorry, number would be the key. I suspected INDEX would be part of the solution to this. Will need to analyse this to work out why it works :D
    Huge thanks for the fast reply!

    What would I need to add to it to make it return the value of "next meeting" for the row that contains the latest meeting?

  6. #6
    Registered User
    Join Date
    03-06-2015
    Location
    sweden
    MS-Off Ver
    Office 2007
    Posts
    5

    Re: Vlookup for multiple rows to create a temporary range?

    Hmm, the first alternative doesn't use MAX, so I can't "reverse engineer it" to use MIN ... maybe I should use the second example instead?

  7. #7
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Vlookup for multiple rows to create a temporary range?

    Quote Originally Posted by soclose View Post
    Hmm, the first alternative doesn't use MAX, so I can't "reverse engineer it" to use MIN ... maybe I should use the second example instead?
    What are you trying to accomplish?

  8. #8
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Vlookup for multiple rows to create a temporary range?

    simply change the column from =INDEX(meetings!C:C, to whatever the next meeting column is on the meetings tab.

  9. #9
    Registered User
    Join Date
    03-06-2015
    Location
    sweden
    MS-Off Ver
    Office 2007
    Posts
    5

    Re: Vlookup for multiple rows to create a temporary range?

    Thanks for the help mikeTRON this is working pretty well for me now will be interesting to see it in action!

  10. #10
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Vlookup for multiple rows to create a temporary range?

    Great, let us know if you need any additional help or have any other questions.

    Can you also mark the thread SOLVED?

+ 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. Create range of numbers on one row from incrementing numbers on multiple rows
    By mexykanu in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-20-2014, 04:40 PM
  2. Create temporary Drop Down List from different workbook using VBA
    By ANDREWA in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-19-2012, 06:53 AM
  3. [SOLVED] Parsing Through Data and Putting the Headings of Certain Columns in a Temporary Range
    By JP777 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-23-2012, 12:01 AM
  4. Multiple ccolums/rows to get data from multiple columns/rows (vlookup)
    By Ramzes in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-18-2010, 05:35 AM
  5. Replies: 3
    Last Post: 03-01-2005, 03:06 PM

Tags for this Thread

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