Consulting

Results 1 to 4 of 4

Thread: Solved: VLOOKUP the Nth Occurance

  1. #1
    VBAX Regular
    Joined
    Nov 2006
    Location
    Seattle
    Posts
    12
    Location

    Solved: VLOOKUP the Nth Occurance



    Hello ~

    I read petermoran's most excellent kb article on VLOOKUP for Duplicates but sadly, my information is not a list of dates.

    I have a list of sales people and want to find their highest and second highest sales weeks. Column A on the "master list" tab contains the sales person's number. Column B contains their highest weeks (and there may be multiple for the same sales person). On the "list" tab I want to report each sales person's highest and second highest weeks.

    Is this possible?

    I've attached an example

  2. #2
    VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    How about:

    [VBA]=vlookup(max(, etc.[/VBA]
    Peace of mind is found in some of the strangest places.

  3. #3
    VBAX Regular
    Joined
    Nov 2006
    Location
    Seattle
    Posts
    12
    Location
    Hey austenr (love Red Green, excellent show) ~

    That's wonderful, thanks, but doesn't seem to work if there are duplicates (there are a few). Unless I'm doing something wrong, which is entirely likely.

    Thanks!

  4. #4
    VBAX Regular
    Joined
    Nov 2006
    Location
    Seattle
    Posts
    12
    Location
    Please disregard. I found a way to work around it using a "COUNTIF" function (for example, COUNTIF($D319$319,D319)&" "&D319) which works fantastically.

    Thank you for your help, regardless!

Posting Permissions

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