![]() |
|
#1
|
|||
|
|||
![]()
This is a very broad question which I don't think has a right answer.
Excel offers so many attributes... To name a few...
In cell A1 Jeffrey Brown If you wanted to return the first name, we could use... =LEFT(A1,7) But the 7 is hard coded. To make it dynamic based on the length of the name, you could use...=LEFT(A1,FIND(" ",A1)) But that returns 8 for Jeffrey and it should be 7. So now an option is...=TRIM(LEFT(A1,FIND(" ",A1))) So you can see, we have used three fuctions to build a robust formula, but there are other ways to accomplish this. An easier method could be...Text to Columns Quote:
Here is a good link to get you started in your quest... https://www.mrexcel.com/forum/genera...ml#post3604871 Maybe you weren't looking for this much information, but hopefully it helps in some way... |
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
step10 | Word VBA | 1 | 11-15-2013 07:42 AM |
![]() |
funkyfido | Excel Programming | 8 | 10-01-2013 03:33 PM |
Beginner VBA | funkyfido | Excel | 1 | 08-27-2013 11:35 AM |
![]() |
Biofodder | Word VBA | 1 | 03-14-2011 01:49 AM |
![]() |
Leeroy4022 | Word VBA | 2 | 02-25-2011 02:16 AM |