+ Reply to Thread
Results 1 to 6 of 6

Highest Value Search/Corresponding Month Return

  1. #1
    Registered User
    Join Date
    01-16-2009
    Location
    New York City
    MS-Off Ver
    Excel 2003
    Posts
    2

    Highest Value Search/Corresponding Month Return

    Hi everyone,

    I helped create this report that lists the amount of customer visits our sales reps go on for the year, seperated by month.

    The report also lists, per year, the Total visits in each year, and which month had the highest and lowest visit count. This is where I have an issue.

    I want to use a function to figure out which month had the lowest and highest values and then display the month which corresponds to those values, but I have yet to find any function or combination of functions that work.

    Prior to this I was inputting this information manually.

    I've attached a sample of what I'm trying to do. Thanks in advance for any help!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Finding lowest and Highest months

    Hi

    I have attached a revised version of your file showing what you are looking for, this is using a combination of INDEWX, MATCH AND MIN/MAX. There is however a caveat inasmuch as it will only show the first matching value if there is more than one.

    Regards

    Jeff
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-16-2009
    Location
    New York City
    MS-Off Ver
    Excel 2003
    Posts
    2
    Thank you very much for your help. Worked perfectly!

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    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
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  5. #5
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    In orger to get two values incase of a TIE

    You can get two values by this Multiple Lookup Formula

    [ =if(iserror(INDEX($A$3:$A$14,SMALL(IF(MAX($B$3:$B$14)=$B$3:$B$14,ROW($B$3:$B$14)-ROW($B$3)+1),ROW($H2)-1)),"",INDEX($A$3:$A$14,SMALL(IF(MAX($B$3:$B$14)=$B$3:$B$14,ROW($B$3:$B$14)-ROW($B$3)+1),ROW($H2)-1)) ]


    FOR MIN

    [ =if(iserror(INDEX($A$3:$A$14,SMALL(IF(MIN($B$3:$B$14)=$B$3:$B$14,ROW($B$3:$B$14)-ROW($B$3)+1),ROW($H2)-1)),"",INDEX($A$3:$A$14,SMALL(IF(MIN($B$3:$B$14)=$B$3:$B$14,ROW($B$3:$B$14)-ROW($B$3)+1),ROW($H2)-1)) ]

  6. #6
    Registered User
    Join Date
    03-12-2013
    Location
    Norway
    MS-Off Ver
    Excel 2011 for MAC
    Posts
    1

    Re: Finding lowest and Highest months

    Quote Originally Posted by solnajeff View Post
    Hi

    I have attached a revised version of your file showing what you are looking for, this is using a combination of INDEWX, MATCH AND MIN/MAX. There is however a caveat inasmuch as it will only show the first matching value if there is more than one.

    Regards

    Jeff
    Hi.
    I am new here, and this is my first post
    I was looking for exactly the same thing as mrcables, and this worked perfectly. You made my day solnajeff

    Ralex
    Last edited by ralex; 03-13-2013 at 06:45 AM.

+ 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