+ Reply to Thread
Results 1 to 11 of 11

Adding together any two given totals

  1. #1
    Forum Contributor
    Join Date
    08-21-2010
    Location
    Bournemouth, England
    MS-Off Ver
    Microsoft 365
    Posts
    215

    Adding together any two given totals

    Hello.

    If possible, I would like the totals added from Weeks 1 and 2 to appear in columns O and P.
    The names in columns M and N will change.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Adding together any two given totals

    Try this in O4:

    =IF(M4="","",SUMIF($A$4:$A$10,M4,$E$4:$E$10)+SUMIF($G$4:$G$10,M4,$K$4:$K$10))

  3. #3
    Forum Contributor
    Join Date
    09-18-2015
    Location
    Republic of Korea
    MS-Off Ver
    2010
    Posts
    314

    Re: Adding together any two given totals

    Try this in O4:

    =if(m4="","",sumif($a$4:$g$10,m4,$e$4:$k$10))

  4. #4
    Forum Contributor
    Join Date
    08-21-2010
    Location
    Bournemouth, England
    MS-Off Ver
    Microsoft 365
    Posts
    215

    Re: Adding together any two given totals

    Thank you for your help. I've copied down and across your formula and as you can see, Black, Purple, White and Green is correct but not Yellow or Black.

    Thank you.
    Attached Files Attached Files

  5. #5
    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,807

    Re: Adding together any two given totals

    Yellow is correct (6+6+8+6=26), but black isn't because it has a trailing space after it in the results table.
    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.

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Adding together any two given totals

    M6 has a space after Black. Delete that space.

    Why do you think that Yellow is incorrect?

    The values for Yellow are: 6,6,8,6
    6+6+8+6=26

  7. #7
    Forum Contributor
    Join Date
    09-18-2015
    Location
    Republic of Korea
    MS-Off Ver
    2010
    Posts
    314

    Re: Adding together any two given totals

    Why is yellow 14?

    Please tell us why you are not satisfied.

  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,807

    Re: Adding together any two given totals

    Tom is only accounting for one of the yellow rows, where there are in fact two.

  9. #9
    Forum Contributor
    Join Date
    08-21-2010
    Location
    Bournemouth, England
    MS-Off Ver
    Microsoft 365
    Posts
    215

    Re: Adding together any two given totals

    I hadn't realised that I had included Yellow more than twice. Sorry, my mistake. Thank you also for pointing out the trailing space after the Black.
    All good now, thank you very much.

  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,807

    Re: Adding together any two given totals

    You're welcome!

  11. #11
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Adding together any two given totals

    You're welcome. Glad we could help.

    Thanks for the rep!

+ 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] Adding Totals To Worksheet
    By jo15765 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2017, 11:54 AM
  2. adding monthly totals
    By allan473 in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 03-24-2017, 12:33 AM
  3. Adding a new Totals Column
    By jstadtler in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-04-2014, 03:29 PM
  4. Currency totals not adding up exactly
    By sarahmascara2014 in forum Excel General
    Replies: 6
    Last Post: 01-24-2014, 03:53 PM
  5. adding totals up
    By penguinJen in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 05-30-2013, 07:00 PM
  6. Adding Totals in a worksheet
    By josterfeld in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-17-2008, 08:43 AM
  7. [SOLVED] Adding category totals
    By [email protected] in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-15-2006, 06:50 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