+ Reply to Thread
Results 1 to 3 of 3

SUM rows with text and numerical values

  1. #1
    Forum Contributor
    Join Date
    05-23-2014
    Location
    Fredericia, Denmark
    MS-Off Ver
    Windows Office 2013, Excel 10
    Posts
    139

    SUM rows with text and numerical values

    I have cells in non-sequential columns that contain either "-" or a numerical value. I need help writing a formula that will consider all "-" values as zero and yield a sum that reads as "0" when the cells are all "-" entries. I've used:
    Please Login or Register  to view this content.
    to successfully add up columns that do have some cells with both "-" and numerical values, but my attempts at creating a sum of "0" for those rows that have entirely "-" entries have been futile. Any help is much appreciated.
    David

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: SUM rows with text and numerical values

    Hi,

    I don't see this behaviour and do get a sum of zero in these circumstances. Would you upload the workbook so that we can better understand?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    05-23-2014
    Location
    Fredericia, Denmark
    MS-Off Ver
    Windows Office 2013, Excel 10
    Posts
    139

    Re: SUM rows with text and numerical values

    Unfortunately I cannot share this file due to proprietary restrictions. One thing that may be hanging me up is that the cells with "-" values are the result of rather complex formulas such as "=IF(AQ15="","-",LEFT(AQ15,SEARCH("-",AQ15)-1)*HLOOKUP(UPPER(AR$5),range_units,MATCH(UPPER(RIGHT(AQ15,LEN(AQ15)-SEARCH("-",AQ15))),labels_units,0),FALSE))".

    Is this a relevant issue?

    Thanks for your effort. David

+ 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: 06-25-2012, 02:10 PM
  2. text has numerical values
    By TXEagle in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  3. text has numerical values
    By TXEagle in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. text has numerical values
    By TXEagle in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  5. text has numerical values
    By TXEagle in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 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