Return First and Last Name/Whole Number

LEFT, RIGHT, MID, LEN, FIND


To find the whole number:

1) Use LEFT function because whole number is left of the decimal

2) FIND position of decimal and then subtract 1 (this will allow user to return everything before the decimal)


To find the first name:

1) Use LEFT function because first name is left of the space

2) FIND position of space and then subtract 1 (this will allow user to return everything before the space)


To find the last name:

1) Use the RIGHT function because last name is right of the space

2) Find the length of the full name using LEN function

3) FIND position of space

4) Subtract and get difference between length of full name and position of space (the full length minus characters spots the first name and space is using will result in the number of spots the last name is using)


Comments

Popular posts from this blog

GETPIVOTDATA

Ranking of UC Schools from Top 110 Ranked National Universities of 2024

Xlookup specific value in the middle of a string