Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.excel.programming > #109466

Re: Earliest date & time

From Bruno Campanini <brunocam@libero.it>
Newsgroups microsoft.public.excel.programming
Subject Re: Earliest date & time
Date 2016-10-25 03:16 +0200
Organization Aioe.org NNTP Server
Message-ID <numbov$c6d$1@gioia.aioe.org> (permalink)
References <66bdd866-f844-489f-b30c-daf1794ac287@googlegroups.com>

Show all headers | View raw


GARYWC wrote :
> Cols C, D and E have cells that contain either a date & time or spaces  
>
> --------- C ------- --------- D ------- --------- E -------                 
> ---date--- --time-- ---date--- --time-- ---date--- --time--
>
> 2016:10:21 22:00:01 2016:10:17 10:57:40 2016:10:17 10:57:40
> 2016:10:15 07:07:02 2016:10:15 14:07:02 2016:10:15 14:07:02
> 2016:10:16 02:09:02 2016:10:16 09:09:02 2016:10:16 09:09:02
> 2016:10:15 07:52:04 2016:10:15 14:52:04 2016:10:15 14:52:04
> 2016:10:16 02:30:07 2016:10:16 09:30:07 2016:10:16 09:30:07
> 2008:10:21 10:21:08  
> 2016:10:15 07:53:10 2016:10:15 14:53:10 2016:10:15 14:53:10
> 2016:10:15 07:06:12 2016:10:15 14:06:12 2016:10:15 14:06:12
> 2008:10:21 10:21:14  
> 2016:10:15 07:19:16 2016:10:15 14:19:16 2016:10:15 14:19:16
> 2016:10:15 07:53:22 2016:10:15 14:53:22 2016:10:15 14:53:22
> 2016:10:15 07:02:28 2016:10:15 14:02:28 2016:10:15 14:02:28
> 2016:10:23 09:23:40 2016:10:13 20:19:36 
> 2016:10:21 21:59:40 2016:10:17 10:57:51 2016:10:17 10:57:51
> 2005:12:08 09:22:42  
> 2012:04:09 17:18:46 2011:07:18 14:40:24 
> 2016:10:16 02:07:53 2016:10:16 09:07:53 2016:10:16 09:07:53
> 2016:10:17 03:59:55 2016:10:17 10:59:55 2016:10:17 10:59:55
>
> What formula do I use to find the earliest date & time in each row?

You put the same question 10 days ago, for one column
and I gave you the answer.
Now for three columns with one or more blank cells:

=MIN(IF(ISBLANK(A1),"",DATEVALUE(SUBSTITUTE(MID(A1,1,10),":","-") & 
RIGHT(A1,9))+TIMEVALUE(SUBSTITUTE(MID(A1,1,10),":","-") & 
RIGHT(A1,9))),IF(ISBLANK(B1),"",DATEVALUE(SUBSTITUTE(MID(B1,1,10),":","-") 
& RIGHT(B1,9))+TIMEVALUE(SUBSTITUTE(MID(B1,1,10),":","-") & 
RIGHT(B1,9))),IF(ISBLANK(C1),"",DATEVALUE(SUBSTITUTE(MID(C1,1,10),":","-") 
& RIGHT(C1,9))+TIMEVALUE(SUBSTITUTE(MID(C1,1,10),":","-") & 
RIGHT(C1,9))))

You have data in columns A-C, starting cell: A1
You can replace MIN with MAX.. at your choice.

Bruno

Back to microsoft.public.excel.programming | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Earliest date & time GARYWC <gcotterl@earthlink.net> - 2016-10-23 21:34 -0700
  Re: Earliest date & time "Auric__" <not.my.real@email.address> - 2016-10-24 14:23 +0000
    Re: Earliest date & time GARYWC <gcotterl@earthlink.net> - 2016-10-24 08:28 -0700
    Re: Earliest date & time GARYWC <gcotterl@earthlink.net> - 2016-10-24 11:12 -0700
      Re: Earliest date & time isabelle <i@v.invalid> - 2016-10-24 16:27 -0400
        Re: Earliest date & time isabelle <i@v.invalid> - 2016-10-24 16:41 -0400
    Re: Earliest date & time GARYWC <gcotterl@earthlink.net> - 2016-10-26 12:15 -0700
      Re: Earliest date & time isabelle <i@v.invalid> - 2016-10-26 18:47 -0400
    Re: Earliest date & time GARYWC <gcotterl@earthlink.net> - 2016-10-26 15:52 -0700
      Re: Earliest date & time isabelle <i@v.invalid> - 2016-10-26 19:34 -0400
        Re: Earliest date & time isabelle <i@v.invalid> - 2016-10-26 19:37 -0400
      Re: Earliest date & time isabelle <i@v.invalid> - 2016-10-26 19:53 -0400
    Re: Earliest date & time GARYWC <gcotterl@earthlink.net> - 2016-10-26 16:54 -0700
      Re: Earliest date & time isabelle <i@v.invalid> - 2016-10-26 20:04 -0400
    Re: Earliest date & time GARYWC <gcotterl@earthlink.net> - 2016-10-26 20:25 -0700
      Re: Earliest date & time isabelle <i@v.invalid> - 2016-10-27 01:12 -0400
  Re: Earliest date & time Bruno Campanini <brunocam@libero.it> - 2016-10-25 03:16 +0200
  Re: Earliest date & time dienmaytrangiaabc <dienmaytrangiaabc@gmail.com> - 2016-10-25 05:15 +0100
  Re: Earliest date & time Claus Busch <claus_busch@t-online.de> - 2016-10-25 13:24 +0200

csiph-web