Results 1 to 7 of 7

Summing numbers in a column range (X1...Xn) that may contain a non number character

Threaded View

  1. #1
    Registered User
    Join Date
    02-13-2021
    Location
    ottawa
    MS-Off Ver
    2017
    Posts
    10

    Summing numbers in a column range (X1...Xn) that may contain a non number character

    I've got an interesting problem:

    Given a column containing one of two possibilities:
    1. A Number
    2. Text that contains numbers with a single common character

    Get the sum of the column such that:
    1. The excel document can not use Scrips or Macros, since the document must be opened on an apple handheld device (example: IPAD, IPHONE) and due to apples "safety" policies, macros are disabled on such devices.
    2. The column containing said data is not modified in any way and
    3. cells that contain numbers with X single common character, where X is a character, include the numerical part of that text in the sum calculation

    I've attached a picture of an example:

    A.png

    But for example:

    if a column contains the following set of numbers [1,3,5,7,9,11#,13]:

    In column form:
    1
    3
    5
    7
    9
    11#
    13

    The sum of this set of numbers must return 49.

    A simple formula =SUM(x1:x:n), where n is a number, would not work since excel disregards cells that contain a mix of numbers + the "#" character.

    Thus the solution I need is to get a formula that would correctly get 49 and not 38.

    A formula I'm trying to use is incorrect since I'm using SUBSTITUTE which would modify the contents of the data which I'm not allowed to so.

    I may be approaching the problem incorrectly too, but it is:

    =IF(SUM(O5:O12)<>0,SUM(O5:O12),"")+IF(NOT(ISNUMBER(O5:O12)),SUM(SUBSTITUTE(O5:O12,"$","")<>0,,""))
    The logic I have in mind is:
    1. If the sum of the column is <> 0, get the sum of the column THIS will return 38
    2. plus, If the cell contains "#", ignore "#" when summing for the total
    Last edited by skite0; 02-23-2021 at 01:39 PM. Reason: solution found

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Issue in summing up column numbers
    By ayenala01 in forum Excel General
    Replies: 6
    Last Post: 11-04-2020, 05:22 AM
  2. Check for Number in one column - then count specific numbers in a range.
    By CarlosM1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-29-2014, 05:10 AM
  3. Help with formula summing numbers over date range
    By gabeha in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-13-2014, 02:16 AM
  4. Summing range of numbers according to variable dates
    By budapesh in forum Excel General
    Replies: 1
    Last Post: 05-26-2011, 05:46 PM
  5. Summing non zero numbers in a column.
    By kohaku in forum Excel General
    Replies: 4
    Last Post: 06-04-2009, 02:38 PM
  6. Summing a range of numbers in a list of numbers
    By gemnnsw in forum Excel General
    Replies: 3
    Last Post: 02-03-2008, 12:58 PM
  7. Summing a column of Numbers
    By FLKULCHAR in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-07-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