+ Reply to Thread
Results 1 to 4 of 4

How to sum up cells with occasional non-numeric values

  1. #1
    Registered User
    Join Date
    06-30-2020
    Location
    Finland
    MS-Off Ver
    Professional plus 2013
    Posts
    2

    How to sum up cells with occasional non-numeric values

    I have fairly large amount of data, mostly in numerical form in Excel. There are occasional cells that contain non-numerical values: If certain result is below its detection limit, that cell contains a symbol "<" followed by the detection limit. For example a cell might have a non-numerical value of <0.03.

    I would like to find out how to write a function that sums up a range of cells, some of which contains the symbol "<" in front of them.
    I know how to write an function [ IF(LEFT(A1;1)="<";RIGHT(A1;LEN(A1)-1);A1) ] that would filter out the potential "<" sign from cell A1. But using this approach would require a new column for the calculation, and I would like to make this function work in a single cell. All the SUMIF/SUMIFS examples I have seen require that the values to be added up are in numerical form.
    And I don't want to use anything like Find and Replace, because I would like to leave the original data intact.
    Any ideas how to approach this problem are highly appreciated

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: How to sum up cells with occasional non-numeric values

    Try this:

    =SUMPRODUCT(--(0&SUBSTITUTE(A1:A10,"<","")))

  3. #3
    Registered User
    Join Date
    06-30-2020
    Location
    Finland
    MS-Off Ver
    Professional plus 2013
    Posts
    2

    Re: How to sum up cells with occasional non-numeric values

    It works!
    And the solution is relatively elegant.
    Thank you!

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: How to sum up cells with occasional non-numeric values

    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. Sorting cells with strings and numeric values
    By alphajoe in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2016, 06:38 PM
  2. [SOLVED] vba macros to force user to input numeric values for numeric values with hyphen
    By Abdur_rahman in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-28-2013, 01:05 PM
  3. [SOLVED] UDF to Vlookup multiple delimited values (numeric/non-numeric) and sum found values
    By Geert Rottiers in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2013, 09:30 AM
  4. [SOLVED] Sum of numeric values within cells also containing non-numeric characters
    By Mike Brewer in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 04-24-2013, 09:16 AM
  5. Dynamic Sorting on Columns containing Occasional Values
    By ChrisArthur in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-31-2012, 10:57 AM
  6. Numeric Values from one sheet to Highlight cells on another
    By max57 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-10-2010, 05:31 PM
  7. [SOLVED] Why does SUM not compute, even if the cells display numeric values
    By George Furnell in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-15-2006, 07:40 PM

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