+ Reply to Thread
Results 1 to 5 of 5

why SUM not work according to logic, LOL?

  1. #1
    Registered User
    Join Date
    01-09-2016
    Location
    GA
    MS-Off Ver
    2007
    Posts
    7

    Question why SUM not work according to logic, LOL?

    I've always used subtractions in SUM like =sum(c1-c2). It always works, but I tried =sum(c1-c2-c3) results in an error.

    Also, i am not very sophisticated in learning Excell but always use just simple formulae. However, I tried also use my logic to create a formula, but it's not working? The formula I tried is:

    =sum((c1-c2)-(e1:e10)) e1 to e10 consists of itemized numbers that are added up for the cell c3.

    Please help. Thanks

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: why SUM not work according to logic, LOL?

    Just use SUM when you have a range or array to SUM.

    Do not use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    It will work but it is not necessary to use SUM. Use
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula: copy to clipboard
    Please Login or Register  to view this content.

    will not result in an error if the three cells all contain numbers. But instead use
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    For your last formula you cannot use ranges in arithmetic expressions. Use this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    01-09-2016
    Location
    GA
    MS-Off Ver
    2007
    Posts
    7

    Re: why SUM not work according to logic, LOL?

    6StringJazzer, thank you so much. Why every time after someone like you posted a solution, I was telling myself "why can i not think of that myself?"

    Thank you for your clever and simple solution.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: why SUM not work according to logic, LOL?

    I have been doing this for a l-o-o-o-o-ng time.

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

    If a member helped you solve your problem, consider adding to their reputation by clicking addreputationiconsmall.jpg below their name.

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: why SUM not work according to logic, LOL?

    for c1 c2 and c3
    can be used :
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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] If Formula with 3 Logic didn't Work
    By poncosh98 in forum Excel Formulas & Functions
    Replies: 33
    Last Post: 02-09-2022, 03:27 AM
  2. [SOLVED] Many to many logic
    By ljerromes in forum Excel General
    Replies: 8
    Last Post: 10-12-2021, 06:08 AM
  3. [SOLVED] Simple Formula, cant get logic to work
    By cdotyii in forum Excel General
    Replies: 3
    Last Post: 07-31-2015, 09:32 AM
  4. Need help on Logic to make formula work correctly
    By cdotyii in forum Excel General
    Replies: 1
    Last Post: 06-06-2012, 08:23 AM
  5. [SOLVED] Exceed 7 Max Logic statements, cant work out fix!
    By Will B in forum Excel General
    Replies: 4
    Last Post: 04-13-2012, 10:31 AM
  6. Replies: 4
    Last Post: 11-04-2011, 12:37 PM
  7. [SOLVED] IF THEN logic
    By frogman in forum Excel General
    Replies: 3
    Last Post: 04-28-2006, 11:25 AM

Tags for this Thread

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