Extracting words

Adrac

Active Member
Joined
Feb 13, 2014
Messages
280
Office Version
  1. 365
Platform
  1. Windows
Hello All,

I have a cell A1 that has more than 4 words in a cell. is there a formula to extract the first 4 words to B1?

Cell example: DR GREEN POSSITION TOTAL FINAL COMPLETE

Adrac
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Re: Extacting words

Thank you to everyone for their input, they are all work fine so ill use one.

Thanks again

Adrac
 
Upvote 0
Re: Extacting words

Is this what you need?

=TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",200)),200,800))[/QUOTE

That seems to extract words 2, 3, 4 and 5.
István should have written it either this way...

=TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",200)),1,800))

or this way...

=TRIM(MID(SUBSTITUTE(" "&A1," ",REPT(" ",200)),200,800))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,525
Messages
6,120,051
Members
448,940
Latest member
mdusw

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