Extract Text From Nth Occurrence of a Space in a Cell

preview_player
Показать описание
Extract text from the nth occurrence of a space in a cell.

This video looks at how to extract some text from another cell by looking for the 3rd occurrence of a space in the cell. The characters we want to extract occur after the 3rd space within the cell.

By using the MID function along with FIND and SUBSTITUTE we can achieve this complex operation. Once written this will work for all the records in a list.

Find more great free tutorials at;

*** Online Excel Courses ***

Connect with us!

Рекомендации по теме
Комментарии
Автор

Excellent tutorial, Computergaga, the explanation can't be clearer. Thanks for sharing your knowledge!!

aguerojg
Автор

Super helpful! Very easy to follow and understand - thank you

veritymorris
Автор

THANK YOU! This is the ONLY video that has helped!

sandivant
Автор

a 7-year-old video I stumbled upon which helped me immensely! thank you!

babiechad
Автор

This video was awesome. Normally these tutorials bore me a bit... This one was so entertaining, haha. Love your energy!

arq.gabrielamartinez
Автор

What a great solution suggested. Thanks a lot. I had been working hard to solve such issues. In spite of my many years of experience, mathematical skills I could never find a right solution. I have developed formulas but they are very clumsy and involving so many columns. Sir, Thanks a lot as it is solved in just one statement. Excellent Tutorial

harshadvegda
Автор

Nice approach Computergaga.
Before assist your video until the end, I tried my own approach where I should extract all the text before the numbers. So this was the formula I came up.
{=left(A1, small(if(--(mid(A1, row(indirect("1:"&len(A1))), 1)=" ")*row(indirect("1:"&len(A1)))=0, " ", row(indirect("1:"&len(A1)))), 3)-1)}

BTW nice accent. I had no problem to understand you.

vandalo
Автор

Oh, thanks Computergaga. Thank God, I found this video. I was looking for this for several days. The trick you shared with us is really helpful. Keep up the sharing!

jtr
Автор

What about if the "3" isn't fixed.... but it could be; 3, 5, 12, 1, 4 spaces from the left?

alexstrassel
Автор

came for the lesson stayed for the accent. this is brilliant and helpful; you approached it with the right attitude.

bayareanonsense
Автор

This is great thanks for replying so quickly. Do you know how to do exactly this but with a Regextract formula? This formula doesn't translate well to Google data studio unfortunately

kinkineki
Автор

One question here we are hard coding the number of characters to be extracted to 2. If my length is varying, how to make it dynamic. Like i have numbers like 38, 532, 6554. I want the code to extract these.

soumyamohapatra
Автор

Thanks.. Your video really helped me a lot. But what if the length of the extracted data is variable. We cannot put 2 in that case. Please help!!

ankanjyoti
Автор

Thanks sir, very helpful video. But I want to know whether we can extract more than one word. You have taught to extract one word from the middle of a line, in this video, but I want to get more than one word from a line.

kameshsharma
Автор

Hi Computergaga, i am in need of some help, on this topic. the video gives a perfect explanation of how to get the information that i need from the string of text. but my string of text gets generated online, and will be refreshed daily where the numbers that i need extracted from the text will also change, in the way that the numbers get larger daily. is there a way to setup the formula so that it will automatically extract the number no matter how many characters it is?

janlaubscher
Автор

Howdo you extract first, middle, last names and suffix such as Jr. into separate columns. Not everyone has a suffix nor does everyone have a middle name?

robertbarker
Автор

Good job, but maybe you need a certain text like 3542 or 5 .... there you go as an assist to this problem :
=SUMPRODUCT(MID(0&A2, LARGE(INDEX(ISNUMBER(--MID(A2, ROW(INDIRECT("1:"&LEN(A2))), 1)) * ROW(INDIRECT("1:"&LEN(A2))), 0), ROW(INDIRECT("1:"&LEN(A2))))+1, 1) *

jumbyto
Автор

Hello. Instead of extracting, what function would you use to delete those two characters?

GilCuriously
Автор

sir I have some problem in excel I have a hudge data of names that is one lakh plus I want to found those names which have no space

imranali-iywk
Автор

If number start with on letter also please

majeedkhan