+ Reply to Thread
Results 1 to 7 of 7

Excel Formatting, Formatting formula

  1. #1
    Registered User
    Join Date
    07-20-2011
    Location
    Kerala, India
    MS-Off Ver
    Excel 2013
    Posts
    93

    Post Excel Formatting, Formatting formula

    Hi! am using MS Excel 2007
    ===========================
    1:

    I have a column mentioning values:

    Column 1:

    Eight. Four
    Seven. 0ne
    Nine. Eight
    Eight. Eight
    Six. 0ne

    I need results as :

    Column 2:

    8.4
    7.1
    9.8
    8.8
    6.1...
    ============================

    2:

    Problem.......
    Column 1:

    Nine Hundred Sixty Three Thou sand Seven Hu ndred Eighty One
    Eight Hundred Sev enty Eight Thousand E ight Hundred Seventy Eight
    Eight Hundred Twenty Two Thous and Seven Hundred Eighty Four
    Eight Hund red Twenty Six Thousand One Hundred Eighty Nine
    Nine Hundred Three Thousand Ni ne Hundred Six


    Result
    Column 2:

    Nine Hundred Sixty Three Thousand Seven Hundred Eighty One
    Eight Hundred Seventy Eight Thousand Eight Hundred Seventy Eight
    Eight Hundred Twenty Two Thousand Seven Hundred Eighty Four
    Eight Hundred Twenty Six Thousand One Hundred Eighty Nine
    Nine Hundred Three Thousand Nine Hundred Six

    i.e.: The result should take off all <spaces> followed by "small letters" ('Hu ndred' - 'Hundred' in first case)


    I appreciate your valuable suggestions........ thank you!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    04-07-2009
    Location
    Rowley
    MS-Off Ver
    Excel 2007
    Posts
    326

    Re: Excel Formatting, Formatting formula

    For your first problem, try this:

    Set up a table somewhere out of the way on your sheet like this:

    Please Login or Register  to view this content.
    Then with your data like:
    Please Login or Register  to view this content.
    In cell B1 enter the formula:

    =VLOOKUP(LEFT(A1,FIND(". ",A1,1)-1),$AA$1:$AB$10,2,)&"."&VLOOKUP(RIGHT(A1,LEN(A1)-FIND(". ",A1)-1),$AA$1:$AB$10,2,)

    Note that it is a period and a space that separates the numbers, not just a period.


    For the second part of your problem, the quickest is a UDF or Macro.

    But before you can use these examples, you have to remove all the Space Characters in your string.
    You can do this with a simple Search/Replace

    Search for a Space
    Replace with nothing

    Then, there are several different examples here for inserting a space before a Capital Letter,
    that should get you what your looking for.

    http://www.mrexcel.com/forum/excel-q...al-letter.html

  3. #3
    Forum Contributor
    Join Date
    04-07-2009
    Location
    Rowley
    MS-Off Ver
    Excel 2007
    Posts
    326

    Re: Excel Formatting, Formatting formula

    Here is another macro that may be easier to use:

    http://excelribbon.tips.net/T012810_...l_Letters.html

  4. #4
    Registered User
    Join Date
    07-20-2011
    Location
    Kerala, India
    MS-Off Ver
    Excel 2013
    Posts
    93

    Re: Excel Formatting, Formatting formula

    Quote Originally Posted by xenixman View Post
    For your first problem, try this:

    Set up a table somewhere out of the way on your sheet like this:

    Please Login or Register  to view this content.
    Then with your data like:
    Please Login or Register  to view this content.
    In cell B1 enter the formula:

    =VLOOKUP(LEFT(A1,FIND(". ",A1,1)-1),$AA$1:$AB$10,2,)&"."&VLOOKUP(RIGHT(A1,LEN(A1)-FIND(". ",A1)-1),$AA$1:$AB$10,2,)

    Note that it is a period and a space that separates the numbers, not just a period.


    For the second part of your problem, the quickest is a UDF or Macro.

    But before you can use these examples, you have to remove all the Space Characters in your string.
    You can do this with a simple Search/Replace

    Search for a Space
    Replace with nothing

    Then, there are several different examples here for inserting a space before a Capital Letter,
    that should get you what your looking for.

    http://www.mrexcel.com/forum/excel-q...al-letter.html

    Hi!

    I tried the formula with the FORLUMA :
    B1: =VLOOKUP(LEFT(A1,FIND(". ",A1,1)-1),$AA$1:$AB$10,2,)&"."&VLOOKUP(RIGHT(A1,LEN(A1)-FIND(". ",A1)-1),$AA$1:

    But my result was :

    Good except 2nd and 5th row which returned a NA

    i.e.:

    Eight. Four
    Seven. 0ne
    Nine. Eight
    Eight. Eight
    Six. 0ne


    Result:

    8.4
    #N/A
    9.8
    8.8
    #N/A

  5. #5
    Registered User
    Join Date
    07-20-2011
    Location
    Kerala, India
    MS-Off Ver
    Excel 2013
    Posts
    93

    Re: Excel Formatting, Formatting formula

    Thank you very much for the link!

  6. #6
    Registered User
    Join Date
    07-20-2011
    Location
    Kerala, India
    MS-Off Ver
    Excel 2013
    Posts
    93

    Re: Excel Formatting, Formatting formula

    Quote Originally Posted by xenixman View Post
    For your first problem, try this:

    Set up a table somewhere out of the way on your sheet like this:

    Please Login or Register  to view this content.
    Then with your data like:
    Please Login or Register  to view this content.
    In cell B1 enter the formula:

    =VLOOKUP(LEFT(A1,FIND(". ",A1,1)-1),$AA$1:$AB$10,2,)&"."&VLOOKUP(RIGHT(A1,LEN(A1)-FIND(". ",A1)-1),$AA$1:$AB$10,2,)

    Note that it is a period and a space that separates the numbers, not just a period.


    For the second part of your problem, the quickest is a UDF or Macro.

    But before you can use these examples, you have to remove all the Space Characters in your string.
    You can do this with a simple Search/Replace

    Search for a Space
    Replace with nothing

    Then, there are several different examples here for inserting a space before a Capital Letter,
    that should get you what your looking for.

    http://www.mrexcel.com/forum/excel-q...al-letter.html

    Hi!

    Thank you for all the support,



    I tried the formula :
    B1: =VLOOKUP(LEFT(A1,FIND(". ",A1,1)-1),$AA$1:$AB$10,2,)&"."&VLOOKUP(RIGHT(A1,LEN(A1)-FIND(". ",A1)-1),$AA$1:

    But my result was :

    Good except 2nd and 5th row which returned a NA

    i.e.:

    Eight. Four
    Seven. 0ne
    Nine. Eight
    Eight. Eight
    Six. 0ne


    Result:

    8.4
    #N/A
    9.8
    8.8
    #N/A

  7. #7
    Registered User
    Join Date
    07-20-2011
    Location
    Kerala, India
    MS-Off Ver
    Excel 2013
    Posts
    93

    Re: Excel Formatting, Formatting formula

    Quote Originally Posted by xenixman View Post
    For your first problem, try this:

    Set up a table somewhere out of the way on your sheet like this:

    Please Login or Register  to view this content.
    Then with your data like:
    Please Login or Register  to view this content.
    In cell B1 enter the formula:

    =VLOOKUP(LEFT(A1,FIND(". ",A1,1)-1),$AA$1:$AB$10,2,)&"."&VLOOKUP(RIGHT(A1,LEN(A1)-FIND(". ",A1)-1),$AA$1:$AB$10,2,)

    Note that it is a period and a space that separates the numbers, not just a period.

    Hi!

    The second part of my prior problem was solved successfully! thanks for the same.

    But for the first part i have received a negative for certain values:



    I tried the formula :
    B1: =VLOOKUP(LEFT(A1,FIND(". ",A1,1)-1),$AA$1:$AB$10,2,)&"."&VLOOKUP(RIGHT(A1,LEN(A1)-FIND(". ",A1)-1),$AA$1:

    But my result was :

    Good except 2nd and 5th row which returned a NA

    i.e.:

    Eight. Four
    Seven. 0ne
    Nine. Eight
    Eight. Eight
    Six. 0ne


    Result:

    8.4
    #N/A
    9.8
    8.8
    #N/A


    Awaiting your early reply

+ 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. Find and Replace, Formatting, Formatting Formula
    By kjxavier in forum Excel General
    Replies: 1
    Last Post: 07-03-2014, 09:03 PM
  2. If Formula - conditional formatting - three different formatting rules
    By sharper1989 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-25-2014, 04:49 PM
  3. Excel formatting formula help
    By wilsonusman in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 12-03-2013, 08:59 AM
  4. Delete Conditional Formatting conditions but keep cell formatting - Excel 2010
    By tetreama in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2012, 08:28 PM
  5. Replies: 1
    Last Post: 07-19-2012, 05:37 AM

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.6.0 RC 1