Keep first word of cell - but ignore if cell only contains one word

kradclayton

New Member
Joined
Oct 2, 2020
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have to do some VLOOKUP formulas and need to isolate words that I can match between two workbooks.

I am using the below formula to isolate the first word in the cell - example "Camelot Cement Wallpaper"
=LEFT(B2,FIND(" ",B2)-1)
I am left with "Camelot"

Which is working great, but I do have some instances where in the cell B2 there is only one word and so it returns a #VALUE! - is there an IF formula I can use to ignore cells that only have one word, or to keep that one word somehow?

Thanks
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi,

Try these:

Book3.xlsx
ABC
1Keep Single wordIgnore Single word
2CamelotCamelot Cement WallpaperCamelot
3CastleCastle 
4CastleCastle CarpetCastle
Sheet718
Cell Formulas
RangeFormula
A2:A4A2=LEFT(B2,FIND(" ",B2&" ")-1)
C2:C4C2=IFERROR(LEFT(B2,FIND(" ",B2)-1),"")


Use A2 formula to Keep Single Word entries in B Column, Use C2 formula to Ignore.
 
Upvote 0

Forum statistics

Threads
1,215,487
Messages
6,125,085
Members
449,206
Latest member
ralemanygarcia

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