+ Reply to Thread
Results 1 to 4 of 4

Using sum function where cell contains a formula

Hybrid View

  1. #1
    Registered User
    Join Date
    12-28-2014
    Location
    USA
    MS-Off Ver
    8
    Posts
    2

    Using sum function where cell contains a formula

    Hi

    Is it possible to use SUM function if the cells in the range contain a formula?

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702

    Re: Using sum function where cell contains a formula

    SUM doesn't care if values are the results of formulas or not, it sums all numbers regardless

    If you are having problems summing "numbers" returned by formulas it may be that they are text formatted.

    If the formula is returning a number in quotes like "23" or "158" then those are text values and SUM function will ignore them - if you want them to be treated as numbers then remove the quotes

    Values returned by LEFT, RIGHT, MID and other functions are, by defualt, text values, e.g. if A1 = xyz123 and you use this formula in B1

    =RIGHT(A1,3)

    The value returned is a text value - you can do something like this to make it in to a number

    =RIGHT(A1,3)+0

    If those suggestions don't help then please give some examples of the formulas used, where the results are not summed
    Audere est facere

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

    Re: Using sum function where cell contains a formula

    yes it is! but what do you actually have in those cells that stops you doing it ?
    "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

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using sum function where cell contains a formula

    Let me guess...

    You're trying to use a SUM function on a range of cells that contain formulas and it's returning 0?

    In your formulas remove any quotes from around numbers: "10". Quoting numbers turns them into TEXT strings and the SUM function ignores TEXT values.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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: 15
    Last Post: 08-24-2013, 10:05 AM
  2. [SOLVED] function CELL() to return the formula in the referenced cell
    By RagDyer in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 07:05 PM
  3. [SOLVED] function CELL() to return the formula in the referenced cell
    By Streep in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  4. function CELL() to return the formula in the referenced cell
    By Streep in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 PM
  5. function CELL() to return the formula in the referenced cell
    By Streep in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07: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