+ Reply to Thread
Results 1 to 5 of 5

Formula Simplification Help (Sum Specific Rows Based on Cell)

  1. #1
    Registered User
    Join Date
    10-19-2021
    Location
    Colorado
    MS-Off Ver
    2016
    Posts
    6

    Formula Simplification Help (Sum Specific Rows Based on Cell)

    I'm very new to Excel as I do most in Google Sheets, and I'm not sure the best way to simplify my formula. It 'worked' in Google Sheets, but Excel has a very understandable character limit in formulas. Below is an example, as it continues on for another 18 different sheets. I am adding rows if a specific cell equals another cell. I've also attached an example file, with this formula in Main!B6. Any suggestions to simplify this formula?

    =IF(A6="","",SUM(IF('x01'!A1=A6,SUM('x01'!C1:AD1),),IF('x01'!A2=A6,SUM('x01'!C2:AD2),),IF('x01'!A3=A6,SUM('x01'!C3:AD3),),IF('x01'!A4=A6,SUM('x01'!C4:AD4),),IF('x01'!A5=A6,SUM('x01'!C5:AD5),),IF('x01'!A6=A6,SUM('x01'!C6:AD6),),IF('x01'!A7=A6,SUM('x01'!C7:AD7),),IF('x01'!A8=A6,SUM('x01'!C8:AD8),),IF('x01'!A9=A6,SUM('x01'!C9:AD9),),IF('x01'!A10=A6,SUM('x01'!C10:AD10),),IF('x01'!A11=A6,SUM('x01'!C11:AD11),),IF('x01'!A12=A6,SUM('x01'!C12:AD12),),IF('x01'!A13=A6,SUM('x01'!C13:AD13),),IF('x01'!A14=A6,SUM('x01'!C14:AD14),),IF('x01'!A15=A6,SUM('x01'!C15:AD15),),IF('x01'!A16=A6,SUM('x01'!C16:AD16),),IF('x01'!A17=A6,SUM('x01'!C17:AD17),),IF('x01'!A18=A6,SUM('x01'!C18:AD18),),IF('x01'!A19=A6,SUM('x01'!C19:AD19),),IF('x01'!A20=A6,SUM('x01'!C20:AD20),),IF('x01'!A21=A6,SUM('x01'!C21:AD21),),IF('x02'!A1=A6,SUM('x02'!C1:AD1),),IF('x02'!A2=A6,SUM('x02'!C2:AD2),),IF('x02'!A3=A6,SUM('x02'!C3:AD3),),IF('x02'!A4=A6,SUM('x02'!C4:AD4),),IF('x02'!A5=A6,SUM('x02'!C5:AD5),),IF('x02'!A6=A6,SUM('x02'!C6:AD6),),IF('x02'!A7=A6,SUM('x02'!C7:AD7),),IF('x02'!A8=A6,SUM('x02'!C8:AD8),),IF('x02'!A9=A6,SUM('x02'!C9:AD9),),IF('x02'!A10=A6,SUM('x02'!C10:AD10),),IF('x02'!A11=A6,SUM('x02'!C11:AD11),),IF('x02'!A12=A6,SUM('x02'!C12:AD12),),IF('x02'!A13=A6,SUM('x02'!C13:AD13),),IF('x02'!A14=A6,SUM('x02'!C14:AD14),),IF('x02'!A15=A6,SUM('x02'!C15:AD15),),IF('x02'!A16=A6,SUM('x02'!C16:AD16),),IF('x02'!A17=A6,SUM('x02'!C17:AD17),),IF('x02'!A18=A6,SUM('x02'!C18:AD18),),IF('x02'!A19=A6,SUM('x02'!C19:AD19),),IF('x02'!A20=A6,SUM('x02'!C20:AD20),),IF('x02'!A21=A6,SUM('x02'!C21:AD21),),))

    SOLUTION
    Quote Originally Posted by Fluff13 View Post
    Hi & welcome to the board.
    One way
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by AliGW; 10-19-2021 at 05:14 PM. Reason: Thread tagged as solved - no need to edit the thread title!

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: Formula Simplification Help (Sum Specific Rows Based on Cell, Across Multiple Sheets)

    Hi & welcome to the board.
    One way
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-19-2021
    Location
    Colorado
    MS-Off Ver
    2016
    Posts
    6

    Re: Formula Simplification Help (Sum Specific Rows Based on Cell, Across Multiple Sheets)

    That seems to work. I'll build it into my full file with 20 sheets.
    Last edited by MrDevanWright; 10-19-2021 at 12:41 PM. Reason: I suck at forums.

  4. #4
    Registered User
    Join Date
    10-19-2021
    Location
    Colorado
    MS-Off Ver
    2016
    Posts
    6

    Re: Formula Simplification Help (Sum Specific Rows Based on Cell, Across Multiple Sheets)

    Quote Originally Posted by Fluff13 View Post
    Hi & welcome to the board.
    One way
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This is perfect. Immensely simplified and works perfectly. Thank you so much Fluff13.

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: [SOLVED] Formula Simplification Help (Sum Specific Rows Based on Cell)

    Glad to help & thanks for the feedback.

+ 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] Move Rows to different Sheets based on Cell value(s) with Multiple Buttons
    By SeventySix in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-31-2019, 04:25 PM
  2. HIDE/UNHIDE Rows based on cell value in multiple sheets.
    By yatin1964 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2015, 12:29 AM
  3. [SOLVED] Delete rows on multiple sheets if cell contains specific criteria.
    By MarioLamaa in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-14-2015, 11:53 AM
  4. delete entire rows based on cell value in multiple sheets
    By forquaidian in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-22-2014, 05:31 AM
  5. Replies: 0
    Last Post: 03-13-2013, 12:25 PM
  6. Replies: 0
    Last Post: 03-27-2012, 04:54 PM
  7. Identify specific rows based on a value across multiple sheets, and paste into new
    By optimisticsam in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-07-2011, 10:02 AM

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