Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default what is a good/best formula to extract the 3rd last word in cell A1 into cell C1

My example/problem"

A1
"1167 Belle Plaine Ave. Gurnee IL 60031"

C1
I want:
"Gurnee"


Thanks in advance.

Sincerely,
Kevin Waite


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default what is a good/best formula to extract the 3rd last word in cell A1 into cell C1

Hi Kevin
using two helper columns (to make the formulas not that complicated)
try
B1:
=SUBSTITUTE(SUBSTITUTE(A1," ","#",LEN(A1)-LEN(SUBSTITUTE(A1,"
",""))-2)," ","^",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))-2)

C1:
=MID(B1,FIND("#",B1)+1,FIND("^",B1)-FIND("#",B1)-1)

--
Regards
Frank Kabel
Frankfurt, Germany

"Kevin Waite" schrieb im Newsbeitrag
news:nHAcc.84942$JO3.44011@attbi_s04...
My example/problem"

A1
"1167 Belle Plaine Ave. Gurnee IL 60031"

C1
I want:
"Gurnee"


Thanks in advance.

Sincerely,
Kevin Waite



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default what is a good/best formula to extract the 3rd last word in cell A1 into cell C1

http://www.cpearson.com/excel/excelF.htm#Words

Chip Pearson's formulas on extracting words from a string.

--
Regards,
Tom Ogilvy

"Kevin Waite" wrote in message
news:nHAcc.84942$JO3.44011@attbi_s04...
My example/problem"

A1
"1167 Belle Plaine Ave. Gurnee IL 60031"

C1
I want:
"Gurnee"


Thanks in advance.

Sincerely,
Kevin Waite




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
a cell contain formula, how to extract value of that cell gdkons Excel Worksheet Functions 1 January 23rd 10 11:01 AM
Extract portion of formula resident in a cell JASelep Excel Worksheet Functions 2 August 29th 07 04:25 PM
how to extract data from a cell in a formula in another cell vidhya Excel Worksheet Functions 1 October 17th 05 04:31 PM
How I can to extract a formula from other Cell Function? Tinjano Excel Discussion (Misc queries) 1 May 15th 05 08:24 PM
Extract the first word from a cell? Adam Cole Excel Discussion (Misc queries) 6 December 22nd 04 07:01 PM


All times are GMT +1. The time now is 04:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"