Struggling: How to do conditional formatting based on the formatting of another cell on the same row

ibddude

New Member
Joined
Aug 20, 2011
Messages
17
Hello all; Here is the problem: I have a column showing different types of currency so A1 could show "USD", A2, "GBP", A3, "JPY" etc. in adjacent column I want the format of the value to reflect the type of currency, "$" for USD, "Pound sing" for GBP, etc. Sounds easy enough but I can't get the right formula, this is what I tried: an example rule would be: =IF($A2 = "USD", TRUE,FALSE) and then I set the format to be "$" and then in the Range for the column of values I want to reflect this would be =$B$2:$B$9999 It works but references $A2 on every subsequent row, I need the value to increment so on the next row it looks at $A3 and so on. Any insights on how to do this would be deeply appreciated! Thanks ibddude
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
I would suggest you start by only selecting the single cell on which you want to apply the Conditional Formatting. Enter the formula and apply the currency formatting. After you get this to work fine, copy the Conditional Formatting to the other cells. Do this by using the Format Painter on the Home tab of the Ribbon.

Best of luck,

G/L
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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