Home

excel merge two columns

%3CLINGO-SUB%20id%3D%22lingo-sub-905665%22%20slang%3D%22en-US%22%3Eexcel%20merge%20two%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-905665%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20data%20file%20of%20contacts%20with%20first%20names%20of%201%20contact%20a%20second%20file%20of%20a%20second%20contact%20-%20if%20there%20is%20one.%20I'm%20doing%20a%20mail%20merge%20and%20wanted%20the%20option%20of%20%22Dear%20Contact1%20%26amp%3B%20Contact2%2C%22.%20But%2C%20not%20all%20have%20a%202nd%20name.%20Is%20there%20an%20if%2Fthen%20formula%20or%20something%20I%20can%20do%20to%20create%20a%203rd%20column%20with%20the%20combined%20names%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-905665%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%20Merge%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-905724%22%20slang%3D%22en-US%22%3ERe%3A%20excel%20merge%20two%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-905724%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F423778%22%20target%3D%22_blank%22%3E%40lcn1986%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20don't%20understand%20why%20you%20would%20want%20to%20add%20an%20if%20condition.%20If%20the%20middle%20name%20is%20empty%2C%20it%20wouldn't%20result%20in%20an%20error%2C%20right%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20could%20try%20this%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CTABLE%20border%3D%221%22%3E%3CTBODY%3E%3CTR%3E%3CTD%3Efirst%20name%3C%2FTD%3E%3CTD%3Esecond%20name%3C%2FTD%3E%3CTD%3Eyour%20formula%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EPaul%26nbsp%3B%3C%2FTD%3E%3CTD%3EPeter%3C%2FTD%3E%3CTD%3E%3DA1%26amp%3B%22%20%22%26amp%3BIF(ISBLANK(B1)%3B%22%22%3BB1)%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3C%2FLINGO-BODY%3E
lcn1986
Occasional Visitor

I have a data file of contacts with first names of 1 contact a second file of a second contact - if there is one. I'm doing a mail merge and wanted the option of "Dear Contact1 & Contact2,". But, not all have a 2nd name. Is there an if/then formula or something I can do to create a 3rd column with the combined names?

1 Reply

@lcn1986 

 

I don't understand why you would want to add an if condition. If the middle name is empty, it wouldn't result in an error, right?

 

You could try this:

 

first namesecond nameyour formula
Paul Peter=A1&" "&IF(ISBLANK(B1);"";B1)
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies