Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
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.


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
Vlookup+ Select Next Earliest Value (Array formula?) [email protected] Excel Worksheet Functions 1 November 6th 07 03:59 AM
Earliest date using WEEKNUMBER Jock Excel Worksheet Functions 3 September 17th 07 10:17 AM
Finding the earliest date from a range of cells [email protected] Excel Worksheet Functions 2 July 28th 07 04:46 PM
Finding the earliest date from a range of cells [email protected] Excel Worksheet Functions 1 July 28th 07 06:50 AM
finding earliest date within a range by employee Steve Excel Worksheet Functions 4 October 19th 06 11:34 PM


All times are GMT +1. The time now is 09:38 AM.

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

About Us

"It's about Microsoft Excel"