+ Reply to Thread
Results 1 to 12 of 12

SUM of a row.

  1. #1
    Registered User
    Join Date
    02-27-2013
    Location
    Koege, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    39

    SUM of a row.

    Hey.

    How can u make a SUM function, that will only sum the cells, if the cells have any numbers in them?

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: SUM of a row.

    Take a look to SUMIF function.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: SUM of a row.

    Are you talking about how to extend the range reference in Sum Function. If so, try looking at Defined names.

    If stuck, upload a sample workbook.. thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Registered User
    Join Date
    02-27-2013
    Location
    Koege, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: SUM of a row.

    I thought of that, but what should I put as criteria?

    And sry for duplicate post before, just thought that the old one would disapear.

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: SUM of a row.

    Quote Originally Posted by dilipandey View Post
    If stuck, upload a sample workbook.. thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>
    .............................

  6. #6
    Registered User
    Join Date
    02-27-2013
    Location
    Koege, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: SUM of a row.

    Here is a sample:

    Sample of SUM.IF.xlsx

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: SUM of a row.

    In D6 and copy down. ??????

    =IF(C6<>"",SUM($C$5:C6),"")

  8. #8
    Registered User
    Join Date
    02-27-2013
    Location
    Koege, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: SUM of a row.

    Weird, it works on the sample, but not at my spreadsheet. :s

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: SUM of a row.

    Your real workbook is different from your sample...

  10. #10
    Registered User
    Join Date
    02-27-2013
    Location
    Koege, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: SUM of a row.

    Yes. It has a formular in the "C" colum.

  11. #11
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: SUM of a row.

    I'm pretty sure SUM(something:something) will ignore blank / cell with text, so it will return the sum of all numbers can be found in a range? (Unless in that range there are errors)
    (copy pasta from Ford)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools

    Regards,
    Lem

  12. #12
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: SUM of a row.

    Makes no sense for me to attach a different example of your real data.

    If you like upload a sample exactly as your real data, or else we'll do 30 posts without result..

+ 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