+ Reply to Thread
Results 1 to 7 of 7

wanting to truncate a cell with numbers and text into workable numbers

  1. #1
    Registered User
    Join Date
    04-11-2023
    Location
    New York, USA
    MS-Off Ver
    2007
    Posts
    3

    wanting to truncate a cell with numbers and text into workable numbers

    I hope that my sample Excel file was attached. If the Excel did not upload I would need help doing it.

    I want to change a column of cells such as:

    I want the "C" column to look like this that I am putting in "D"

    A B C D

    3/15/22 .085 Dividend 0.085
    4/15/22 .0224 Dividend 0.0224
    5/15/22 .085 Dividend 0.085
    6/15/22 .0228 Dividend 0.0228
    7/15/22 .085 Dividend 0.085
    8/15/22 .02216 Dividend 0.02216
    9/15/22 .085 Dividend 0.085
    10/15/22 .0228 Dividend 0.0228
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: wanting to truncate a cell with numbers and text into workable numbers

    One way:

    =LEFT(B2,SEARCH(" ",B2)-1)+0
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: wanting to truncate a cell with numbers and text into workable numbers

    Or....

    =SUBSTITUTE(B2,"Dividend","")+0

  4. #4
    Registered User
    Join Date
    04-11-2023
    Location
    New York, USA
    MS-Off Ver
    2007
    Posts
    3

    Re: wanting to truncate a cell with numbers and text into workable numbers

    Thank you.

    I tried putting in both of Glenn's suggestions and got this.

    I enclosed the actual Excel spreadsheet that I am working on. What am I doing wrong?

    Thanks Glenn.

    K2N*
    Attached Files Attached Files

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: wanting to truncate a cell with numbers and text into workable numbers

    Might this work?

    =SUBSTITUTE(TRIM(MID(A87,15,LEN(A87))),"Dividend","")+0

    I started the mid at 15 just to clear the date and then trimmed all of the spaces away.
    HTH
    Regards, Jeff

  6. #6
    Registered User
    Join Date
    04-11-2023
    Location
    New York, USA
    MS-Off Ver
    2007
    Posts
    3

    Re: wanting to truncate a cell with numbers and text into workable numbers

    JeffreyBrown,

    This worked great!

    Thank you.

    K2N*

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: wanting to truncate a cell with numbers and text into workable numbers

    The reason mine did not work in your real data was simple. In your ORIGINAL sample, the values were in different columns. In your SUBSEQUENT sample, the values were ALL in the SAME column!!

    You need to make sure that your sample reflects what you actually have...

+ 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] If cell has numbers and specific text, sum numbers with multiple criteria
    By jj2105 in forum Excel Formulas & Functions
    Replies: 28
    Last Post: 05-31-2022, 05:41 AM
  2. Replies: 4
    Last Post: 10-20-2020, 04:15 PM
  3. How to truncate numbers on right side of alphabets
    By Tai Chi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-20-2015, 08:25 PM
  4. [SOLVED] Group numbers into workable ranges in order to run a pivot table (days taken to update)
    By Bunny Screen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-30-2014, 09:14 AM
  5. Replies: 1
    Last Post: 02-01-2013, 06:30 PM
  6. Replies: 4
    Last Post: 07-01-2012, 07:24 PM
  7. [SOLVED] extract numbers from cell containing text & numbers
    By transferxxx@gmail.com in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-14-2005, 03:10 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