Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I need to produce a spreadsheet that rights the example: 1,245.89 as one two
four five 89. I've tried the left and right formulaes and the len one but the numbers will change in length and may have zero decimals at the end too. Not sure how to set this up now. Need the numbers in seperate cells, currently have the following formula for the second number and so forth: RIGHT(LEFT(B3,2),1) Any help would be much appreciated. Many thanks. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Do the two formula do what you want =INT(B3) =MOD(B3,1) Mike "Marli" wrote: I need to produce a spreadsheet that rights the example: 1,245.89 as one two four five 89. I've tried the left and right formulaes and the len one but the numbers will change in length and may have zero decimals at the end too. Not sure how to set this up now. Need the numbers in seperate cells, currently have the following formula for the second number and so forth: RIGHT(LEFT(B3,2),1) Any help would be much appreciated. Many thanks. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this UDF (User Defined function). From workbook launch VBE using Alt+F11.
From menu Insert a Module and paste the below function.Close and get back to workbook and try the below formula. Function NumToText(strData As Variant) As String Dim arrText As Variant arrText = Array("Zero", "One", "Two", "Three", _ "Four", "Five", "Six", "Seven", "Eight", "Nine") For intPos = 1 To InStr(strData & ".", ".") If IsNumeric(Mid(strData, intPos, 1)) Then NumToText = NumToText & " " & arrText(Mid(strData, intPos, 1)) End If Next NumToText = Mid(NumToText, 2) & " " & _ Mid(strData, InStr(strData & ".", ".") + 1) End Function -- Jacob "Marli" wrote: I need to produce a spreadsheet that rights the example: 1,245.89 as one two four five 89. I've tried the left and right formulaes and the len one but the numbers will change in length and may have zero decimals at the end too. Not sure how to set this up now. Need the numbers in seperate cells, currently have the following formula for the second number and so forth: RIGHT(LEFT(B3,2),1) Any help would be much appreciated. Many thanks. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
you may try this in cell F24. C24 has 1245.89. Copy this formula to the right. =MID($C$24,COLUMNS($F23:F23),1) -- Regards, Ashish Mathur Microsoft Excel MVP www.ashishmathur.com "Marli" wrote in message ... I need to produce a spreadsheet that rights the example: 1,245.89 as one two four five 89. I've tried the left and right formulaes and the len one but the numbers will change in length and may have zero decimals at the end too. Not sure how to set this up now. Need the numbers in seperate cells, currently have the following formula for the second number and so forth: RIGHT(LEFT(B3,2),1) Any help would be much appreciated. Many thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Chart Number Decimal Places | Excel Discussion (Misc queries) | |||
Setting the number of decimal places for a text box. | Excel Discussion (Misc queries) | |||
excel-enter integer number and get two decimal places | Excel Discussion (Misc queries) | |||
Converting a number to 2 decimal places | Excel Discussion (Misc queries) | |||
How do I change the number of decimal places displayed in Excel | Excel Discussion (Misc queries) |