Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default Find text in cell and copy from 4 characters in front of the found text.

Hi guys,

I am trying to Find specific text in a cell (2014) as it happens and require to copy from 4 characters in front of the found text so example.

Cell K6 contains A01677623022014AH014302BOX3 8ED

I want to find 2014 and past from 23022014 into another cell.

Any ideas how I can do this.

The numbers of characters in the cell changes daily and 2014 is the only constant (untill 2015 that is)

regards
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Find text in cell and copy from 4 characters in front of the found text.

Hi,

Am Thu, 20 Feb 2014 14:51:03 +0000 schrieb dgenty:

Cell K6 contains A01677623022014AH014302BOX3 8ED

I want to find 2014 and past from 23022014 into another cell.


try:
=IF(ISNUMBER(FIND(2014,K6)),MID(K6,FIND(2014,K6)-4,8),"")


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Find text in cell and copy from 4 characters in front of the found text.

Hi,

Am Thu, 20 Feb 2014 16:58:17 +0100 schrieb Claus Busch:

=IF(ISNUMBER(FIND(2014,K6)),MID(K6,FIND(2014,K6)-4,8),"")


or:
=IFERROR(MID(K6,FIND(2014,K6)-4,8),"")


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
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
Find numeric characters found within cell text and convert tohyperlink CJ Excel Programming 1 November 28th 07 12:42 AM
Need to find particular string within cell text, if found a value is copied [email protected] Excel Programming 4 November 15th 06 09:14 PM
Find text String and select cell address where it is found? JCIrish Excel Programming 5 April 16th 06 02:38 PM
Search for text, copy the number in front of text w0cyru01 Excel Programming 4 August 3rd 05 05:15 PM
open some txt files ,find text , copy the text before that to a single cell gus Excel Programming 2 July 11th 05 05:40 PM


All times are GMT +1. The time now is 05:41 AM.

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

About Us

"It's about Microsoft Excel"