Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Extracting Text From Right To Left - MID & FIND

Lars-Åke Aspelin wrote:
On Wed, 6 Jan 2010 08:15:01 -0800, Gary Brown
wrote:

Assuming your data is in cell A1 ...
=MID(A1,(FIND(" ",A1,(FIND("h",A1))-11))+1,(FIND("h",A1))-(FIND("
",A1,(FIND("h",A1))-11))-1)

should do it.


This formula relies on that there is only one " " within the 11
characters immediate to the left of "h". But we don't know that, do
we?

Lars-Åke



Use the formula I posted on one of Brenda's other threads:


=TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",99)),
FIND("h",SUBSTITUTE(A1," ",REPT(" ",99)))-99,99))

Will work unless the text prior to the "h" is more than 99 characters.
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
Extracting Text From Right To Left - MID & FIND Brenda Excel Worksheet Functions 0 January 6th 10 01:44 PM
FIND from right to left instead of left to right David Excel Worksheet Functions 8 November 23rd 09 07:23 PM
Extracting information to automatically find previous value. Rocko Excel Worksheet Functions 3 June 15th 09 04:26 AM
Help putting left, right, find and len together Glenda Excel Discussion (Misc queries) 5 October 11th 08 11:25 AM
Find text within cell then display text to left Jambruins Excel Discussion (Misc queries) 5 April 17th 06 10:01 PM


All times are GMT +1. The time now is 09:00 AM.

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"