Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
help - need to parse a cell | Excel Worksheet Functions | |||
Parse cell contents to new columns | Excel Worksheet Functions | |||
Parse cell value based on contents | Excel Discussion (Misc queries) | |||
Parse cell contents ? | Excel Discussion (Misc queries) | |||
Parse contents of cell | Excel Discussion (Misc queries) |