+ Reply to Thread
Results 1 to 5 of 5

Find Min/Max/Average Values when String repeats multiple times.

  1. #1
    Registered User
    Join Date
    02-05-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2013
    Posts
    13

    Find Min/Max/Average Values when String repeats multiple times.

    I am trying to do some analysis on my backup speeds for our Netbackup system. I can grab the output from the Netbackup GUI and pop it into a spreadsheet. Example result types are in the attached spreadsheet. For each Value SU1, SU2, and SU3 (Column E) I need to find the average, the min and the max for KB/Sec (Column C). Of course, as I fill up the spreadsheet the values SU1, SU2, and SU3 will be interspersed all over the place in Column E. I've tried some simple IF statements in combination with the AVERAGEIF, MAX, MIN, etc functions, but kind of hit roadblocks since I'm not an advanced user of Excel and all it various functions.

    Some of my attempts have been:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    As well as other. Any ideas would be greatly appreciated.
    Attached Files Attached Files

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

    Re: Find Min/Max/Average Values when String repeats multiple times.

    One way:

    Max
    =MAX(IF($E$2:$E$19=L$2,$C$2:$C$19))

    MIn
    =MIN(IF($E$2:$E$19=L$2,$C$2:$C$19))

    Average:
    =AVERAGEIF($E:$E,L$2,$C:$C)

    all copied across. The first two are array formulae:


    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

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

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Find Min/Max/Average Values when String repeats multiple times.

    Hi geelsu,

    A Pivot table will do this but if you create a Dynamic Named Range for the Pivot's data and then Refresh the Pivot, you can do all the above. No formulas needed. See the attached:

    Pivot Min Max Avg.xlsx

    http://www.ozgrid.com/Excel/DynamicRanges.htm
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    02-05-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2013
    Posts
    13

    Re: Find Min/Max/Average Values when String repeats multiple times.

    Thanks guys. Glenn, I used your suggestion initially since I had some basic formulas already in the spreadsheet. Marvin, I will also explore you suggestion because it does sound intriguing and also lets me learn something new. Have a super weekend.

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

    Re: Find Min/Max/Average Values when String repeats multiple times.

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. Replies: 5
    Last Post: 07-21-2015, 04:49 PM
  2. [SOLVED] Find specific value in array which appears multiple times and average all relative cells
    By nenadmail in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-24-2014, 04:18 PM
  3. Replies: 1
    Last Post: 11-15-2013, 10:59 AM
  4. Find average of values next to matching string
    By Twage in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-15-2012, 07:29 PM
  5. [SOLVED] VBA Repeats tasks multiple times
    By djfatboyfats in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2012, 06:11 AM
  6. Macro Loop – Find Specific Times, Extract Date, Average Values of Times
    By ExcelQuestFL in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-25-2010, 02:50 PM
  7. [SOLVED] How can I count the number of times a letter repeats in a string?
    By Wiley in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-11-2006, 02:00 PM

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