Formatting cell depending on drop down box value

Andrela

New Member
Joined
Oct 25, 2010
Messages
2
Hi,

I have a worksheet where one of the columns uses a drop down box with 5 values. I would like that when I choose a certain value in the box, the next cell to the right is formatted in a predefined way. I tried to use Conditional Formatting, but apparently my wish is to complex. I guess I need a macro, could somebody please help me with that?

Thank you,
Andrela
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi Andrela,

one of the columns uses a drop down box with 5 values

... I assume you're using data validation? What are the five values?

next cell to the right is formatted in a predefined way

... what are the rules you want for formatting the cell?
 
Upvote 0
The values and formattings are:

  • MS - Currency $ English (U.S.) 1 decimal
  • TS - Currency $ English (U.S.) 1 decimal
  • Pr - Percentage 2 decimals
  • Dates - dd/mm/yyyy
  • Other - Number, 2 decimals, 1000 Separator (,)
I sort of managed it with Conditional Formatting, using the "use a formula to determine which...", but I have to rewrite the rule for each cell, because the dragging won't change the reference cell ( $G$13="Pr" won't become $G$14="Pr" when dragged down).
I'm using Excel 2007.

Thank you for your interest.
 
Upvote 0
$G$13="Pr" won't become $G$14="Pr" when dragged down

... in the formula box in conditional formatting change the text to $G13="Pr" (i.e. remove the second dollar sign) and then try dragging down.

Hope this helps and all the best!
 
Upvote 0

Forum statistics

Threads
1,215,506
Messages
6,125,193
Members
449,213
Latest member
Kirbito

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