Conditional formatting for Currency based on cell value

yorkshirelad

Board Regular
Joined
Aug 18, 2003
Messages
100
I need to change the formatting of a range of cells G17:G21 from $dollars to £uk depending on a cell value B2 which shows the currency.

I've tried to set this using Excel 2007 conditional formatting but it only seems to allow you to amend the formatting based on the cells you want to format rather than another cell.

I'm sure I have done this before using a formula, so would be obliged for any assistance

Many thanks
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
I need to change the formatting of a range of cells G17:G21 from $dollars to £uk depending on a cell value B2 which shows the currency.

I've tried to set this using Excel 2007 conditional formatting but it only seems to allow you to amend the formatting based on the cells you want to format rather than another cell.

I'm sure I have done this before using a formula, so would be obliged for any assistance

Many thanks
What is in B2? The text entry dollar or pound or what?

Try something like this. We'll assume B2 contain either "US" or UK".

Select the *entire* range G17:G21 starting from cell G17.
Cell G17 will be the active cell. The active cell is the
one cell in the selected range that is not shaded. The
formula will be relative to the active cell.
  • Goto the Home tab>Styles>Conditional Formatting>Manage rules>New rule>Use a formula to determine which cells to format
  • Enter this formula in the box below:
    =$B$2="us"
  • Click the Format button
  • Select the Numer tab
  • Select Currency
  • Select the appropriate currency styles for US
  • OK
  • OK
  • Repeat the process for "UK" but change the formula to: =$B$2="uk"
 
Upvote 0
i am trying to automatically format the currency of a range of cells, depending whether i chose the active currency to be €, $, £, etc i.e. exactly the same but i am using excel 2002.
is it possible pls?
thank you
 
Upvote 0
i am trying to automatically format the currency of a range of cells, depending whether i chose the active currency to be €, $, £, etc i.e. exactly the same but i am using excel 2002.
is it possible pls?
thank you
Unfortunately that type of conditional formatting is not available in Excel versions prior to Excel 2007.

You would need to use an event macro to do what you want. I'm not much of a programmer so I can't help you with that.

If you haven't recieved a solution after a day or so start a new thread as this one is kind of old.

Good luck!
 
Upvote 0
thank you for the quick reply.
unfortunately i am not good on macros, so if anyone else can help here, i'd be grateful for the assistance
thank you
 
Upvote 0
Is such formatting still available in current Excel 365? As far as I can see there are only style options like fonts and borders. If no, maybe do you know whether it works in Excel 2016?
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,282
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top