Jump to content
Brewer Fanatic

Excel functions


ryne100
Posted
Ok usually I'm good at this kind of thing, but I cannot find the code for this. I need the names in my spreadsheet to go from First Last to Last, First. I'm fairly certain you can do this in access, but I can't figure out how to in Excel. Any ideas?

Recommended Posts

Posted

Well not sure I can help

 

You could try exporting it as a space delineated text file and the reimporting it to get the names into separate cells and go from there. Of course if you have a bunch of workbook dependent things going on that isn't much help.

Posted

This assumes that the first and last name is separated by a space and there are no other spaces. Also, if the last name is greater than 10 characters, it will only return the first 10. The name is in the A1 cell:

 

=CONCATENATE(MID(A1,FIND(" ",A1,1)+1,10),", ",LEFT(A1,FIND(" ",A1,1)-1))

 

As always, there is probably a better way to do this.

Posted
I just needed it once for a set of data, so I ran the macro that some guy posted online. Not easier at all, but it got it done.

Archived

This topic is now archived and is closed to further replies.

The Twins Daily Caretaker Fund
The Brewer Fanatic Caretaker Fund

You all care about this site. The next step is caring for it. We’re asking you to caretake this site so it can remain the premier Brewers community on the internet. Included with caretaking is ad-free browsing of Brewer Fanatic.

×
×
  • Create New...