manipulate order of text in cell?

jevremovj

Board Regular
Joined
Mar 9, 2002
Messages
101
Hi - I am using Microsoft Office Excel 2003. I am trying to write a formula that takes data in a cell that is in the wrong order then what I need it to be in... and put it in the correct order.

For example, in column P I have names that are in the order of: Last Name, First name... but in order for my other lookup formulas to work... I need to write a formula in column BB that translates what is in column P to be: First Name Last name (ie. result would be Frank Jones instead of Jones, Frank).

Any advice would be appreciated.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Try this

Assuming your name formatted last name, first name is in cell P1

The formula you would enter in cell BB1 would be:
=MID(P1,FIND(", ",P1)+2,LEN(P1))&" "&LEFT(P1,FIND(", ",P1)-1)
 
Upvote 0
Thanks! the mid formula works perfectly (I tweaked the reference near the end of the formula above which says "AP1" to be "P1" and it worked... wasn't sure if it was supposed to be P1, but it worked.
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,614
Members
449,091
Latest member
gaurav_7829

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