+ Reply to Thread
Results 1 to 7 of 7

Thread: Adding cells containing asterisks

  1. #1
    Registered User
    Join Date
    12-08-2011
    Location
    new york
    MS-Off Ver
    Excel 2007
    Posts
    4

    Exclamation Adding cells containing asterisks

    Hi,

    I know its probably an easy question but I am a beginner.
    I have a number of cells I want to add up but some of them contains asterisks so excel just ignore those.
    for ex. 2, 10*, 10**, and i want to say 22.

    How can I force excel to ignore those and just add the numeric values?

    thanks in advance!!
    Last edited by andy86; 12-08-2011 at 02:12 PM.

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,608

    Re: Adding cells containing asterisks

    Try:

    =SUMPRODUCT(--(SUBSTITUTE(A1:A3,"*","")))

    adjust range to suit.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    12-08-2011
    Location
    new york
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Adding cells containing asterisks

    i tried that but it still returns #value error

  4. #4
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,608

    Re: Adding cells containing asterisks

    Is there any other text in those cells?

    Are they in separate cells or are there multiple numbers in same cells?
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  5. #5
    Registered User
    Join Date
    12-08-2011
    Location
    new york
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Adding cells containing asterisks

    no there no other text except asterisks and all in separate cells.
    i tried the formula in different sheet with simple number same error (((

  6. #6
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,052

    Re: Adding cells containing asterisks

    You'd get an error if there are blanks in the range - to accommodate blanks try this version

    =SUMPRODUCT(--(0&SUBSTITUTE(A1:A10,"*","")))
    Audere est facere

  7. #7
    Registered User
    Join Date
    12-08-2011
    Location
    new york
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Adding cells containing asterisks

    yeah didint think about that!
    thanks it worked perfect!!!!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0