|
|||||||||||||||||||||
|
#1
|
|||
|
|||
|
Date cells not being identified as dates !
Greetings,
after spending many hours and days trying to fix this problem, i could not solve it and i am here asking for your help ![]() I am looking for a way to control the inactivity of people in my irc channel/server. So, what i do is: 1- in irc i do a "/msg nickserv info XXX" the output information would look like this. Code:
Jul 10 00:02:17 -NickServ- XXX is ZZTTRR Jul 10 00:02:17 -NickServ- Time registered: May 28 21:40:13 2008 UTC Jul 10 00:02:17 -NickServ- Last seen time: Jun 28 23:13:44 2008 UTC Jul 10 00:02:17 -NickServ- Last quit message: Quit: Jul 10 00:02:17 -NickServ- ZZZ is UUUTTTDDD Jul 10 00:02:17 -NickServ- Time registered: May 28 21:40:13 2008 UTC Jul 10 00:02:17 -NickServ- Last seen time: Jun 28 23:13:44 2008 UTC Jul 10 00:02:17 -NickServ- Last quit message: Quit: Code:
Jul 10 00:02:17 -NickServ- XXX is ZZTTRR Jul 10 00:02:17 -NickServ- Time registered: May 28 21:40:13 2008 UTC Jul 10 00:02:17 -NickServ- Last seen time: Jun 28 23:13:44 2008 UTC Jul 10 00:02:17 -NickServ- ZZZ is UUUTTTDDD Jul 10 00:02:17 -NickServ- Time registered: May 29 21:40:13 2008 UTC Jul 10 00:02:17 -NickServ- Last seen time: Jun 20 23:13:44 2008 UTC *1* print in a specific column (Name), the nick (XXX and ZZZ). (I am not interested in the is ZZTTRR and is UUUTTTDDD) *2* print the date registered in another column (Registered) *3* TODAY() - "the printed registered date" in another column (Age) *4* print the last seen date to another column (Last seen) *5* TODAY() - "the printed last seen date" in another column (Inactivity) Everything seem to be working really good. The problem is that in the dates printed on *2* and *4* are not being seen as dates, so the TODAY()- "the cells" (on *3* and *5*), wont work, because "TODAY()- Apr 12,2008" is not possible ? what am i missing here . . . ? Please, i believe the BIG formula is correct . . . edit, between, i forgot to mention that the output text is not always in the same "format". Sometimes, this pops up: Code:
Jul 14 17:58:54 -NickServ- JJJJJ is New Now Know How Jul 14 17:58:54 -NickServ- JJJJJ is currently online. Jul 14 17:58:55 -NickServ- Time registered: Apr 19 17:51:30 2008 UTC Anyway, i worked this out too . . . Last edited by Tuche; 07-14-2008 at 03:51 PM. |
|
#2
|
||||
|
||||
|
You can wrap the date in the DateValue() function which converts date string to actual date value...
e..g =TODAY()-DATEVALUE("Apr 12,2008") you can replace the date string with a cell reference containing it or a formula that results in it...
__________________
Where there is a will there are many ways. Finding one that works for you is the challenge! Please read the Forum Rules: Rules |
|
#4
|
||||
|
||||
|
How is not working? Do you get an error or a wrong value?
You sheet doesn't help as you have Value errors in column B and I don't see the formulas that got them... try saving as Excel 2003 and then attaching...
__________________
Where there is a will there are many ways. Finding one that works for you is the challenge! Please read the Forum Rules: Rules |
|
#6
|
|||
|
|||
|
in xls (97) it breaks everything, too many levels of nesting . . .
on xlsx B2, Code:
=IF(OFFSET('DO NOT MODIFY #1'!$B$2;(ROW()-2)*3;0;;) = CONCATENATE(A2;" is currently online.");REPLACE(REPLACE(REPLACE(OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1)+1;"");FIND(":";REPLACE(OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1)+1;"");1)-3;FIND(":";REPLACE(OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1)+1;"");1)-1;",");FIND(" UTC";REPLACE(REPLACE(OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1)+1;"");FIND(":";REPLACE(OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1)+1;"");1)-3;FIND(":";REPLACE(OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1)+1;"");1)-1;",");1);LEN(REPLACE(REPLACE(OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1)+1;"");FIND(":";REPLACE(OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1)+1;"");1)-3;FIND(":";REPLACE(OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1)+1;"");1)-1;","));"");REPLACE(REPLACE(REPLACE(OFFSET('DO NOT MODIFY #1'!$B$2;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$2;(ROW()-2)*3;0;;);1)+1;"");FIND(":";REPLACE(OFFSET('DO NOT MODIFY #1'!$B$2;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$2;(ROW()-2)*3;0;;);1)+1;"");1)-3;FIND(":";REPLACE(OFFSET('DO NOT MODIFY #1'!$B$2;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$2;(ROW()-2)*3;0;;);1)+1;"");1)-1;",");FIND(" UTC";REPLACE(REPLACE(OFFSET('DO NOT MODIFY #1'!$B$2;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$2;(ROW()-2)*3;0;;);1)+1;"");FIND(":";REPLACE(OFFSET('DO NOT MODIFY #1'!$B$2;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$2;(ROW()-2)*3;0;;);1)+1;"");1)-3;FIND(":";REPLACE(OFFSET('DO NOT MODIFY #1'!$B$2;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$2;(ROW()-2)*3;0;;);1)+1;"");1)-1;",");1);LEN(REPLACE(REPLACE(OFFSET('DO NOT MODIFY #1'!$B$2;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$2;(ROW()-2)*3;0;;);1)+1;"");FIND(":";REPLACE(OFFSET('DO NOT MODIFY #1'!$B$2;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$2;(ROW()-2)*3;0;;);1)+1;"");1)-3;FIND(":";REPLACE(OFFSET('DO NOT MODIFY #1'!$B$2;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$2;(ROW()-2)*3;0;;);1)+1;"");1)-1;","));""))
Code:
=IF(OFFSET('DO NOT MODIFY #1'!$B$2;(ROW()-2)*3;0;;) = CONCATENATE(A2;" is currently online.");TODAY();REPLACE(REPLACE(REPLACE(OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1)+1;"");FIND(":";REPLACE(OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1)+1;"");1)-3;FIND(":";REPLACE(OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1)+1;"");1)-1;",");FIND(" UTC";REPLACE(REPLACE(OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1)+1;"");FIND(":";REPLACE(OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1)+1;"");1)-3;FIND(":";REPLACE(OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1)+1;"");1)-1;",");1);LEN(REPLACE(REPLACE(OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1)+1;"");FIND(":";REPLACE(OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1)+1;"");1)-3;FIND(":";REPLACE(OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1;FIND(":";OFFSET('DO NOT MODIFY #1'!$B$3;(ROW()-2)*3;0;;);1)+1;"");1)-1;","));""))
|
|
#7
|
||||
|
||||
|
Quote:
I don't have XL2007 so my converter screws something up when trying to convert to 2003 and removes some of your formulas...
__________________
Where there is a will there are many ways. Finding one that works for you is the challenge! Please read the Forum Rules: Rules |
|
#9
|
||||
|
||||
|
You have to put the date in quotations... or reference a cell that has the date in a string format instead of an actual date format...
__________________
Where there is a will there are many ways. Finding one that works for you is the challenge! Please read the Forum Rules: Rules |
|
#13
|
||||
|
||||
|
Try the formula first in a brand new workbook.... just to make sure it's not something in your workbook causing the issue...
Also.. do you get same error with this: =TODAY( )-"19 Apr, 2008"+0
__________________
Where there is a will there are many ways. Finding one that works for you is the challenge! Please read the Forum Rules: Rules Last edited by NBVC; 07-14-2008 at 04:51 PM. |
![]() |
| Bookmarks |
New topics in Excel 2007 Help
|
|
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|