+ Reply to Thread
Results 1 to 4 of 4

summing - formula acting different than function

  1. #1
    Registered User
    Join Date
    05-18-2015
    Location
    Europe
    MS-Off Ver
    2010
    Posts
    9

    summing - formula acting different than function

    I'm adding values from three cells:

    Case 1:

    A1: 1 (number)
    A2: 2 (text)
    A3: 3 (number)

    Formula
    Please Login or Register  to view this content.
    gives result of 6.
    Function
    Please Login or Register  to view this content.
    gives result of 4.

    Case 2:

    A1: 1 (number)
    A2: 2 (text)
    A3: r (number)

    Formula
    Please Login or Register  to view this content.
    gives ERROR.
    Function
    Please Login or Register  to view this content.
    gives result of 1.


    Why do they act differently? What's the logic behind this behavior?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: summing - formula acting different than function

    If you carry out arithmetic on a text value, then Excel will try to evaluate it as a number, so =1+"1" will result in 2. But, if it doesn't make sense to do that, e.g. =1+"a" then Excel will return an error (#VALUE!), as the things you are trying to add do not have a numeric value.

    The SUM function ignores text values, which is why you get 4 in your first case and 1 in the second.

    Hope this helps.

    Pete

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: summing - formula acting different than function

    Refer below link i think this help you.
    https://excel.tips.net/T002582_Combi...in_a_Cell.html

    https://www.extendoffice.com/documen...d-numbers.html


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  4. #4
    Forum Contributor
    Join Date
    12-18-2016
    Location
    London
    MS-Off Ver
    Microsoft 2013
    Posts
    145

    Re: summing - formula acting different than function

    Let’s refer to article in the following thread which discusses about a similar and see if it helps:

    https://excel.tips.net/T002582_Combi...in_a_Cell.html

    https://www.youtube.com/watch?v=r0dIvaJRjxE

+ 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. Replies: 2
    Last Post: 03-28-2017, 10:12 AM
  2. Cubic function calculator acting inconsistant
    By wassili in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-21-2015, 12:59 PM
  3. [SOLVED] formula not acting as it should
    By johnandrews in forum Excel General
    Replies: 3
    Last Post: 12-20-2013, 04:14 AM
  4. [SOLVED] Formula's not working Properly, and acting completely bizarre!
    By Sky188 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-04-2012, 01:05 PM
  5. Month and Year Function not Acting as Expected
    By Kdoyle5 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-30-2011, 04:30 PM
  6. Formula Acting On Specific Workbooks
    By davehunter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-31-2007, 06:36 PM
  7. sum function not actually summing??????
    By RedHeadedMenace in forum Excel General
    Replies: 9
    Last Post: 10-20-2005, 09:05 AM

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