+ Reply to Thread
Results 1 to 10 of 10

Subtotal only Visible Column

  1. #1
    Registered User
    Join Date
    09-15-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    20

    Subtotal only Visible Column

    hi, i having problem in Subtotal that visible column only.

    need help

    Ex:

    COLUMN A - 10
    COLUMN B - 5
    COLUMN C - 3
    RESULT WILL BE AT COLUMN D D: 6

    but after i hide the COLUMN B. Result in COLUMN D does not change

    here's my simple formula.
    =subtotal(101,A1:C1)

    Thanks and regards to all.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Subtotal only Visible Column

    Hi

    Try =SUBTOTAL(9;A1:C1)

    Hope to helps you.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    09-15-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Subtotal only Visible Column

    @Fotis 1991 for the reply.

    i tried, but no avail. same result. here's also my problem.

    Range was fixed.

    Column B - 10
    Column D - 5
    Column E - 10

    Column G (Result): 8:33


    after i hide the column D, result in column G does not change

    i tried your suggestion and mine also, still no changes in result.


    here's my formula:
    =subtotal(101, B1,D1,E1) result is 8:33

    but after i hide any column specified above, result does not change.



    Thanks.
    Last edited by rjbautista20; 01-11-2012 at 03:27 AM.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Subtotal only Visible Column

    ...It look's strange for me....

    Take a look to the example and pls let me know....


    SUBTOTAL function, keeps the result. What you try to do??
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-15-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Subtotal only Visible Column

    What i want to do is, after i hide the column, Subtotal will average only the visible column.

    Thanks again.

  6. #6
    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
    44,466

    Re: Subtotal only Visible Column

    I think it only works with hidden rows, not hidden columns.


    Regards, TMS
    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


  7. #7
    Registered User
    Join Date
    09-15-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Subtotal only Visible Column

    @TMShucks,

    thanks for the reply.

    is there any other options or alternatives i can look into?

    Thanks.

  8. #8
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Subtotal only Visible Column

    MS help says,

    The SUBTOTAL function is designed for columns of data, or vertical ranges. It is not designed for rows of data, or horizontal ranges. For example, when you subtotal a horizontal range using a function_num of 101 or greater, such as SUBTOTAL(109,B2:G2), hiding a column does not affect the subtotal. But, hiding a row in a subtotal of a vertical range does affect the subtotal
    You will need VBA for this. Check this link

    http://support.microsoft.com/kb/213313
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Subtotal only Visible Column

    As i know(Maybe i am wrong), you can not do this with functions..

    You can use SUBTOTAL, for rows and Auto filter....
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    09-15-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Subtotal only Visible Column

    Hi again,

    here my example again.

    Thank again for your help
    Attached Files Attached Files

+ 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