+ Reply to Thread
Results 1 to 14 of 14

sum total with cell containing "TBD"

  1. #1
    Registered User
    Join Date
    01-06-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    sum total with cell containing "TBD"

    Hello,

    I have monthly schedule with amount to be totaled by year, however some of the cells have a TBD instead of an amount. This give me an error message when trying to add all the cells.
    How can I do it?
    Thank you for your help!

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

    Re: sum total with cell containing "TBD"

    Use the SUM(...) function.

    It will ignore text entries in cells.
    Last edited by Tony Valko; 05-11-2016 at 12:37 PM.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,676

    Re: sum total with cell containing "TBD"

    What formula are you using to SUM? SUM function ignores text.

    Post a small sample file (not image): to upload, click "Go Advanced" then "Manage Attachments"

  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: sum total with cell containing "TBD"

    Quote Originally Posted by JohnTopley View Post
    SUM function ignores text.
    =SUM({"X",1,1})

    =SUM("X",1,1)


  5. #5
    Registered User
    Join Date
    01-06-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: sum total with cell containing "TBD"

    I'm a beginner, sorry. Only using the basic
    =SUM(B49:S49)

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

    Re: sum total with cell containing "TBD"

    Using that syntax, it will ignore text entries:

    Data Range
    A
    B
    C
    D
    E
    48
    49
    30
    10
    10
    text
    10
    50
    ------
    ------
    ------
    ------
    ------


    This formula entered in A49:

    =SUM(B49:S49)

    What error are you getting? Are there any error values in the cells?

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,676

    Re: sum total with cell containing "TBD"

    @Tony, OK .... but (I suspect) 99.9% of SUM usage is SUM(range) ......

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

    Re: sum total with cell containing "TBD"

    Quote Originally Posted by JohnTopley View Post
    @Tony, OK .... but (I suspect) 99.9% of SUM usage is SUM(range) ......
    Yeah, it's probably even higher!

    To be technically correct I guess we should say the SUM function ignores text in arrays or ranges.
    Last edited by Tony Valko; 05-11-2016 at 12:49 PM.

  9. #9
    Registered User
    Join Date
    01-06-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: sum total with cell containing "TBD"

    Sorry, that went to fast above. i Have attached a sample.

    Thank you for your help!
    Attached Files Attached Files

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

    Re: sum total with cell containing "TBD"

    Errors start in column P.

    Try these...

    P3: =N(P2)*-0.05

    P4: =SUM(P2:P3)

  11. #11
    Registered User
    Join Date
    01-06-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: sum total with cell containing "TBD"

    Thank you! This works great adding the column!
    I added the rows with =SUM(a,b,c,d) and it calculates now!

    Greatly appreciate the quick responses!
    Last edited by nf17; 05-11-2016 at 01:16 PM. Reason: resolved

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

    Re: sum total with cell containing "TBD"

    =SUM(B2+D2+F2+H2+J2+L2+N2+P2+R2+T2+V2+X2)
    Remove the plus signs and replace with commas:

    =SUM(B2,D2,F2,H2,J2,L2,N2,P2,R2,T2,V2,X2)

    Assuming you've corrected all the formulas that were returning the errors.

  13. #13
    Registered User
    Join Date
    01-06-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: sum total with cell containing "TBD"

    Thank you Tony!!!

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

    Re: sum total with cell containing "TBD"

    You're welcome!

+ 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] VBA help needed to remove all "/" then replace with "-" from cell "B3"and "B5"
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2014, 02:11 PM
  2. Replies: 8
    Last Post: 01-31-2014, 03:20 PM
  3. [SOLVED] Macro to delete entire row if cell contains the word "total" or "Total"
    By theatricalveggie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-10-2011, 12:38 PM
  4. Replies: 1
    Last Post: 02-07-2010, 12:44 AM
  5. Find "Total" and move one cell to left and copy down information
    By adgjqetuo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-29-2009, 02:03 PM
  6. Find all cells with "A" and add the values of the adjacent cell to give a total.
    By leefarrell in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-09-2006, 11:09 AM
  7. [SOLVED] Linking two "total" pages to create a "Complete Total" page
    By Jordon in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-10-2006, 07:20 PM

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