Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 318
Default extract date if count formula

Hello in cell Q2 I have the following information
EXT 1/5/08 RIVERS in cell "AT" I have
=IF(COUNT(FIND("/",Q2)),--MID(Q2,FIND("/",Q2)-3,8),"") but I get #VALUE!

what I want to do is extract the date, thanks for your help

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default extract date if count formula

Hi

Try this. It should format as a date but if not then set the date format you
need.

=RIGHT(LOOKUP(10^23,--LEFT(MID(Q2,MIN(FIND({0,1,2,3,4,5,6,7,8,9},Q2&"012 3456789")),99),ROW($1:$99))),6)+0

Mike

"Wanna Learn" wrote:

Hello in cell Q2 I have the following information
EXT 1/5/08 RIVERS in cell "AT" I have
=IF(COUNT(FIND("/",Q2)),--MID(Q2,FIND("/",Q2)-3,8),"") but I get #VALUE!

what I want to do is extract the date, thanks for your help

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 60
Default extract date if count formula

With
Q2: EXT 1/5/08 RIVERS

This might work for you...(formatted as a date)
=IF(COUNTIF(Q2,"*/*"),--TRIM(MID(Q2,FIND("/",Q2)-2,8)),"")

In the above example, the formula returns: 01/05/08

Is that something you can work with?

Regards,

Ron Coderre
Microsoft MVP (Excel)

"Wanna Learn" wrote in message
...
Hello in cell Q2 I have the following information
EXT 1/5/08 RIVERS in cell "AT" I have
=IF(COUNT(FIND("/",Q2)),--MID(Q2,FIND("/",Q2)-3,8),"") but I get
#VALUE!

what I want to do is extract the date, thanks for your help

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default extract date if count formula

The problem is you have a blank space AND a character that looks like a
blank, but isn't (it has ASCII code 160... you probably got your text from a
website I'm guessing). Anyway, this formula should work for you...

=IF(COUNT(FIND("/",Q2)),--TRIM(SUBSTITUTE(MID(Q2,FIND("/",Q2)-3,8),CHAR(160),"")),"")

--
Rick (MVP - Excel)


"Wanna Learn" wrote in message
...
Hello in cell Q2 I have the following information
EXT 1/5/08 RIVERS in cell "AT" I have
=IF(COUNT(FIND("/",Q2)),--MID(Q2,FIND("/",Q2)-3,8),"") but I get
#VALUE!

what I want to do is extract the date, thanks for your help


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, count and extract duplicate cells Igby Excel Worksheet Functions 1 December 9th 07 06:42 PM
Extract Date from Right Formula [email protected] Excel Worksheet Functions 3 July 18th 06 11:41 PM
Extract Date christmaslog Excel Worksheet Functions 1 February 19th 06 10:28 AM
Formula for If Term is on Certain Date then Count Krisjhn Excel Worksheet Functions 3 August 30th 05 07:57 PM
extract date from the most current date Cali00 Excel Discussion (Misc queries) 1 April 13th 05 02:05 PM


All times are GMT +1. The time now is 12:36 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"