Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default parse cell contents

I am trying to parse the contents of a specific cell to make sure that
the cell contains only a date, or the text "F1", or "f1", or both, a
date -and- "F1" or "f1".
The "F1" language can sometimes be: F1,F2,F3

I'm sorry I don't have any code to post, I haven't gotten anything to
work yet.

Thanks in advance,
RC

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default parse cell contents

Please restate what is acceptable.

are you saying F and any number so that F1 symbolizes F and any single
digit number?

or are you saying the cell could actually contain all of "F1,F2,F3"

and if so, then how does that relate the 4 conditions you stated (of which
it matches none).

If it contains a date and more, will the date always be first.

--
Regards,
Tom Ogilvy



" wrote:

I am trying to parse the contents of a specific cell to make sure that
the cell contains only a date, or the text "F1", or "f1", or both, a
date -and- "F1" or "f1".
The "F1" language can sometimes be: F1,F2,F3

I'm sorry I don't have any code to post, I haven't gotten anything to
work yet.

Thanks in advance,
RC


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default parse cell contents

I plan to format the cell with a date format, which works well if the
user enters only a date, but sometimes the users may need to enter a
footnote also. The data can look like:
12/25/06 or
12-25-06 or
12/15/06 F1 or
12/15/06 F1,F2,F3,F4,F5,F6 or
12-25-2006 f1,f2

etc.


Tom Ogilvy wrote:
Please restate what is acceptable.

are you saying F and any number so that F1 symbolizes F and any single
digit number?

or are you saying the cell could actually contain all of "F1,F2,F3"

and if so, then how does that relate the 4 conditions you stated (of which
it matches none).

If it contains a date and more, will the date always be first.

--
Regards,
Tom Ogilvy



" wrote:

I am trying to parse the contents of a specific cell to make sure that
the cell contains only a date, or the text "F1", or "f1", or both, a
date -and- "F1" or "f1".
The "F1" language can sometimes be: F1,F2,F3

I'm sorry I don't have any code to post, I haven't gotten anything to
work yet.

Thanks in advance,
RC



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default parse cell contents

I'll let Ron give you a regular expressions solution since he will whether I
answer or not.

--
Regards,
Tom Ogilvy


" wrote:

I plan to format the cell with a date format, which works well if the
user enters only a date, but sometimes the users may need to enter a
footnote also. The data can look like:
12/25/06 or
12-25-06 or
12/15/06 F1 or
12/15/06 F1,F2,F3,F4,F5,F6 or
12-25-2006 f1,f2

etc.


Tom Ogilvy wrote:
Please restate what is acceptable.

are you saying F and any number so that F1 symbolizes F and any single
digit number?

or are you saying the cell could actually contain all of "F1,F2,F3"

and if so, then how does that relate the 4 conditions you stated (of which
it matches none).

If it contains a date and more, will the date always be first.

--
Regards,
Tom Ogilvy



" wrote:

I am trying to parse the contents of a specific cell to make sure that
the cell contains only a date, or the text "F1", or "f1", or both, a
date -and- "F1" or "f1".
The "F1" language can sometimes be: F1,F2,F3

I'm sorry I don't have any code to post, I haven't gotten anything to
work yet.

Thanks in advance,
RC






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default parse cell contents

On Mon, 18 Sep 2006 12:28:01 -0700, Tom Ogilvy
wrote:

I'll let Ron give you a regular expressions solution since he will whether I
answer or not.


And I was hoping you'd answer with a non-regular expression solution :-)
--ron
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default parse cell contents

Should I check the cell contents as a string and extact any text like,
f1 etc., and then check the remaining string with isdate?

Something like that maybe?

Ron Rosenfeld wrote:
On Mon, 18 Sep 2006 12:28:01 -0700, Tom Ogilvy
wrote:

I'll let Ron give you a regular expressions solution since he will whether I
answer or not.


And I was hoping you'd answer with a non-regular expression solution :-)
--ron


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
help - need to parse a cell confused Excel Worksheet Functions 2 October 30th 09 07:22 PM
Parse cell contents to new columns Frank Pytel Excel Worksheet Functions 6 March 8th 09 04:39 PM
Parse cell value based on contents Craig860 Excel Discussion (Misc queries) 7 September 24th 08 01:31 PM
Parse cell contents ? Fullam Excel Discussion (Misc queries) 4 May 3rd 06 06:14 PM
Parse contents of cell Portuga Excel Discussion (Misc queries) 4 March 28th 06 03:44 PM


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