Hi Everyone
What I am trying to do is let say if B6=1 then I want B58:B63 to change color? Can I do this thru Conditional Formatting? If yes could someone please show me how?
Thank You
VinnySx
Hi Everyone
What I am trying to do is let say if B6=1 then I want B58:B63 to change color? Can I do this thru Conditional Formatting? If yes could someone please show me how?
Thank You
VinnySx
Like this...
Select the *entire* range B58:B63 starting from cell B58.
Cell B58 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$6=1
Click the Format button
Select the desired style(s)
OK out
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
Hi Tony
THANK YOU that rule well just RULES lol....
Thank You
Hi Tony
Question hope you can answer this one very similar to the last question! Lets say I click on C11 regardless of the value just the act of choosing the cell then I would like A11 to change color. Could this be done with a rule?
Thank You
Vinny
You would need an event macro for this.
Tell us the EXACT range of cells that you want this to apply to and what color do you want to use?
I'm not much of a programmer but I think I can handle this.
For the last question.. Try this..
Copy this code and Press Alt + F11 then click "sheet1" on the tree structure on the left hand side..![]()
Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Address = Range("A11").Address Then Target.Interior.ColorIndex = 4 End If End Sub
the paste the code there...
now if you select the cell A11, the cell color will change to green..
you can change the color by changing the color index no in the code..provided..
Regards,
Vikas Gautam
Excel-buzz.blogspot.com
Excel is not a matter of Experience, its a matter of Application.
Say Thanks, Click * Add Reputation
Try the below formula in conditional format, open the attachment select b6 and f2 and enter
=CELL("ADDRESS")="$B$6"
☚ Click ★ just below left if it helps, Boo?ath?![]()
Hi
Vikas I tried what you said however it didn't work I may have done something wrong. boopathiraja that's not what I wanted to happen?
OK let try again, here is one area then I should be able to transpose to the rest of the cell. If you click on cell B4 I would like cell A4 to change color Tony gave me a rule and it worked great however I gave Tony a value, in this scenario I would like to have the rule work just on choosing the cell? Can this be done on a rule??
THANK YOU EVERYONE FOR THE HELP
Vinny
You need an event macro.
I'm not much of a programmer but this works for me.
Assuming you want to select a cell in the range B2:B10 and have the corresponding cell in A2:A10 fill color change to yellow.
Select the sheet where you want this to happen
Right click the sheet tab and select View code
This will open the VB editor
Copy the code below and paste it into the right side of the window that opens.
Close the VB editor to return to Excel![]()
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range) With Target If .Count > 1 Then Exit Sub If Not Intersect(Range("B2:B10"), .Cells) Is Nothing Then Application.EnableEvents = False .Offset(0, -1).Interior.ColorIndex = 6 End If Application.EnableEvents = True End With End Sub
Try it out
Hi Tony
Thank You for the reply, I will give this a try. Question the first rule you gave me worked great, however the rule worked with a specified value there's no way to substitute that specified value for a mouse click? just asking...
Vinny
Not sure I understand.
You can select a cell with your mouse, which is a mouse click, and have the cell fill color change.
Hi Tony
YES that is correct. ok let say I click on cell B4 I would like cell A4 to change color! You gave me a very simple rule in the beginning however it needed a value to change color state I would like instead of a Value just a mouse click to change the color state is this possible in a rule? As far as the Private Sub Sheet lol I don't fair very well.
Vinny
Can you be more specific?
It sounds like you simply want to select a cell in some range and when selected, have that cell fill color change.
Is that what you want to do? Tell us the EXACT range that this should apply to.
This can not be done using conditional formatting. You have to use an event macro.
Hi Tony
If that is the case I'm not good with event macro's. But just to make sure were on the same page you gave me this earlier =B$6=1 that rule worked great, now can I replace =B$6=1 with =B$6=mouse click that is what I'm getting at is that possible without the event macro??
Vinny
Short answer, no.
Hi Tony
OK THANK YOU SO MUCH for your VALUBULE HELP you have been very patient with me on this again thank you....
Vinny
![]()
You're welcome!
Good luck!![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks