+ Reply to Thread
Results 1 to 4 of 4

excel formula to split cell value in two cells

  1. #1
    Registered User
    Join Date
    11-11-2013
    Location
    Davao, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    10

    excel formula to split cell value in two cells

    hi all.

    please help me on this.

    I want to have a formula in cell “A3” that checks the number of characters in cell “A1” that contain say for example the text string “One Thousand Five Hundred Twenty Five”. When the number of characters exceeds the maximum of 20, it will trim the result to 20 characters or LESS but will still preserve the whole text prior to the maximum character limit. In this case, 20 characters will result to “One Thousand Five Hu”. With the given condition, the formula in cell “A3” must result to “One Thousand Five” thereby still preserving the complete words prior to the maximum limit.

    In cell “A4”, another formula must also result in “Hundred Twenty Five” completing the whole text string in cell “A1”. I just can’t figure out what the formulas must be to have the desired results in CAPITALIZED CHARACTERS.
    Formulas previously provided by helpful forum members are as follows:

    A3
    =iferror(TRIM(LEFT(A1,FIND("@@",SUBSTITUTE(A1," ","@@",20-LEN(SUBSTITUTE(LEFT(A1,20)," ","")))))),"")

    A4
    =iferror(TRIM(SUBSTITUTE(A1,A3,"")),"")

    Any help is very much appreciated. Thank you.


    cedric

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: excel formula to split cell value in two cells

    A3 =upper(iferror(trim(left(a1,find("@@",substitute(a1," ","@@",20-len(substitute(left(a1,20)," ","")))))),""))
    a4 =iferror(trim(substitute(upper(a1),a3,"")),"")

  3. #3
    Registered User
    Join Date
    11-11-2013
    Location
    Davao, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: excel formula to split cell value in two cells

    thanks a lot DAVID. your solution works the way i want it.

  4. #4
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: excel formula to split cell value in two cells

    Quote Originally Posted by cedric_dranreb View Post
    thanks a lot DAVID. your solution works the way i want it.
    Thanks for the feedback. It's always good to hear that a suggestion works.

    Please click the *Add Reputation button at bottom left, and mark the thread as SOLVED by clicking Thread Tools above your first post, select "Mark your thread as Solved".

+ 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. Split an Address in one cell into multiple cells using a formula
    By excelnovice2007 in forum Excel General
    Replies: 8
    Last Post: 01-22-2015, 10:49 AM
  2. Excel Split Single Cell Array into Multiple Cells
    By devinpitcher in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 12-07-2012, 07:13 AM
  3. A Formula to split a cell into 2 cells
    By NewGuy OnBlock in forum Excel General
    Replies: 2
    Last Post: 01-27-2011, 10:59 PM
  4. [SOLVED] How do I split a cell into 3 different cells in excel?
    By K8 in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 06-16-2009, 05:11 AM
  5. [SOLVED] Can I split 1 cell into 2 cells in Excel?
    By Chalky in forum Excel General
    Replies: 5
    Last Post: 09-28-2005, 08:05 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