+ Reply to Thread
Results 1 to 10 of 10

Summation of Number, Empty Cells and Cells with characters

  1. #1
    Registered User
    Join Date
    08-02-2013
    Location
    Jordan
    MS-Off Ver
    Excel 2013
    Posts
    8

    Summation of Number, Empty Cells and Cells with characters

    Hi,

    i have an issue and hope to find a solution with your support, I will try to be clear as much as possible,

    A1=30
    B1=empty cell
    C1=15
    D1=35 ?
    E1=empty cell
    F1=20
    G1=50 ?

    The above numbers are example so the pattern is different and may change, but the cells that contains the character “?” has the same format and text sequence, for example I will always have numbers then space then the character “?” such as “XX ?” or “x ?“ or “xxx ?” or “xxxx ?” etc…

    I tried many formulas, either they sum the numbers only, either they sum the numbers and numbers with special character but return errors when including empty space, etc… I your help and support to create a formula to return the value 150.

    I am using excel 2013.

    Appreciate your prompt feedback.

    Thank you for your kind support and nice cooperation.

    Best regards

  2. #2
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Summation of Number, Empty Cells and Cells with characters

    in A2 type =VALUE(IF(ISNUMBER(A1)=TRUE;A1;LEFT(A1;LEN(A1)-2)))
    and click-drag it along the row
    I think that should get rid of the " ?" 's, now you can use the =SUM without problems
    Last edited by L-Drr; 08-02-2013 at 07:51 PM.
    When I say semicolon, u say comma!

  3. #3
    Registered User
    Join Date
    08-02-2013
    Location
    Jordan
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Summation of Number, Empty Cells and Cells with characters

    Thank you for your prompt reply, but unfortunately the proposed formula does not work beside I need a formula that work directly without the need of transforming the data into another temp cell.

  4. #4
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Summation of Number, Empty Cells and Cells with characters

    Oh sorry that doesn't take care of the blanks; use this:
    =IF(A1="";0;VALUE(IF(ISNUMBER(A1)=TRUE;A1;LEFT(A1;LEN(A1)-2))))

  5. #5
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Summation of Number, Empty Cells and Cells with characters

    Quote Originally Posted by iyounis View Post
    Thank you for your prompt reply, but unfortunately the proposed formula does not work beside I need a formula that work directly without the need of transforming the data into another temp cell.
    I don't think that's possible...

  6. #6
    Registered User
    Join Date
    08-02-2013
    Location
    Jordan
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Summation of Number, Empty Cells and Cells with characters

    This work when using B column then use the regular sum, but I can’t use a temp cell to clean up the original cell content, I need a direct formula to clean the content of the original cell and apply the sum on the fly without using temp cells.

    Please advise

  7. #7
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Summation of Number, Empty Cells and Cells with characters

    try this ARRAY formula (see signature):

    Please Login or Register  to view this content.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  8. #8
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Summation of Number, Empty Cells and Cells with characters

    Try;

    =SUMPRODUCT(0+(0&SUBSTITUTE(A1:G1,"?","")))
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  9. #9
    Registered User
    Join Date
    08-02-2013
    Location
    Jordan
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Summation of Number, Empty Cells and Cells with characters

    Both suggestions (icestationzbra and Haseeb A) worked perfectly, thank you so much.

    Really appreciated.

  10. #10
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Summation of Number, Empty Cells and Cells with characters

    Quote Originally Posted by L-Drr View Post
    I don't think that's possible...
    OK I stand corrected

+ 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. Excel 2007 : Summation on alternating cells when number is present
    By Martinwuff in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-04-2014, 02:17 AM
  2. Replies: 2
    Last Post: 07-25-2013, 01:01 PM
  3. Continuing the SUMMATION for a x- number of cells
    By Apple1 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-10-2013, 10:07 AM
  4. How to count characters in a number of cells?
    By Staalander in forum Excel General
    Replies: 8
    Last Post: 01-11-2007, 11:36 AM
  5. Find cells containing a specified number of characters
    By jdanker in forum Excel General
    Replies: 3
    Last Post: 08-23-2005, 04:05 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