Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in


How to copy one filled color only to a range in Excel?

In some cases, you may need to copy a cell’s filled color only to a range cells, but there is no paste option that can help you only paste the cell’s filled color in Excel. You may think of finding the same color from the Fill color list, but if the color cannot be directely found how can you do? Here I will introduce some tricks for you to quickly copy the cell color only and paste to a range in Excel.

Copy cell backgroud color only to a range with VBA

Quickly copy cell backgroud color only to a range with Copy Cell Formatting good idea3

Count by Color

In some cases, you may have a range of calues with multiple colors, and what you want is to count/sum values based on same color, how can you quickly calculate?
With Kutools for Excel's Count by Color, you can quickly do many calculations by color, and also can generate a report of the calculated result.
doc count by color

Excel Productivity Tools

Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial

Kutools for Excel: Save 70% of your time and solve 80% Excel problems for you. 300+ advanced features designed for 1500+ work scenario, make Excel much easy and increase productivity immediately. 60-day Unlimited Free Trial

arrow blue right bubble Copy cell backgroud color only to a range with VBA

Kutools for Excel, with more than 120 handy Excel functions, enhance your working efficiency and save your working time.

In Excel, you only can use the VBA code to only copy a cell filled color.

Before running the VBA, you should know the number of the color you need to copy in the color list.

doc copy fill color 1

1. Press Alt + F11 to open Microsoft Visual Basic for Application window, and then click Insert > Module, then paste below VBA to the new Module window.

VBA: Copy one cell filled color only.

Sub color1()
Dim i As Integer
i = InputBox("Enter the colour number")Range("D1:F6").Interior.ColorIndex = i
End Sub

Tip: In the VBA, you can change the cell range as you need Range("D1:F6").Interior.ColorIndex = i.

2. Press F5 key to run this VBA. Then in the popping dialog, type the relative number of color into it. See screenshot:

doc copy fill color 2

3. Click OK. The range has been filled with the 17th color.

doc copy fill color 3

But with this VBA, you only can use the color on the color list, if the color is out of the list, it cannot work. So let’s move to another efficient method.

arrow blue right bubble Quickly copy cell backgroud color only to a range with Copy Cell Formatting

With Kutools for Excel’s Copy Cell Formatting feacture, whatever the color, it can help you quickly copy it only and paste it to other cells.

Kutools for Excel, with more than 120 handy Excel functions, enhance your working efficiency and save your working time.

Free install Kutools for Excel and then follow below steps:

1. Select the cell you need to copy its filled color, click Kutools > Format > Copy Cell Formatting. See screenshot:

doc copy fill color 4

2. In the Copy Cell Formatting dialog, check Interior color/shading only. See screenshot:

doc copy fill color 5

3. Click Ok, and select the cells you need to paste this color. See screenshot:

doc copy fill color 6

4. Click OK. The selected range is filled same color.

doc copy fill color 7

With Copy Cell Formatting feature, you also can copy the whole cell formatting, copy the cell font color only and so on.

pay attention1If you are interested in this addi-in, click here to download the 60-days free trial.

Excel Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 70%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 80% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.