Forum

Notifications
Clear all

Polishing up a project

6 Posts
2 Users
0 Reactions
71 Views
(@jman2018)
Posts: 15
Eminent Member
Topic starter
 

Hi My Online Training Hub Experts,

In my text project, Can you update to put a formula in the prefix column to reflect a prefix such as Mr. Mrs. Miss, Dr. etc.  Also I would like to update the formula in the last name column so that it will have a hypen between two last names, but not between the last name and "Jr. or IV".  I appreciate your help on this issue.  Hope all is well and safe.  Thank you.  Joe, from Michigan.

 
Posted : 15/04/2020 7:19 am
(@purfleet)
Posts: 412
Reputable Member
 

Doesn’t seem to be a great deal to work off

I can’t see a way to assign Mr/Mrs/Miss etc as its not in the data as we don’t even know the sex of the person to have a guess at Ms or Mr.

The Hyphen part is maybe possible but not particularly tidy or effective - the below works out if the last part of the name is less than 4 characters and then insets a - for any names longer.

=IFERROR(IF(LEN([@[Last Name]])-FIND(" ",[@[Last Name]])>4,SUBSTITUTE([@[Last Name]]," ","-"),""),"")

So, if we have a name like Smith Ike this would miss them out and also not sure if Mark Gorteski Junior should be hyphenated or not?

Purfleet

 
Posted : 15/04/2020 5:09 pm
(@jman2018)
Posts: 15
Eminent Member
Topic starter
 

Hi Purfleet,

Thanks for responding to my post.  I'll add the Mr. and Mrs, etc to the data.  The formula you provided me resulted in a 0 in the last name column.  Joe, from Michigan.

 
Posted : 15/04/2020 6:14 pm
(@purfleet)
Posts: 412
Reputable Member
 

It cant go in the Last Name column as that is the columns with the starting data. I put it at the end.

 
Posted : 16/04/2020 7:56 am
(@jman2018)
Posts: 15
Eminent Member
Topic starter
 

Thanks Purfleet for your help and time.....works good.

 
Posted : 16/04/2020 8:31 am
(@purfleet)
Posts: 412
Reputable Member
 

No problems, but be careful with it - its not a perfect fix

 
Posted : 16/04/2020 4:56 pm
Share: