+ Reply to Thread
Results 1 to 5 of 5

Vlookup for Max / Min / Average Value in Range

  1. #1
    Registered User
    Join Date
    03-28-2017
    Location
    Durham
    MS-Off Ver
    2010
    Posts
    38

    Vlookup for Max / Min / Average Value in Range

    Good morning, I would like to request help with a lookup formula.

    I want to find the minimum, maximum and average value from column F for the range between columns O and P which refer to values in column A. Column A is ascending.

    Capture.JPG

    Thanks for any help, I hope I have explained that well enough.
    Attached Files Attached Files
    Last edited by Metcalfe; 04-19-2017 at 05:03 AM. Reason: Attachments added

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,979

    Re: Vlookup for Max / Min / Average Value in Range

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    03-28-2017
    Location
    Durham
    MS-Off Ver
    2010
    Posts
    38

    Re: Vlookup for Max / Min / Average Value in Range

    Hi, thanks I have now attached a sample sheet.

    Steven

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Vlookup for Max / Min / Average Value in Range

    =MIN(IF($F$3:$F$35>$O3,IF($F$3:$F$35<$P3,$F$3:$F$35)))
    =MAX(IF($F$3:$F$35>$O3,IF($F$3:$F$35<$P3,$F$3:$F$35)))
    =AVERAGE(IF($F$3:$F$35>$O3,IF($F$3:$F$35<$P3,$F$3:$F$35)))


    These are array formulae.

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...

    On the sheet, I have modified them slightly to remove 0s and error messages...

    Like this for the Min/max:

    =IFERROR(1/(1/MIN(IF($F$3:$F$35>$O3,IF($F$3:$F$35<$P3,$F$3:$F$35)))),"")

    and like this for the averge

    =IFERROR(AVERAGE(IF($F$3:$F$35>$O3,IF($F$3:$F$35<$P3,$F$3:$F$35))),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  5. #5
    Registered User
    Join Date
    03-28-2017
    Location
    Durham
    MS-Off Ver
    2010
    Posts
    38

    Re: Vlookup for Max / Min / Average Value in Range

    Thankyou Glenn, that's great!

+ 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. Average and vlookup functions using defined names for range of cells
    By stacey69 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-01-2013, 08:28 AM
  2. [SOLVED] average over vlookup range?
    By erk_raven in forum Excel General
    Replies: 13
    Last Post: 11-12-2012, 10:02 AM
  3. How Do I Average A Range On A Different Worksheet Then Paste The Average To A Cell
    By Cfallscat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-15-2011, 04:14 AM
  4. Average over a text range using a vlookup In Column 2nd
    By Kenneth1024 in forum Excel General
    Replies: 6
    Last Post: 09-10-2010, 08:08 AM
  5. Re: Average over a text range using a vlookup In Column
    By Kenneth1024 in forum Excel General
    Replies: 4
    Last Post: 09-08-2010, 02:38 AM
  6. Average over a text range using a vlookup
    By hemd in forum Excel General
    Replies: 2
    Last Post: 10-22-2009, 05:38 AM
  7. Average for range of values (VLOOKUP?)
    By Poolio in forum Excel General
    Replies: 1
    Last Post: 01-09-2007, 08:20 AM

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