+ Reply to Thread
Results 1 to 6 of 6

Lookup within a lookup

  1. #1
    Registered User
    Join Date
    10-01-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    38

    Lookup within a lookup

    I have a number of transactions on various dates for a number of employees. I want to find out the amount of the transaction on a particular date of a particular employee. What I tried was as under -

    1. Set filter on the employee code for the given employee
    2. Now I vlookup the excel sheet for the given date.

    I had presumed that the vlookup will this way work only on the filtered data, but obviously that is not the case. How can I make vlookup work only on the filtered data?

    Can someone suggest the best method for achieving the above objective?
    Last edited by dhatul; 10-15-2010 at 05:59 AM.

  2. #2
    Registered User
    Join Date
    10-07-2010
    Location
    us
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Lookup within a lookup

    what about a Pivot Table

  3. #3
    Registered User
    Join Date
    10-01-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Lookup within a lookup

    Quote Originally Posted by pklimchuk View Post
    what about a Pivot Table
    I wanted to restrict myself to the original data itself, without writing the filtered data elsewhere (as in a pivottable).

    Say, can I sort the data on employee no.+transaction date. Filter on employee no. Then find out the row no. of the first filtered record and the last filtererd record (they will be contiguous, since I sorted on employee no.) and then restrict the vlookup row between the first and the last filtered record rows?

    How's that? But how to find out the row nos.? Any simple way?

  4. #4
    Registered User
    Join Date
    10-01-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Lookup within a lookup

    Alternatively, cansomeone suggest a way to restrict vlookup to visible rows only (after filtering).
    Learning is enjoyable. Enjoying learning.

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Lookup within a lookup

    Quote Originally Posted by dhatul View Post
    I have a number of transactions on various dates for a number of employees. I want to find out the amount of the transaction on a particular date of a particular employee...

    Can someone suggest the best method for achieving the above objective?
    If the combination of date & employee is unique (or if not unique you wish to aggregate) then given use of XL2007 and the fact the resulting value is numeric use SUMIFS - no need to filter etc.

  6. #6
    Registered User
    Join Date
    10-01-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Lookup within a lookup

    Quote Originally Posted by DonkeyOte View Post
    If the combination of date & employee is unique (or if not unique you wish to aggregate) then given use of XL2007 and the fact the resulting value is numeric use SUMIFS - no need to filter etc.
    Wonderful. I could have never imagined that an unrelated function can be so powerful and effective.

    Thanks a lot.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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