Possible IF Formula required...

Tingle

New Member
Joined
Dec 21, 2016
Messages
47
Hi All,

I have been tasked to prep a large amount of data for mail merge.

However I am faced with this challenge.

Can anyone help me, I am thinking an IF statement may work...

Here is a snap shot of the basic data (Not real data)

A B C D E F G H
1 Title Initial LastName JointTitle JointInitial JointLastName RelationshipType Mail Merge Names
2 Mrs A Field ?
3 Mr J Delph Mrs B Delph Spouse ?


Ideally I need the outcome to reflect Mr J & Mrs B Delph, is this possible?

If not then a formula to show Mr J Delph & Mrs B Delph.

And then if the client has no partner, the outcome will just show Mrs A Field.

Thanks

Tingle
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Sorry I included the first person's surname if it was joint.
Try:

Code:
=IF(D3="",A3&" "&B3&" "&C3,A3&" "&B3&" & "&D3&" "&E3&" "&F3)
 
Upvote 0
If you have Excel 2016 through Office 365, then here is another option.


Book1
ABCDEFGH
1TitleInitialLastNameJointTitleJointInitialJointLastNameRelationshipTypeMailMergeNames
2MrsAFieldMrs A Field
3MrJDelphMrsBDelphSpouseMr J & Mrs B Delph
Concat names
Cell Formulas
RangeFormula
H2=TEXTJOIN(" ",1,A2:B2,IF(D2="","","&"),D2:E2,C2)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

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