Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 81
Default conditional number format dependent on other cell

Hi,
From all my reading, I've determined what I want to do is not possible with
Excel 2003, at least without using VBA.

I have a spreadsheet that uses 2 currencies. One is always US $, the second
can vary, depending on what country the finance report comes to me from.

For this second currency, is there any way I can have certain cells take on,
e.g the '£' currency format when a value or format is entered in another
single cell?

For example, I'd like numbers in column B to display the '£' currency
format when a value or format is entered in A1. Or if the report comes from
Kenya, to have "KSH" preceed any numbers in column B, based on them entering
KSH in A1.

It seems a shame that Excel doesn't allow Numbers under their conditional
formating where I can enter a formula. Why not?

I've tinkered with Custom Number format, but can't make anything work.

Unless someone has a great solution, I shall have to settle for having no
currency format at all in Col B. Since these cells are sprinkled thru out
the spreadsheet, it'd be too much off a pain to have them select them and
change the format to their country each quarter.

Thanks for any thoughts you may have,
Harold


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6,582
Default conditional number format dependent on other cell

You could use a lookup to provide a number format, and use TEXT to apply it
to a value. Say the cell which you use to look up a format is A1, the lookup
table is F1:G10, and the value to display is in D1. Use a formula like this:

=TEXT(D1,VLOOKUP(A1,F1:G10,2))

You can't use this cell for calculations, but it will display nicely. Use
the cell with the actual value (D1) for any calculations.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Harold Good" wrote in message
...
Hi,
From all my reading, I've determined what I want to do is not possible
with Excel 2003, at least without using VBA.

I have a spreadsheet that uses 2 currencies. One is always US $, the
second can vary, depending on what country the finance report comes to me
from.

For this second currency, is there any way I can have certain cells take
on, e.g the '£' currency format when a value or format is entered in
another single cell?

For example, I'd like numbers in column B to display the '£' currency
format when a value or format is entered in A1. Or if the report comes
from Kenya, to have "KSH" preceed any numbers in column B, based on them
entering KSH in A1.

It seems a shame that Excel doesn't allow Numbers under their conditional
formating where I can enter a formula. Why not?

I've tinkered with Custom Number format, but can't make anything work.

Unless someone has a great solution, I shall have to settle for having no
currency format at all in Col B. Since these cells are sprinkled thru out
the spreadsheet, it'd be too much off a pain to have them select them and
change the format to their country each quarter.

Thanks for any thoughts you may have,
Harold



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 81
Default conditional number format dependent on other cell

Thanks very much, I had no idea the Text function would do this! I will try
to incorporate this into my needs.
Harold


"Jon Peltier" wrote in message
...
You could use a lookup to provide a number format, and use TEXT to apply
it to a value. Say the cell which you use to look up a format is A1, the
lookup table is F1:G10, and the value to display is in D1. Use a formula
like this:

=TEXT(D1,VLOOKUP(A1,F1:G10,2))

You can't use this cell for calculations, but it will display nicely. Use
the cell with the actual value (D1) for any calculations.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Harold Good" wrote in message
...
Hi,
From all my reading, I've determined what I want to do is not possible
with Excel 2003, at least without using VBA.

I have a spreadsheet that uses 2 currencies. One is always US $, the
second can vary, depending on what country the finance report comes to me
from.

For this second currency, is there any way I can have certain cells take
on, e.g the '£' currency format when a value or format is entered in
another single cell?

For example, I'd like numbers in column B to display the '£' currency
format when a value or format is entered in A1. Or if the report comes
from Kenya, to have "KSH" preceed any numbers in column B, based on them
entering KSH in A1.

It seems a shame that Excel doesn't allow Numbers under their conditional
formating where I can enter a formula. Why not?

I've tinkered with Custom Number format, but can't make anything work.

Unless someone has a great solution, I shall have to settle for having no
currency format at all in Col B. Since these cells are sprinkled thru out
the spreadsheet, it'd be too much off a pain to have them select them and
change the format to their country each quarter.

Thanks for any thoughts you may have,
Harold





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
Conditional formatting: changing number format Almir Vargas[_2_] Excel Worksheet Functions 3 March 22nd 08 05:33 PM
Conditional Formatting dependent on another cell Martin Ledgard[_2_] Excel Discussion (Misc queries) 3 November 18th 07 11:48 AM
How to create a conditional format that changes the number format tmbo Excel Discussion (Misc queries) 1 August 23rd 06 06:20 AM
Conditional format of minimum number MaggieMagill Excel Worksheet Functions 6 September 25th 05 11:36 PM
How can I make a cell a certain color dependent on number value? Sue Excel Discussion (Misc queries) 1 June 2nd 05 06:41 PM


All times are GMT +1. The time now is 03:31 PM.

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

About Us

"It's about Microsoft Excel"