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

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
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,224,586
Messages
6,179,718
Members
452,939
Latest member
WCrawford

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