Conditionally copy columns

Solved/Closed
GMHerbs Posts 2 Registration date Wednesday February 4, 2015 Status Member Last seen February 4, 2015 - Feb 4, 2015 at 10:26 PM
GMHerbs Posts 2 Registration date Wednesday February 4, 2015 Status Member Last seen February 4, 2015 - Feb 4, 2015 at 10:56 PM
Hello, I have a table with thousands of rows of text. Column B has errors in the data which I have fixed in column C (has many blank cells). I would like to copy the data from column B into column D unless there is a value in column C, in which case I would like to copy the data in column C. I've tried several formulas to no avail. Any help would be greatly appreciated.
Thanks

1 response

RayH Posts 122 Registration date Tuesday August 31, 2010 Status Contributor Last seen June 20, 2016 26
Feb 4, 2015 at 10:31 PM
Could it be a simple as this?

=IF(C2<>"",C2,B2)

Put this is D2 and drag it down.

Bear in mind that the column will still contain a formula, so to make sure you have the actual values copy the cells from D and then in another column PasteSpecial values.
1
GMHerbs Posts 2 Registration date Wednesday February 4, 2015 Status Member Last seen February 4, 2015
Feb 4, 2015 at 10:56 PM
Haha! Thank you that worked perfectly! Here I was trying much more difficult formulas. Thanks again!
0