Formula ? Need to pull first name only from other sheet?

zone709

Well-known Member
Joined
Mar 1, 2016
Messages
2,079
Office Version
  1. 365
Platform
  1. Windows
='Time Sheet'!C8

So I use this and it will return Super - Local 14 right.

What I'm looking for it to only pull the first word Super.

Any help thanks.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
This will work for the example that you shared

=LEFT('Time Sheet'!C8,FIND(" ",'Time Sheet'!C8)-1)
 
Last edited:
Upvote 0
Perfect only issue I ran into if the cell has one word. It wont work and return #Value. Can we add something in there to recognize both. If Super alone. Return Super and if Super - Local 14 or whatever etcccc retun First word Super?

Thanks
 
Upvote 0
Perfect only issue I ran into if the cell has one word. It wont work and return #Value. Can we add something in there to recognize both. If Super alone. Return Super and if Super - Local 14 or whatever etcccc retun First word Super?

Thanks

The formula that I posted returns everything to the left of the first space. If there is no space, the formula will not work. Can C8 be anything other than "Super -..." or "Super"? If so, you will have to share some more examples so that we can make the formula more robust.

If those are the only two instances, try the following.

=IFERROR(LEFT('Time Sheet'!C8,FIND(" ",'Time Sheet'!C8)-1),"Super")
 
Upvote 0
Hi yeah its gonna be all different names so examples I can run into these examples below. I need though to pull in first name only regardless if the name is alone or with anything. Examples

Super = Super
Super Local 14 = Super
Carpenter - Local 15 = Carpenter
Cement Foremen = Cement

So the first formula works fine. I just need it to work also its the word is alone like one word.
 
Upvote 0
Hi yeah its gonna be all different names so examples I can run into these examples below. I need though to pull in first name only regardless if the name is alone or with anything. Examples

Super = Super
Super Local 14 = Super
Carpenter - Local 15 = Carpenter
Cement Foremen = Cement

So the first formula works fine. I just need it to work also its the word is alone like one word.

In that case, try

=IFERROR(LEFT('Time Sheet'!C8,FIND(" ",'Time Sheet'!C8)-1),'Time Sheet'!C8)
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

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