Simple Currency Conditional Formatting

unmec

New Member
Joined
Mar 9, 2011
Messages
1
Hello,
I currently have a purchase order database that lists all of the general PO information to keep a log as we assign numbers.

I have one column for all of the amounts of the POs and I am hoping to add a few conditional formatting conditions to color the cell if it is in a different currency.

No Format for USD
Yellow for Pounds
Green for Euros

So far I have just been changing the currency format to show the different types, but when I am looking them up, I can't always quickly see a different symbol and a different color would help. I just don't want to have to fill in the color every time I change the format as well.

Thanks for your help!
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
first I suppose you enter the numbers only and then format it as various currency formats
in that case there are many ways of solving your requirement including a conditional formatting by using the character map of
the currency code. for e.g. char of $ is 36, for euro 128 and for uk pound 163
but there is no built in formula to get the currency format of a cell. however the follwing webpag
http://www.mvps.org/dmcritchie/excel/formula.htm
gives a function


Code:
Function GetFormat(Cell as Range) as String
   GetFormat = cell.NumberFormat
End Function
this has to be copied in the vbeditor
then getformat can be used as formula like any other formula function like sum, count etc.
now you pre-select the cells which you have already formatted as different currencies.
click format-conditionalforamtting

under condition 1
choose
the formula is
on the right side copy this formula
=SEARCH(CHAR(128),getformat(A1))>0
clcik format in the conditional formatting window and choose pattern(last item in the top)
and choose green color

click add
under condition 2 also
the formula is
on right side type this formula
=SEARCH(CHAR(163),getformat(A1))>0
and choose pattern as yellow color
click ok


in case new cells are to be added copy the cells where the conditonal formatting has
been already done and down pastespecial-format
and THEN only do currency formats.

hope this will help you.

I personally find a macro will be easier to operate once the macro is created.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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