Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
kkf718
 
Posts: n/a
Default Putting NAMEs or REFERENCES into Custom Number Formats

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   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Putting NAMEs or REFERENCES into Custom Number Formats

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   Report Post  
Posted to microsoft.public.excel.misc
kkf718
 
Posts: n/a
Default Putting NAMEs or REFERENCES into Custom Number Formats

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   Report Post  
Posted to microsoft.public.excel.misc
vezerid
 
Posts: n/a
Default Putting NAMEs or REFERENCES into Custom Number Formats

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel question Formats and number pad raindancer Excel Discussion (Misc queries) 1 February 8th 06 02:36 AM
how do I add phone number format as a permanent custom format? frustratedagain Excel Discussion (Misc queries) 3 February 4th 06 03:52 AM
Format a cell with a custom number format Armor Excel Worksheet Functions 4 January 29th 06 11:25 PM
Custom Formats becky Excel Discussion (Misc queries) 6 December 24th 04 01:24 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 09:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"