+ Reply to Thread
Results 1 to 13 of 13

Sum Total for rows with Hidden Rows

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    92

    Question Sum Total for rows with Hidden Rows

    I have a filter to To filter out some data

    Now with the current result showing i need to get the Sum Total of the rows.

    Getting an error, I am guessing because it needs to count for the hidden rows ?

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,937

    Re: Sum Total for rows with Hidden Rows

    Suggest you post your worksheet so we can see what the issues are.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    10-10-2012
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Sum Total for rows with Hidden Rows

    With the

    =SUBTOTAL(3,B58:B1225)
    &
    =COUNTA($B$58:$B$1223)
    Functions,

    I am getting what I want now.

    However, this Function
    =COUNTIF(B1183:B1223,"[email protected]")

    Did not return the accurate count, not too sure why.

    i have a filter for the column to filter out any other emails

  4. #4
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: Sum Total for rows with Hidden Rows

    Try
    =sumproduct(--(B1183:B1223="[email protected]"))
    Ron
    Knowledge is knowing that a tomato and pepper are fruits. Wisdom is knowing whether to put these in a fruit salad

    Kindly

    [1] Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
    [2] Mark your post [SOLVED] if it has been answered satisfactorily by editing your original post in advanced mode.
    [3] Thank (using the little scale) those that provided useful help; its nice and its very well appreciated

  5. #5
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: Sum Total for rows with Hidden Rows

    Sorry, I think I know what you're trying to say. Maybe this
    =SUMPRODUCT(SUBTOTAL(3,OFFSET(B1183:B1223,ROW(B1183:B1223)-ROW(B1183),0,1)))

  6. #6
    Registered User
    Join Date
    10-10-2012
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Sum Total for rows with Hidden Rows

    @ ron2k_1

    Still giving same wrong count.

    I think it is still counting other cells that even does not have the same value of [email protected]


    As I changed to
    =sumproduct(--(B1221:B1223="[email protected]")) the count now is 3 which is accurate

  7. #7
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: Sum Total for rows with Hidden Rows

    Quote Originally Posted by Oceans View Post
    @ ron2k_1

    Still giving same wrong count.

    I think it is still counting other cells that even does not have the same value of [email protected]


    As I changed to
    =sumproduct(--(B1221:B1223="[email protected]")) the count now is 3 which is accurate
    It's not the formula is inaccurate. What happens that is the formula is counting how many cells in range B1183:B1223 have the criteria you have stated, and it's returning an accurate number, however, you are not seeing them because you have hidden them by way filtering other columns. So maybe my second formula will work with hidden rows disregarded. Try it and let us know

  8. #8
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: Sum Total for rows with Hidden Rows

    Oops sorry, I forget to tell you that you need to specify the criteria, here is what I was trying to give you
    =SUMPRODUCT(--(B1183:B1223="[email protected]"),SUBTOTAL(3,OFFSET(B1183:B1223,ROW(B1183:B1223)-ROW(B1183),0,1)))

  9. #9
    Registered User
    Join Date
    10-10-2012
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Sum Total for rows with Hidden Rows

    =SUMPRODUCT(--(B1183:B1223="[email protected]"),SUBTOTAL(3,OFFSET(B1183:B1223,ROW(B1183:B1223)-ROW(B1183),0,1)))

    that worked well.

    But way too complicated for me

  10. #10
    Registered User
    Join Date
    10-10-2012
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Sum Total for rows with Hidden Rows

    This one works fine Too
    '=SUBTOTAL(3,B58:B1225)

  11. #11
    Registered User
    Join Date
    10-10-2012
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Sum Total for rows with Hidden Rows

    Still would love to resolve the Mystery

    Why would

    this Function
    =COUNTIF(B1183:B1223,"[email protected]")

    would not give the accurate count, as the hidden / filtered cells, do not have the same value !

  12. #12
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: Sum Total for rows with Hidden Rows

    Upload a sample of your file and explain to us what is the desired result.

  13. #13
    Registered User
    Join Date
    10-10-2012
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Sum Total for rows with Hidden Rows

    =COUNTIF(B1183:B1223,"[email protected]")

    Came back to work, test it before i upload it.


    Amazing !, it works !

+ 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