Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
formatting of numbers within a string
I need to copy data from a cell into a string. The data is numeric.
I want to format this number in the string. How can I do that without writing my own complicated format function? For example: A1: 12345 B1: "You have " & A1 & " outstanding tickets." I want B1 to say "You have 12,345 outstanding tickets" not "You have 12345 outstanding tickets". Thanks. Edward |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
formatting of numbers within a string
="You have "&TEXT(A1,"#,##0")&" outstanding tickets"
you can do the same for any other formatting like percentage and currency etc ="You owe me "&TEXT(A1,"$#,##0")&" and you better cough it up or you'll end up as fish food" -- Regards, Peo Sjoblom "Edward" wrote in message ups.com... I need to copy data from a cell into a string. The data is numeric. I want to format this number in the string. How can I do that without writing my own complicated format function? For example: A1: 12345 B1: "You have " & A1 & " outstanding tickets." I want B1 to say "You have 12,345 outstanding tickets" not "You have 12345 outstanding tickets". Thanks. Edward |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
formatting of numbers within a string
="You have "&TEXT(A1,"#,##0")&" outstanding tickets."
-- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Edward" wrote in message ups.com... I need to copy data from a cell into a string. The data is numeric. I want to format this number in the string. How can I do that without writing my own complicated format function? For example: A1: 12345 B1: "You have " & A1 & " outstanding tickets." I want B1 to say "You have 12,345 outstanding tickets" not "You have 12345 outstanding tickets". Thanks. Edward |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
formatting of numbers within a string
You can use the TEXT function to do that.
="You have "&TEXT(A1,"#,##0")&" outstanding tickets." Rick "Edward" wrote in message ups.com... I need to copy data from a cell into a string. The data is numeric. I want to format this number in the string. How can I do that without writing my own complicated format function? For example: A1: 12345 B1: "You have " & A1 & " outstanding tickets." I want B1 to say "You have 12,345 outstanding tickets" not "You have 12345 outstanding tickets". Thanks. Edward |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
formatting of numbers within a string
Maybe
="You have " &TEXT(A1,"#,###") & " outstanding tickets" Mike "Edward" wrote: I need to copy data from a cell into a string. The data is numeric. I want to format this number in the string. How can I do that without writing my own complicated format function? For example: A1: 12345 B1: "You have " & A1 & " outstanding tickets." I want B1 to say "You have 12,345 outstanding tickets" not "You have 12345 outstanding tickets". Thanks. Edward |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
formatting of numbers within a string
="some text " & TEXT(A1,"#,##0") & " other text"
where A1 contains the value. -- Gary''s Student - gsnu200753 "Edward" wrote: I need to copy data from a cell into a string. The data is numeric. I want to format this number in the string. How can I do that without writing my own complicated format function? For example: A1: 12345 B1: "You have " & A1 & " outstanding tickets." I want B1 to say "You have 12,345 outstanding tickets" not "You have 12345 outstanding tickets". Thanks. Edward |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
formatting of numbers within a string
try
= "You have " & text(A1,"#,##0") & " outstanding tickets." "Edward" wrote: I need to copy data from a cell into a string. The data is numeric. I want to format this number in the string. How can I do that without writing my own complicated format function? For example: A1: 12345 B1: "You have " & A1 & " outstanding tickets." I want B1 to say "You have 12,345 outstanding tickets" not "You have 12345 outstanding tickets". Thanks. Edward |
#8
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
formatting of numbers within a string
Thanks.
On Nov 1, 10:46 am, "Peo Sjoblom" wrote: ="You have "&TEXT(A1,"#,##0")&" outstanding tickets" you can do the same for any other formatting like percentage and currency etc ="You owe me "&TEXT(A1,"$#,##0")&" and you better cough it up or you'll end up as fish food" -- Regards, Peo Sjoblom "Edward" wrote in message ups.com... I need to copy data from a cell into a string. The data is numeric. I want to format this number in the string. How can I do that without writing my own complicated format function? For example: A1: 12345 B1: "You have " & A1 & " outstanding tickets." I want B1 to say "You have 12,345 outstanding tickets" not "You have 12345 outstanding tickets". Thanks. Edward- Hide quoted text - - Show quoted text - |
#9
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
formatting of numbers within a string
Or you could ignore the formula in cell B1 and give cell A1 the custom format
of: "You have" #,### "outstanding tickets." Then just type the number in cell A1 as normal (the formatting will add the rest). |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Formula Text String: Formatting Text and Numbers? | Excel Discussion (Misc queries) | |||
Column of Numbers in xls to String of Numbers in txt | Excel Discussion (Misc queries) | |||
finding what numbers are in a string (Day 2) | Excel Worksheet Functions | |||
string of numbers | Excel Worksheet Functions | |||
string of numbers | Excel Worksheet Functions |