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
[TABLE="class: grid, width: 100, align: left"]
<TBODY>[TR]
[TD]34407211756830[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]000 Staples IV[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]RC 636 <=587[/TD]
[/TR]
[TR]
[TD]34407212013659[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]WI RC 636 w/N[/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]











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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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