+ Reply to Thread
Results 1 to 5 of 5

Having Excel add numerical data within same cell AND where there is text also

  1. #1
    Registered User
    Join Date
    10-14-2014
    Location
    Texas
    MS-Off Ver
    Mac 2011
    Posts
    2

    Having Excel add numerical data within same cell AND where there is text also

    So, in my invoices, the "Description of Tasks" columns each look similar to the following entry for a single day:

    Call to client (.25); Call to adjuster (.15); Draft offer (1.67)

    I have been adding each of these decimal numbers by hand and placing the total in a cell to the right of the Description cells (which is labeled as the "Total Time For the Day" cell). Here that total would be 2.07.

    Is there a way that I can have Excel add all of the decimal numbers in my Description of Task and place the total in the next cell in the row?

    Thanks smart peoples,
    Cottages

  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,630

    Re: Having Excel add numerical data within same cell AND where there is text also

    You could use a User Defined Function. There's not much error checking in this so it might be unhappy with data that looks less like the example.

    Please Login or Register  to view this content.

    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
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Having Excel add numerical data within same cell AND where there is text also

    --------------
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  4. #4
    Registered User
    Join Date
    10-14-2014
    Location
    Texas
    MS-Off Ver
    Mac 2011
    Posts
    2

    Re: Having Excel add numerical data within same cell AND where there is text also

    TMS,

    Thank you very much. Unbelievably, I got it to work. I was so hoping the response would not be a User Defined Function because a net search prior to posting here hinted at having to do something other than click a box, and I am so Excel and Function illiterate. I am a spoiled, drag & drop Mac user who has never done "root" stuff, UDFs, or other things that are Greek to me, so I had no clue where/how to implement your pretty code, blah, blah.

    YouTube to the rescue...I watched a gal, probably in her late 60's or early 70's (who made me feel really inadequate as her junior) create a UDF and copied her every move but pasting in your code.

    It worked like a charm!!! One cell would not add up, and after taking out various text, punctuation marks, etc, I learned that I cannot use semi-colons in the text unless a number is in front of it (can't have: "Draft offer; Review offer; Print offer (.75);" but I can have "Draft offer, Review offer, Print offer (.75);") and I certainly can live with that uber tiny limitation for the hours it will save me.

    Thank you again, and please thank your mom for making you smart (as I recall, most of the "smart genes" come from the mother)

    Kind regards,
    Cottages
    Last edited by Cottages; 10-15-2014 at 01:32 AM.

  5. #5
    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,630

    Re: Having Excel add numerical data within same cell AND where there is text also

    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. Replies: 4
    Last Post: 05-23-2014, 07:15 PM
  2. Find and extract specific text data & accompanying numerical data
    By gabrielemucho in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 06-18-2013, 05:58 PM
  3. Text in cell before numerical data entered and applied to formula
    By blowfli in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-31-2013, 04:11 AM
  4. Help! - Plotting numerical and non-numerical data on excel
    By yemmyugha in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-23-2012, 01:31 PM
  5. text in a cell to a numerical value.
    By jasonviper in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-21-2009, 06:45 AM

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