Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Maintain Formatting with Formulas

I am writing a formula that references multiple cells as the possible source
cell depending on certain parameters being met. My question is whether
anyone knows how to maintain the formatting in the display cell? My possible
source cells all contain different number formats (i.e. -1234.0 and
##00.0E-+00). Is there a way to write this into the formula, or is there a
formatting option that allows you to keep the source cell's format? Any help
would be great!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Maintain Formatting with Formulas

Use the TEXT function to apply the same format to the values from the
referenced cells as was used on those referenced cells directly. For
example, if A1 has the value 1234, but is displaying it as 1234.0 and B1 has
a date value displayed as 18Jan2010, then you could use them in an example
formula like this...

="A1 is showing "&TEXT(A1,"0.0")&" and B1 is showing "&TEXT(B1,"ddmmmyyyy")

--
Rick (MVP - Excel)


"Jacob Dieter" <Jacob wrote in message
...
I am writing a formula that references multiple cells as the possible
source
cell depending on certain parameters being met. My question is whether
anyone knows how to maintain the formatting in the display cell? My
possible
source cells all contain different number formats (i.e. -1234.0 and
##00.0E-+00). Is there a way to write this into the formula, or is there
a
formatting option that allows you to keep the source cell's format? Any
help
would be great!


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
Save as web page (Maintain formulas) Anthony Ginger Excel Discussion (Misc queries) 0 June 1st 06 06:19 PM
How do I import data from lotus123 & maintain formulas/worksheets Ineluctable Excel Discussion (Misc queries) 1 October 20th 05 05:11 PM
how do I maintain my conditional formatting when filtering cells? Aja Excel Worksheet Functions 0 September 21st 05 09:56 PM
How can I sort and maintain formatting? littlelostgrl Excel Discussion (Misc queries) 2 August 24th 05 08:11 PM
formulas won't maintain during sort -help please! MarcoPolo Excel Worksheet Functions 3 August 4th 05 05:41 PM


All times are GMT +1. The time now is 11:16 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"