+ Reply to Thread
Results 1 to 4 of 4

Adding numbers in multiple cells where individual cells contain both numbers and text

  1. #1
    Registered User
    Join Date
    01-08-2014
    Location
    LA
    MS-Off Ver
    2010
    Posts
    2

    Adding numbers in multiple cells where individual cells contain both numbers and text

    I have a column that looks like the following and I need to add the numbers:

    27 skids
    31 skids
    56 skids
    13 skids

    The unit "skids" is constant. The answer I am looking for is "127" or "127 skids"

    Thank you.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,440

    Re: Adding numbers in multiple cells where individual cells contain both numbers and text

    Assuming that data is in cells A2:A5, then use:

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    HTML Code: 
    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    01-08-2014
    Location
    LA
    MS-Off Ver
    2010
    Posts
    2

    Re: Adding numbers in multiple cells where individual cells contain both numbers and text

    Thanks TM. I pasted that into my spreadsheet and it works. One other question: every now and then that same column will contain cells with text but no numbers. Is there a way to ignore those cells so I don't get an error #value! ?

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Adding numbers in multiple cells where individual cells contain both numbers and text

    Try this...

    Data Range
    A
    B
    C
    2
    27 skids
    -----
    127
    3
    31 skids
    4
    text
    5
    56 skids
    6
    13 skids
    7
    8
    9
    10


    This array formula** entered in C2:

    =SUM(IF(ISNUMBER(-LEFT(A2:A10)),--LEFT(A2:A10,FIND(" ",A2:A10))))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. [SOLVED] adding two or more cells with text and numbers
    By hcastro in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-08-2013, 05:00 PM
  2. Adding cells that contain numbers and text
    By Pippy34 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-12-2012, 12:04 PM
  3. adding cells which include numbers and text
    By Shelley in forum Excel General
    Replies: 6
    Last Post: 10-25-2005, 11:05 PM
  4. [SOLVED] adding cells after stripping numbers out of text fields
    By Alan in forum Excel General
    Replies: 1
    Last Post: 08-24-2005, 04:05 PM
  5. adding cells with text and numbers
    By Tat in forum Excel General
    Replies: 1
    Last Post: 06-21-2005, 11: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