Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default sumproduct - Need maximum date returned

Trying to get the maximum date in column M if criteria met:

=SUMPRODUCT('WaitTimes'!Q:Q=Sheet1!A2,'WaitTimes'! H:H="1)",'WaitTimes!G:G="B",??? I need to add the maximum date in column M)???

I'm trying to figure out how to get the maximum date in column M if all of
the criteria is met -- can you help me?

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default sumproduct - Need maximum date returned

Here is the idea where checksD has your dates and the others are the
conditions. Modify to suit and array enter (ctrl +shift+enter)

=MAX(IF(ChecksA=M1,ChecksA<N1,ChecksD))

--
Don Guillett
SalesAid Software

"jhicsupt" wrote in message
...
Trying to get the maximum date in column M if criteria met:

=SUMPRODUCT('WaitTimes'!Q:Q=Sheet1!A2,'WaitTimes'! H:H="1)",'WaitTimes!G:G="B",???
I need to add the maximum date in column M)???

I'm trying to figure out how to get the maximum date in column M if all of
the criteria is met -- can you help me?

Thanks in advance.


  #3   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default sumproduct - Need maximum date returned

a couple of comments in 2003 or earlier you cant use Q:Q as a shorthand in
Sumproduct
Q$1:Q$64000
=SUMPRODUCT(--('WaitTimes'!Q$1:Q$64000=Sheet1!A2),--('WaitTimes'!H$1:H$64000="1),--('WaitTimes!G$1:G$64000="B),--(M$1:M$64000=max(M$1:M$64000)),M$1:M$64000)

"jhicsupt" wrote:

Trying to get the maximum date in column M if criteria met:

=SUMPRODUCT('WaitTimes'!Q:Q=Sheet1!A2,'WaitTimes'! H:H="1)",'WaitTimes!G:G="B",??? I need to add the maximum date in column M)???

I'm trying to figure out how to get the maximum date in column M if all of
the criteria is met -- can you help me?

Thanks in advance.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default sumproduct - Need maximum date returned

Try this array** formula:

=MAX((WaitTimes!G1:G10="B")*(WaitTimes!H1:H10=1)*( WaitTimes!Q1:Q10=Sheet1!A2)*WaitTimes!M1:M10)

Format the cell as DATE

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

Also note that you *can't* use entire columns as range references unless
you're using Excel 2007

Biff

"jhicsupt" wrote in message
...
Trying to get the maximum date in column M if criteria met:

=SUMPRODUCT('WaitTimes'!Q:Q=Sheet1!A2,'WaitTimes'! H:H="1)",'WaitTimes!G:G="B",???
I need to add the maximum date in column M)???

I'm trying to figure out how to get the maximum date in column M if all of
the criteria is met -- can you help me?

Thanks in advance.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default sumproduct - Need maximum date returned

It returns 01/00/00

"T. Valko" wrote:

Try this array** formula:

=MAX((WaitTimes!G1:G10="B")*(WaitTimes!H1:H10=1)*( WaitTimes!Q1:Q10=Sheet1!A2)*WaitTimes!M1:M10)

Format the cell as DATE

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

Also note that you *can't* use entire columns as range references unless
you're using Excel 2007

Biff

"jhicsupt" wrote in message
...
Trying to get the maximum date in column M if criteria met:

=SUMPRODUCT('WaitTimes'!Q:Q=Sheet1!A2,'WaitTimes'! H:H="1)",'WaitTimes!G:G="B",???
I need to add the maximum date in column M)???

I'm trying to figure out how to get the maximum date in column M if all of
the criteria is met -- can you help me?

Thanks in advance.






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default sumproduct - Need maximum date returned

Meant to say -- this still does not work -- it returns 01/00/00. Help!

"jhicsupt" wrote:

It returns 01/00/00

"T. Valko" wrote:

Try this array** formula:

=MAX((WaitTimes!G1:G10="B")*(WaitTimes!H1:H10=1)*( WaitTimes!Q1:Q10=Sheet1!A2)*WaitTimes!M1:M10)

Format the cell as DATE

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

Also note that you *can't* use entire columns as range references unless
you're using Excel 2007

Biff

"jhicsupt" wrote in message
...
Trying to get the maximum date in column M if criteria met:

=SUMPRODUCT('WaitTimes'!Q:Q=Sheet1!A2,'WaitTimes'! H:H="1)",'WaitTimes!G:G="B",???
I need to add the maximum date in column M)???

I'm trying to figure out how to get the maximum date in column M if all of
the criteria is met -- can you help me?

Thanks in advance.




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default sumproduct - Need maximum date returned

If it returns 0 (and you entered it as an array) that means none of the
conditions are being met. If you know for certain that the conditions are
being met then there is a problem with your data. Unseen characters like
leading/trailing spaces. Numbers formatted as TEXT. etc., etc.

Biff

"jhicsupt" wrote in message
...
Meant to say -- this still does not work -- it returns 01/00/00. Help!

"jhicsupt" wrote:

It returns 01/00/00

"T. Valko" wrote:

Try this array** formula:

=MAX((WaitTimes!G1:G10="B")*(WaitTimes!H1:H10=1)*( WaitTimes!Q1:Q10=Sheet1!A2)*WaitTimes!M1:M10)

Format the cell as DATE

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

Also note that you *can't* use entire columns as range references
unless
you're using Excel 2007

Biff

"jhicsupt" wrote in message
...
Trying to get the maximum date in column M if criteria met:

=SUMPRODUCT('WaitTimes'!Q:Q=Sheet1!A2,'WaitTimes'! H:H="1)",'WaitTimes!G:G="B",???
I need to add the maximum date in column M)???

I'm trying to figure out how to get the maximum date in column M if
all of
the criteria is met -- can you help me?

Thanks 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
Find cell which returned maximum value in formula De New Users to Excel 3 October 27th 06 12:54 AM
When I put in 022806, date is returned as 06/09/62. Why? Barbara Excel Discussion (Misc queries) 3 April 6th 06 09:07 PM
I need today's date returned as date format in formula CMIConnie Excel Discussion (Misc queries) 2 February 23rd 06 04:38 PM
Find Maximum date sgl Excel Worksheet Functions 3 February 15th 06 08:02 AM
Value returned from Formula changes with the Date Jeff Excel Worksheet Functions 6 December 29th 05 02:48 AM


All times are GMT +1. The time now is 04:58 PM.

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"