+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    01-10-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    29

    MAX and perhaps a VLOOKUP?

    Hi Guys,

    I hope what I am trying to do is possible... I would be eternally greatful for any help!

    I have a spreadsheet that is updated every month (100+ Rows, 38 Columns) and what I need to do is list the top sales person by 'dollars above target' in each of our 6 product classes. The staff names are in column A and the comparison to targets for the first product is in column AA.

    My best idea so far is getting the MAX of the Sales vs Budget and applying a conditional format to highlight the data equal to the figure in that cell then finding the name myself from the list in Column A, but I was hoping someone might know a way to have Excel generate this name for me? - Also, is there a formula I can use that will give me the top 3 scores for each product?

    Thanks in advance
    Last edited by JoeyGirl; 01-10-2010 at 11:42 PM.

  2. #2
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    Re: MAX and perhaps a VLOOKUP?

    Hi JoeyGirl, welcome to the forum. It'll be hard to write formulas without knowing more about the data layout. Can you put together a few dozen rows of sample data, make sure they don't contain confidential data and then post the workbook up here?

    You can upload a file by clicking "Go Advanced" below the Quick Reply box and then the paper clip icon.

    cheers
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  3. #3
    Registered User
    Join Date
    01-10-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: MAX and perhaps a VLOOKUP?

    Hi,

    Thanks for responding so quickly.

    I've attached a sample bit of data and removed any identifying anything. Everything in the columns beyond the comparison is just sales payment formula, and I cut out some HR data at the start but added in 4 hidden columns to move the comparison back to Column AA for the ease of anyone playing at home.

    Cheers
    Attached Files Attached Files

  4. #4
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    Re: MAX and perhaps a VLOOKUP?

    Hi,

    maybe something like this, starting in column AH

    Code:
    Top 3					
    Product 1	Product 2	Product 3	Product 4	Product 5	Product 6
    Operator 2	Operator 6	Operator 6	Operator 3	Operator 1	Operator 5
    Operator 6	Operator 2	Operator 1	Operator 2	Operator 2	0
    Operator 5	Operator 1	Operator 3	Operator 1	Operator 6	Operator 1
    AH3 =INDEX($A$1:$A$11,MATCH(LARGE(AA$3:AA$11,1),AA$3:AA$11,0))
    AH4 =INDEX($A$1:$A$11,MATCH(LARGE(AA$3:AA$11,2),AA$3:AA$11,0))
    AH5 =INDEX($A$1:$A$11,MATCH(LARGE(AA$3:AA$11,3),AA$3:AA$11,0))

    Copy these across. Mind the placement of the $ signs.

    You can also total up comparison results per row and calculate an overall top 3
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  5. #5
    Registered User
    Join Date
    01-10-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: MAX and perhaps a VLOOKUP?

    Hey,

    I've put in your formula and you're definitely on the right track! This is exactly the type of thing I was hoping to do.. yay! :D

    Just one little problem tho.. the results it gives aren't right - for example Product 1 says that Operator 2 has the highest result, where Operator 2 actually made no sales at all that month and should actually be equal last with Operator 6 (who came second in the formula).

    Im guessing this would just be a small tweak to the formula?

  6. #6
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    Re: MAX and perhaps a VLOOKUP?

    Fatal error in the formula. Programmer shot.

    In all three formulas, change

    =INDEX($A$1:$A$11....

    into

    =INDEX($A$3:$A$11....
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  7. #7
    Registered User
    Join Date
    01-10-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: MAX and perhaps a VLOOKUP?

    Aha - Perfect!

    I've added it into my workbook and it's spot on! Thats one less fiddly little thing for me to do every month

    Thanks so much for your help Teylyn, you've made my day!

    Should I close this thread now? How do I do that?

  8. #8
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    Re: MAX and perhaps a VLOOKUP?

    I like making days ...

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

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.2.0