Convert the order the first and last name is written via formula

polska2180

Active Member
Joined
Oct 1, 2004
Messages
345
driving and looking at the forum I see many of you enjoy the challenge...ty for the help i will test out shortly
 

polska2180

Active Member
Joined
Oct 1, 2004
Messages
345
Taking a different approach to the combined formula, this one looks like it works.

=SUBSTITUTE(MID(A1&", "&A1,FIND(" ",A1,14)+1,LEN(A1)+1),"Driver Name: ","")
This one worked all the way up to where I found a few records saying: Driver Name: None
 

polska2180

Active Member
Joined
Oct 1, 2004
Messages
345
You guys are awesome, multiple suggestions worked...ty.

for my none issue above i will just put an if statement that will be an easy fix.
 

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
7,149
Office Version
2019
Platform
Windows
This one worked all the way up to where I found a few records saying: Driver Name: None
Depends what you want to see when that happens.

=SUBSTITUTE(MID(A1&", "&A1,IFERROR(FIND(" ",A1,14)+1,1),LEN(A1)+1),"Driver Name: ","")

or

=IFERROR(=SUBSTITUTE(MID(A1&", "&A1,FIND(" ",A1,14)+1,LEN(A1)+1),"Driver Name: ",""),"")

are just 2 ways of dealing with it.
 

Forum statistics

Threads
1,081,706
Messages
5,360,769
Members
400,595
Latest member
T_Dubs

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top