+ Reply to Thread
Results 1 to 10 of 10

Grouping cells changes value of formula in another cell

  1. #1
    Registered User
    Join Date
    10-15-2008
    Location
    UK
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2304 Build 16.0.16327.20200) 64-bit
    Posts
    24

    Grouping cells changes value of formula in another cell

    I have an excel table, I want to group one column and when the column is shown, the total value of the row should change and if I hide it, the total value of the row should change.
    Attached is an example table of what I am working. By 'hiding' column E column F should be dynamic. Is this possible and any pointers in the direction would be great. Thank you.


    grouping cells.xlsx

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

    Re: Grouping cells changes value of formula in another cell

    Administrative Note:

    Is your forum profile showing the version of Excel that you need this to work for?

    Members will tailor the solutions they offer to the version of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this.

    The three most recent versions of Excel are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the release number in your profile (e.g. MS365 Version 2211). This is in the About Excel section further down the Account page.

    Thanks.
    Last edited by AliGW; 06-20-2023 at 09:01 AM.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,917

    Re: Grouping cells changes value of formula in another cell

    Unfortunately, SUBTOTAL(109,array) only works on columns, not rows. Would it always be that one column that would be hidden? I think you might need VBA for this.

    Please update your forum profile as requested above.

  4. #4
    Registered User
    Join Date
    10-15-2008
    Location
    UK
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2304 Build 16.0.16327.20200) 64-bit
    Posts
    24

    Re: Grouping cells changes value of formula in another cell

    Update the excel information

  5. #5
    Registered User
    Join Date
    10-15-2008
    Location
    UK
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2304 Build 16.0.16327.20200) 64-bit
    Posts
    24

    Re: Grouping cells changes value of formula in another cell

    Yes it would always be that one column that would be hidden.
    Last edited by AliGW; 06-20-2023 at 09:26 AM. Reason: Please do NOT quote unnecessarily!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,917

    Re: Grouping cells changes value of formula in another cell

    I think it's VBA, then - shall I amove the thread for you?

    Administrative Note:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter and rarely necessary.

    If you are responding out of sequence, it is usually enough just to mention the helper's user name (e.g @AliGW).

    If you do need to quote, limit the quoted section just to the section to which you wish to draw your helper's attention or a direct question to which you wish to respond.

    For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.

  7. #7
    Registered User
    Join Date
    10-15-2008
    Location
    UK
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2304 Build 16.0.16327.20200) 64-bit
    Posts
    24

    Re: Grouping cells changes value of formula in another cell

    Sure you can move the thread

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,917

    Re: Grouping cells changes value of formula in another cell

    Thread has been moved.

  9. #9
    Registered User
    Join Date
    10-15-2008
    Location
    UK
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2304 Build 16.0.16327.20200) 64-bit
    Posts
    24

    Re: Grouping cells changes value of formula in another cell

    Solution in column H, without a VBA


    grouping cells.xlsx

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,917

    Re: Grouping cells changes value of formula in another cell

    Is this solved? Where did you get the solution?

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

+ 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: 1
    Last Post: 10-31-2019, 09:20 PM
  2. [SOLVED] Grouping cell with blank cells below and sort by date oldest to newest
    By Lucille Boshoff in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-14-2017, 10:28 AM
  3. Replies: 1
    Last Post: 07-29-2012, 12:49 PM
  4. Grouping multiple cells under one cell
    By xcelwork in forum Excel General
    Replies: 0
    Last Post: 08-26-2011, 04:51 AM
  5. Grouping cells, locking & moving cells
    By sabatobat in forum Excel General
    Replies: 0
    Last Post: 06-30-2009, 10:17 AM
  6. macro code for grouping adjacent cells into one multi-line cell
    By M John in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-30-2005, 12:15 PM
  7. Using a grouping of cells to check one cell against another...
    By deucer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-11-2005, 01: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