#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dcr dcr is offline
external usenet poster
 
Posts: 5
Default Lookup MIN Date

I have inherited a spreadsheet with a formula that does not work. Instead of
returning the earliest order date it returns the first order date. I would
like a formula to place in Sheet 2 that would populate the earliest order
date.

Sheet 1

Part Number Order Date
111 9/10/2007
113 1/1/2007
111 1/1/2007
113 2/1/2002

Sheet 2

Part Number Earliest Order Date
111 1/1/2007
113 2/1/2002

Thank you in advance!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Lookup MIN Date

Try this array* formula in B2 of Sheet2:

=MIN(IF((Sheet1!A2:A100=A2),Sheet1!B2:B100,10E10))

* Array formulae need to be committed using the key combiation Ctrl-
Shift-Enter (CSE) instead of the usual <enter. If you do this
correctly then Excel will wrap curly braces { } around the formula
when viewed in the formula bar - do not type these yoruself. Use CSE
again if you subsequently edit or amend the formula.

Hope this helps.

Pete



On Jul 25, 7:51*pm, dcr wrote:
I have inherited a spreadsheet with a formula that does not work. Instead of
returning the earliest order date it returns the first order date. *I would
like a formula to place in Sheet 2 that would populate the earliest order
date.

Sheet 1

Part Number * Order Date
111 * * * * * * * * 9/10/2007
113 * * * * * * * * 1/1/2007
111 * * * * * * * * 1/1/2007
113 * * * * * * * * 2/1/2002

Sheet 2

Part Number * *Earliest Order Date
111 * * * * * * * * 1/1/2007
113 * * * * * * * * 2/1/2002

Thank you in advance!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Lookup MIN Date

=MIN(IF(Sheet1!$A$2:$A$200=$A2,Sheet1!$B$2:$B$200) )

this is an array formula, so commit with Ctrl-Shift-Enter, not just Enter.

--
__________________________________
HTH

Bob

"dcr" wrote in message
...
I have inherited a spreadsheet with a formula that does not work. Instead
of
returning the earliest order date it returns the first order date. I
would
like a formula to place in Sheet 2 that would populate the earliest order
date.

Sheet 1

Part Number Order Date
111 9/10/2007
113 1/1/2007
111 1/1/2007
113 2/1/2002

Sheet 2

Part Number Earliest Order Date
111 1/1/2007
113 2/1/2002

Thank you in advance!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dcr dcr is offline
external usenet poster
 
Posts: 5
Default Lookup MIN Date

Bob,

Thank you for the reply. The result was the earliest order date for the
entire Sheet 1, not just for part number 111. Any suggestions? Is a VLOOKUP
required?

"Bob Phillips" wrote:

=MIN(IF(Sheet1!$A$2:$A$200=$A2,Sheet1!$B$2:$B$200) )

this is an array formula, so commit with Ctrl-Shift-Enter, not just Enter.

--
__________________________________
HTH

Bob

"dcr" wrote in message
...
I have inherited a spreadsheet with a formula that does not work. Instead
of
returning the earliest order date it returns the first order date. I
would
like a formula to place in Sheet 2 that would populate the earliest order
date.

Sheet 1

Part Number Order Date
111 9/10/2007
113 1/1/2007
111 1/1/2007
113 2/1/2002

Sheet 2

Part Number Earliest Order Date
111 1/1/2007
113 2/1/2002

Thank you in advance!




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Lookup MIN Date

Did you read what Bob said?


"this is an array formula, so commit with Ctrl-Shift-Enter, not just Enter"

--


Regards,


Peo Sjoblom

"dcr" wrote in message
...
Bob,

Thank you for the reply. The result was the earliest order date for the
entire Sheet 1, not just for part number 111. Any suggestions? Is a
VLOOKUP
required?

"Bob Phillips" wrote:

=MIN(IF(Sheet1!$A$2:$A$200=$A2,Sheet1!$B$2:$B$200) )

this is an array formula, so commit with Ctrl-Shift-Enter, not just
Enter.

--
__________________________________
HTH

Bob

"dcr" wrote in message
...
I have inherited a spreadsheet with a formula that does not work.
Instead
of
returning the earliest order date it returns the first order date. I
would
like a formula to place in Sheet 2 that would populate the earliest
order
date.

Sheet 1

Part Number Order Date
111 9/10/2007
113 1/1/2007
111 1/1/2007
113 2/1/2002

Sheet 2

Part Number Earliest Order Date
111 1/1/2007
113 2/1/2002

Thank you in advance!








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dcr dcr is offline
external usenet poster
 
Posts: 5
Default Lookup MIN Date

I used Enter instead of CTRL+Shift+Enter. Now it is working!!

Thank you :)

"dcr" wrote:

Bob,

Thank you for the reply. The result was the earliest order date for the
entire Sheet 1, not just for part number 111. Any suggestions? Is a VLOOKUP
required?

"Bob Phillips" wrote:

=MIN(IF(Sheet1!$A$2:$A$200=$A2,Sheet1!$B$2:$B$200) )

this is an array formula, so commit with Ctrl-Shift-Enter, not just Enter.

--
__________________________________
HTH

Bob

"dcr" wrote in message
...
I have inherited a spreadsheet with a formula that does not work. Instead
of
returning the earliest order date it returns the first order date. I
would
like a formula to place in Sheet 2 that would populate the earliest order
date.

Sheet 1

Part Number Order Date
111 9/10/2007
113 1/1/2007
111 1/1/2007
113 2/1/2002

Sheet 2

Part Number Earliest Order Date
111 1/1/2007
113 2/1/2002

Thank you in advance!




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Lookup MIN Date

=MIN(IF(Sheet1!A2:A100=A2,Sheet1!B2:B100))

which is an array formula, so commit with Ctrl-Shift-enter not just Enter

--
__________________________________
HTH

Bob

"dcr" wrote in message
...
I have inherited a spreadsheet with a formula that does not work. Instead
of
returning the earliest order date it returns the first order date. I
would
like a formula to place in Sheet 2 that would populate the earliest order
date.

Sheet 1

Part Number Order Date
111 9/10/2007
113 1/1/2007
111 1/1/2007
113 2/1/2002

Sheet 2

Part Number Earliest Order Date
111 1/1/2007
113 2/1/2002

Thank you in advance!



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
Lookup the date associated with a given value hello Excel Discussion (Misc queries) 2 June 11th 08 05:16 PM
This should be easy - date lookup Lisa Excel Discussion (Misc queries) 9 January 23rd 08 01:49 AM
Lookup/Date Question Danny640 Excel Worksheet Functions 5 October 3rd 06 11:18 PM
sum, lookup, and date range Sum Limit and marking Excel Worksheet Functions 1 January 12th 06 09:26 PM
Lookup a date between other dates spalmarez Excel Worksheet Functions 4 November 2nd 04 09:06 AM


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

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

About Us

"It's about Microsoft Excel"