Copy and Paste Cell Based on Conditions

drmingle

Board Regular
Joined
Oct 5, 2009
Messages
229
I am not really sure the best way to go about this:

I have data in columns A and B.
If the data is in column A it will not be in column B.

My objective is to move the data in column A to column B, as long as it is not a number with the color yellow in the cell.

The data displays as follows:
**SPECIAL NOTE: Cells with 34407211756830 and 34407212013659 have yellow cells.
Column A Column B
34407211756830
000 Staples IV
RC 636 <=587
34407212013659
WI RC 636 w/N

<TBODY>
</TBODY>











I thought it would be possible to copy over everything in column A to B, exluding by cell color and if the cell was empty OR,
I thought it would be possilbe to copy over everything with cells that made use of a " " (space) for example "000 Staples IV" actually has 2 spaces present.

Of course, I would need the routine to cycle through each column until it hit the end of the data in column A.

Thanks in advance for your help.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Curious to know if one should use the function find(" ") to locate cells with space and if that was true to simply cut.paste to column B in corrosponding cell?
 
Upvote 0

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
Latest member
bsb1122

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