Formula Question

Lambada

Board Regular
Joined
May 10, 2002
Messages
62
What formula do I use if I want A1 to equal or copy just the fill color of A2?

Thank you.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
No, that does not work. Sorry, I failed to mention that A2 is conditionally formatted to change color.
This message was edited by Lambada on 2002-08-24 11:22
 
Upvote 0
On 2002-08-24 11:09, Lambada wrote:
What formula do I use if I want A1 to equal or copy just the fill color of A2?

Thank you.

does this help?


Sub Macro2()
With ActiveCell
Range("A6").Copy
Selection.PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End With
End Sub

I used Macro recorder and then cleaned up the information.
 
Upvote 0
Thanks Dave, but what I want is a formula. I want the color to change instantly when A2 changes. Can it be done?
 
Upvote 0
On 2002-08-24 11:40, Lambada wrote:
Thanks Dave, but what I want is a formula. I want the color to change instantly when A2 changes. Can it be done?

Conditional format that cell based on the same criteria that you used to conditional format the first cell.

With the two cells selected, Conditional Format Formula (use relevant formula to replace =$A$2<10)

HTH Dave
This message was edited by Dave Patton on 2002-08-24 11:48
 
Upvote 0
Lambada,

In addition to Dave's answer, you can also use absolute reference to your original formula in conditional formatting and copy the cell with the orignal formatting, click on the cell or cells you want and go to Edit/Paste Special/Format
 
Upvote 0

Forum statistics

Threads
1,214,384
Messages
6,119,201
Members
448,874
Latest member
Lancelots

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