ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   combine 2 columns (https://www.excelbanter.com/excel-discussion-misc-queries/144961-combine-2-columns.html)

Omar

combine 2 columns
 
Dear Expert,
I have three columns one contain the name of 10 patients, the second
one contain the age of 5 patients , P1, P3 , P4 ,P6 , and P10 , the
third column contain the age or the rest patients ( P2,P5,P7,P8, and
P9).
The question is, how can I combine columns 2 and 3 in one?
Thanks.


Mike H

combine 2 columns
 
Hi,

To combine in column 2.

Select column 3 and right click and copy.
Select column 2 and then Edit|paste special|add and click Ok.
Delete column 3.

Mike

"Omar" wrote:

Dear Expert,
I have three columns one contain the name of 10 patients, the second
one contain the age of 5 patients , P1, P3 , P4 ,P6 , and P10 , the
third column contain the age or the rest patients ( P2,P5,P7,P8, and
P9).
The question is, how can I combine columns 2 and 3 in one?
Thanks.



MartinW

combine 2 columns
 
Hi Omar,

One way
Assuming your data is in columns A,B and C then in D1
put =IF(C1="",B1,C1) and drag down as far as needed
then delete columns B and C

This also assumes that, if there is a value in column B, then
there is no value in column C and vice versa.

HTH
Martin



"Omar" wrote in message
ups.com...
Dear Expert,
I have three columns one contain the name of 10 patients, the second
one contain the age of 5 patients , P1, P3 , P4 ,P6 , and P10 , the
third column contain the age or the rest patients ( P2,P5,P7,P8, and
P9).
The question is, how can I combine columns 2 and 3 in one?
Thanks.





All times are GMT +1. The time now is 10:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com