+ Reply to Thread
Results 1 to 6 of 6

adding variable sums from different cells

  1. #1
    Registered User
    Join Date
    05-07-2010
    Location
    Narberth, Wales
    MS-Off Ver
    Excel 2003
    Posts
    9

    adding variable sums from different cells

    hi all
    looking to add the contents of cells as per the attachement ie cell A5 & A9 both have contents noted as "a1", I then need to add the contents of C5 & C9.
    so basically I need to add all "a1's", all "a2's", all "a3's" etc (note that these are not cell numbers - they are time codes - if that makes sense)
    I've added the excel sheet which clearly shows what i'm trying to do
    thanks
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: adding variable sums from different cells

    =sumif($a$5:$a$20,k6,$c$5:$c$20)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    05-07-2010
    Location
    Narberth, Wales
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: adding variable sums from different cells

    Hi thats great - but can we also have a blank cell if the result is 0

    thanks

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: adding variable sums from different cells

    =if(sumif($a$5:$a$20,k6,$c$5:$c$20)=0,"",sumif($a$5:$a$20,k6,$c$5:$c$20)) is one way there are others

  5. #5
    Registered User
    Join Date
    05-07-2010
    Location
    Narberth, Wales
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: adding empty or full text from different cells and tabs

    Hi

    I now need to enter an empty "total" cell (text) if the other cells are empty, otherwise enter a dash "==="
    I know this formula is incorrect but hopefully it gives you the gist of what I'm trying to do

    =IF((Monday!I30)and(Tuesday!I30)and(Wednesday!I30)and(Thursday!I30)and(Friday!I30)="","","=====")

    many thanks in anticipation

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: adding variable sums from different cells

    i dont get that! post an example

+ 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