+ Reply to Thread
Results 1 to 4 of 4

SUM cells based on corresponding cells

  1. #1
    Registered User
    Join Date
    03-06-2006
    Location
    Clayton, NC
    MS-Off Ver
    MS Office 2010
    Posts
    61

    Question SUM cells based on corresponding cells

    Below is an example of what I am trying to do. The FY SUM adds up the entire year for both FY16 & FY17, but the Comparison SUM adds up only the FY17 months that have data and I want the FY16 to only SUM the comparison month where FY17 has data and to adjust as data is added to FY17 months. I just can't figure out how to compare the FY's months to look for data.

    Hopefully that makes sense.


    Yr FY16 FY17
    Jan 13 14
    Feb 45 39
    Mar 33 30
    Apr 17 18
    May 23 21
    Jun 12 14
    Jul 8 0
    Aug 7 0
    Sep 16 0
    Oct 19 0
    Nov 29 0
    Dec 44 0
    FY SUM 266 136
    Comparison Sum 143 136
    Last edited by RevJeff; 11-07-2016 at 05:51 PM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: SUM cells based on corresponding cells

    Hi Rev

    Try this...based on your Original Sample Data...
    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    1
    **Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec FY SUM Comparison Sum
    2
    **FY17
    14
    39
    30
    18
    21
    14
    =SUM(B2:M2)
    =SUM(B2:M2)
    3
    FY16
    13
    45
    33
    17
    23
    12
    8
    7
    16
    19
    29
    44
    =SUM(B3:M3)
    =SUMIFS(B3:M3,B2:M2,"<>")
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    03-06-2006
    Location
    Clayton, NC
    MS-Off Ver
    MS Office 2010
    Posts
    61

    Re: SUM cells based on corresponding cells

    That's perfect! Thank you!

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: SUM cells based on corresponding cells

    Hi Rev

    You're welcome...glad I could help.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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. Change order of static cells based on dynamic formula based cells
    By S_O_A_L in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-03-2016, 04:33 AM
  2. Replies: 0
    Last Post: 05-26-2016, 05:54 AM
  3. Move cells based on cell length *shift cells right) - code required
    By pauldaddyadams in forum Excel Programming / VBA / Macros
    Replies: 49
    Last Post: 11-21-2014, 08:56 AM
  4. Copying merged cells (3 cells) based on conentes of any of 3 cells to right
    By BobW1952 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 06-02-2014, 09:29 PM
  5. Copy range of cells to other cells based on first cells value
    By bluestarCVO in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-28-2013, 10:02 AM
  6. Replies: 2
    Last Post: 06-24-2010, 04:53 PM
  7. Replies: 2
    Last Post: 03-01-2007, 04:51 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