Copy cells and paste in a different sheet based on cell background color

Brutusar

Board Regular
Joined
Nov 23, 2019
Messages
166
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a sheet A where different data have different "location" on the sheet, rather unstructured. ( Well, I have many, but let me stick to one for now) I need to structure the data into 14 different columns in a second sheet, B.

The easiest way for me to do this will be to analyze sheet A and give cells specific background colour based on what data it holds. Then loop thru each row, check the background colour for each cell, copy each cell to a specific column based on the background colour, and paste it in the "next free row" for that column.

The issue here is that there will be 14 different background colours, and it may be up to 500 rows in sheet A.

Any good ideas on how to do this and keep the speed up?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi,​
do not expect speed with Excel for purposes it was not designed for ! (50+ times slower than any database software !)
As copying cell by cell according to a background color is maybe the slowest way …​
First try manually a filter by color to see if it could work in order to copy at once filtered data, should be faster under VBA …​
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,113,999
Members
448,543
Latest member
MartinLarkin

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