How to make a sentence an array of words

landish

New Member
Joined
Sep 27, 2010
Messages
12
I have a sentence in a cell i.e. "The weather is nice today". I'd like to make it an array of words like this: {"The","weather", "is", "nice", "today"}. Any idea or help on this problem will be appreciated. Thank you!
 

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.
Perhaps:-
Rich (BB code):
Dim wds As Variant
'Place "A1" into array Wds
wds = Split(Range("a1"), " ")
'Enter array on Row 2
Range("A2").Resize(, UBound(wds) + 1) = wds
'Join Array and place in "A3"
Range("A3") = Join(wds, " ")
'Or perhaps this
Range("A4") = """" & Replace(Range("A1"), " ", """,""") & """"
 
Upvote 0
Thank you MickG! Is there any way to complete this by formula functions? It would be great to solve the problem this way. Thanks

Perhaps:-
Rich (BB code):
Dim wds As Variant
'Place "A1" into array Wds
wds = Split(Range("a1"), " ")
'Enter array on Row 2
Range("A2").Resize(, UBound(wds) + 1) = wds
'Join Array and place in "A3"
Range("A3") = Join(wds, " ")
'Or perhaps this
Range("A4") = """" & Replace(Range("A1"), " ", """,""") & """"
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,726
Members
452,939
Latest member
WCrawford

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