Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I know how to format numbers so that text appears in front of the number, but
I want that text to come from another location, like a NAME or another cell. It would be impractical to type the text into each cell or to copy formats around every time you want to change the text in front of the number. Knowing how to do this for both NAMEs and References would be nice, but I will take either at this point. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Are you talking about format numbers in formatcellnumbers or are you
talking about something like ="This is worth "&TEXT(A1,"$#,##0.00") I assume the latter =A2&" "&TEXT(A1,"$#,##0.00") text in A2 and number in A1 You cannot use formatting with cell links if it was the former -- Regards, Peo Sjoblom Northwest Excel Solutions Portland, Oregon "kkf718" wrote in message ... I know how to format numbers so that text appears in front of the number, but I want that text to come from another location, like a NAME or another cell. It would be impractical to type the text into each cell or to copy formats around every time you want to change the text in front of the number. Knowing how to do this for both NAMEs and References would be nice, but I will take either at this point. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Unfortunately, it was the former (formatcellnumbers). I am talking about
replacing the text portion of a number format that is typically placed in quotes "Floor", with a reference to a cell or NAME where the word "Floor" is typed in once, remotely, and can show up in front of a large group of numbers. Thanks for the reply though. "Peo Sjoblom" wrote: Are you talking about format numbers in formatcellnumbers or are you talking about something like ="This is worth "&TEXT(A1,"$#,##0.00") I assume the latter =A2&" "&TEXT(A1,"$#,##0.00") text in A2 and number in A1 You cannot use formatting with cell links if it was the former -- Regards, Peo Sjoblom Northwest Excel Solutions Portland, Oregon "kkf718" wrote in message ... I know how to format numbers so that text appears in front of the number, but I want that text to come from another location, like a NAME or another cell. It would be impractical to type the text into each cell or to copy formats around every time you want to change the text in front of the number. Knowing how to do this for both NAMEs and References would be nice, but I will take either at this point. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Then a worksheet_change macro can work for you. Let us say the cell is
C1. Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$C$1" Then Sheets("Sheet2").Range("D1:D1000").NumberFormat = Chr(34) & Range("C1").Value & Chr(34) & "0" End If End Sub Does this help? Kostis Vezerides |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel question Formats and number pad | Excel Discussion (Misc queries) | |||
how do I add phone number format as a permanent custom format? | Excel Discussion (Misc queries) | |||
Format a cell with a custom number format | Excel Worksheet Functions | |||
Custom Formats | Excel Discussion (Misc queries) | |||
GET.CELL | Excel Worksheet Functions |