+ Reply to Thread
Results 1 to 10 of 10

How to get sum and avagerage of certain text using subtotal function

  1. #1
    Registered User
    Join Date
    02-22-2022
    Location
    ASIA
    MS-Off Ver
    365
    Posts
    99

    How to get sum and avagerage of certain text using subtotal function

    Dear Team,
    I hope all are well and good.
    I upload a file, in which I need to get the sum and average of time duration last column of the uploaded file,
    for example when I filter exchange Name column and the exchange "ABC" I want to get the sum and average of all the entries of this exchange in time duration
    column, similarly the other exchange name, DEF,GHI and so on...
    Thanks a lot in advance pl.

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,868

    Re: How to get sum and avagerage of certain text using subtotal function

    sum in L1
    Please Login or Register  to view this content.
    average in M1
    Please Login or Register  to view this content.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,998

    Re: How to get sum and avagerage of certain text using subtotal function

    Looking at the last solution, maybe I have misunderstood the requirement. But . . .

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    For the first formula, you can drop the TEXT(. . . ,"[h]:mm") part and just use a Custom Format.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    02-22-2022
    Location
    ASIA
    MS-Off Ver
    365
    Posts
    99

    Re: How to get sum and avagerage of certain text using subtotal function

    Thanks a lot Dear Team,
    Mr. Windknife solution is as I required, because when filter exchange ABC it gives me only ABC and similarly when filter other Exchange names it gives me
    the break up i mean sum and average of this exchange only..

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,998

    Re: How to get sum and avagerage of certain text using subtotal function

    Ok, fair enough. Thanks for the reply

  6. #6
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,868

    Re: How to get sum and avagerage of certain text using subtotal function

    You are welcome.
    -----------------------------------
    If that takes care of your original question, please click on "Thread Tools" from the menu link above and mark this thread as SOLVED.

  7. #7
    Registered User
    Join Date
    02-22-2022
    Location
    ASIA
    MS-Off Ver
    365
    Posts
    99

    Re: How to get sum and avagerage of certain text using subtotal function

    Hello Mr. what is this?

  8. #8
    Registered User
    Join Date
    02-22-2022
    Location
    ASIA
    MS-Off Ver
    365
    Posts
    99

    Re: How to get sum and avagerage of certain text using subtotal function

    Hello Team,
    I have also a new query for this If I want to count the no. of problems of any exchange for example Exchange ABC then what would be the
    formula,
    I am apologies for not ask it in the beginning also..
    Thanks a lot in advance pl.

  9. #9
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,868

    Re: How to get sum and avagerage of certain text using subtotal function

    Try this,
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    02-22-2022
    Location
    ASIA
    MS-Off Ver
    365
    Posts
    99

    Re: How to get sum and avagerage of certain text using subtotal function

    Quote Originally Posted by windknife View Post
    Try this,
    Please Login or Register  to view this content.
    Thanks a lot,
    The formulas is working very well,
    My all problems now solved.
    May God bless you..

+ 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. [SOLVED] Subtotal-like function for text on a filtered table
    By ericbinfet in forum Excel General
    Replies: 1
    Last Post: 01-09-2014, 04:27 PM
  2. Subtotal - Delete zero Subtotal and prior rows that calculate to that zero Subtotal
    By Whatsherface in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2012, 08:37 PM
  3. SUBTOTAL VLookup #N/A How can Subtotal function ignore #N/A
    By RxMiller in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-18-2009, 01:01 PM
  4. SubTotal function. How do I keep reuse Subtotal criteria.
    By davidthegolfer in forum Excel General
    Replies: 0
    Last Post: 10-10-2006, 03:28 AM
  5. [SOLVED] Need subtotal function to return text as result
    By Alby in forum Excel General
    Replies: 0
    Last Post: 02-15-2006, 06:50 PM
  6. [SOLVED] Embed a countif function in subtotal function?
    By Stuck at work in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-13-2006, 11:20 PM
  7. [SOLVED] subtotal-isplaying data without using function subtotal ?
    By Marijan Glavaè in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-19-2005, 09:05 AM
  8. [SOLVED] How do I nesting subtotal function within average function in Exc
    By Amy Yeh in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-19-2005, 04:06 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