A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

finding the earliest date in an array of cells



 
 
Thread Tools Display Modes
  #1  
Old May 12th, 2009, 05:33 PM posted to microsoft.public.excel.worksheet.functions
Buck
external usenet poster
 
Posts: 18
Default finding the earliest date in an array of cells

I have one column with various dates.....lets say B2:B20. The next column
(C2:c20) with values such as 1, 4, 8, etc. I am trying to calculate the
earliest date with a value in the same row that is 0. So if B5 has the
earliest date, but the value of C5 is 0, I do not want that date.
  #2  
Old May 12th, 2009, 05:37 PM posted to microsoft.public.excel.worksheet.functions
Glenn[_6_]
external usenet poster
 
Posts: 1,245
Default finding the earliest date in an array of cells

Buck wrote:
I have one column with various dates.....lets say B2:B20. The next column
(C2:c20) with values such as 1, 4, 8, etc. I am trying to calculate the
earliest date with a value in the same row that is 0. So if B5 has the
earliest date, but the value of C5 is 0, I do not want that date.



Array formula (commit with CTRL+SHIFT+ENTER):

=MIN(IF(C2:C200,B2:B20,""))

Make sure to format the cell as date.
  #3  
Old May 12th, 2009, 05:39 PM posted to microsoft.public.excel.worksheet.functions
Gary''s Student
external usenet poster
 
Posts: 7,584
Default finding the earliest date in an array of cells

=MIN(IF(C2:C20"",B2:B20,""))

This is an array formula that must be entered with CNTRL-SHFT-ENTER rather
than just the ENTER key.
--
Gary''s Student - gsnu200852


"Buck" wrote:

I have one column with various dates.....lets say B2:B20. The next column
(C2:c20) with values such as 1, 4, 8, etc. I am trying to calculate the
earliest date with a value in the same row that is 0. So if B5 has the
earliest date, but the value of C5 is 0, I do not want that date.

  #4  
Old May 13th, 2009, 12:55 AM posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_]
external usenet poster
 
Posts: 1,764
Default finding the earliest date in an array of cells

Hi,
you can array enter (Ctrl+Shift+Enter) the following

=INDEX($B$6:$C$8,MATCH(TRUE,C6:C80,0),1)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Buck" wrote in message
...
I have one column with various dates.....lets say B2:B20. The next column
(C2:c20) with values such as 1, 4, 8, etc. I am trying to calculate the
earliest date with a value in the same row that is 0. So if B5 has the
earliest date, but the value of C5 is 0, I do not want that date.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:32 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.