Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default Max if between 2 dates?

I have dates in column A & B. They correspond to dates in column A of
sheet2... In column C (of sheet1) I would like to find the max value found on
Sheet2 in column B corresponding/between the two dates of cloumn A&B on
sheet1. Is that make sense?

Thanks for your cunning thoughts!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Max if between 2 dates?

=MAX(INDEX((Sheet2!$A$2:$A$10=A2)*(Sheet2!$A$2:$A $10<=B2)*(Sheet2!$B$2:$B$10),0))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"John" wrote in message
...
I have dates in column A & B. They correspond to dates in column A of
sheet2... In column C (of sheet1) I would like to find the max value found
on
Sheet2 in column B corresponding/between the two dates of cloumn A&B on
sheet1. Is that make sense?

Thanks for your cunning thoughts!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default Max if between 2 dates?

=MAX(INDEX('data FI'!$T$3:$X$1000,('data FI'!$T$3:$T$1000=W2)*('data
FI'!$T$3:$T$1000<=T2)*('data FI'!$V$3:$V$1000),0))

AND

=MAX(INDEX(('data FI'!$T$3:$T$1000=W2)*('data FI'!$T$3:$T$1000<=T2)*('data
FI'!$V$3:$V$1000),0))

For my sheet is not working

I will keep playing around with it, but any thoughts?

"Bob Phillips" wrote:

=MAX(INDEX((Sheet2!$A$2:$A$10=A2)*(Sheet2!$A$2:$A $10<=B2)*(Sheet2!$B$2:$B$10),0))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"John" wrote in message
...
I have dates in column A & B. They correspond to dates in column A of
sheet2... In column C (of sheet1) I would like to find the max value found
on
Sheet2 in column B corresponding/between the two dates of cloumn A&B on
sheet1. Is that make sense?

Thanks for your cunning thoughts!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default Max if between 2 dates?

And I tried =MAX(OFFSET(INDEX(('data FI'!$T$3:$T$1000=W2)*('data
FI'!$T$3:$T$1000<=T2),1),0,2)) which doesn't work either :)

"Bob Phillips" wrote:

=MAX(INDEX((Sheet2!$A$2:$A$10=A2)*(Sheet2!$A$2:$A $10<=B2)*(Sheet2!$B$2:$B$10),0))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"John" wrote in message
...
I have dates in column A & B. They correspond to dates in column A of
sheet2... In column C (of sheet1) I would like to find the max value found
on
Sheet2 in column B corresponding/between the two dates of cloumn A&B on
sheet1. Is that make sense?

Thanks for your cunning thoughts!




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Max if between 2 dates?

You can't use two columns as per your first example, and you cannot add a
third index argument as per your third. Your second one works fine in my
tests though.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"John" wrote in message
...
And I tried =MAX(OFFSET(INDEX(('data FI'!$T$3:$T$1000=W2)*('data
FI'!$T$3:$T$1000<=T2),1),0,2)) which doesn't work either :)

"Bob Phillips" wrote:

=MAX(INDEX((Sheet2!$A$2:$A$10=A2)*(Sheet2!$A$2:$A $10<=B2)*(Sheet2!$B$2:$B$10),0))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"John" wrote in message
...
I have dates in column A & B. They correspond to dates in column A of
sheet2... In column C (of sheet1) I would like to find the max value
found
on
Sheet2 in column B corresponding/between the two dates of cloumn A&B on
sheet1. Is that make sense?

Thanks for your cunning thoughts!








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default Max if between 2 dates?

SO =MAX(INDEX(('data FI'!$T$3:$T$1000=W16)*('data
FI'!$T$3:$T$1000<=T16)*('data FI'!$V$3:$V$1000),0))

so this Finds the MAX in column V on the sheet 'data FI' between the dates
given in W16 and T16???.... so the index may find 5 dates between the 2
values and therfore 5 values in column V and takes the MAX of those 5
values???? ... it doesn't work for me. Can you send your sheet to me?



"Bob Phillips" wrote:

You can't use two columns as per your first example, and you cannot add a
third index argument as per your third. Your second one works fine in my
tests though.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"John" wrote in message
...
And I tried =MAX(OFFSET(INDEX(('data FI'!$T$3:$T$1000=W2)*('data
FI'!$T$3:$T$1000<=T2),1),0,2)) which doesn't work either :)

"Bob Phillips" wrote:

=MAX(INDEX((Sheet2!$A$2:$A$10=A2)*(Sheet2!$A$2:$A $10<=B2)*(Sheet2!$B$2:$B$10),0))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"John" wrote in message
...
I have dates in column A & B. They correspond to dates in column A of
sheet2... In column C (of sheet1) I would like to find the max value
found
on
Sheet2 in column B corresponding/between the two dates of cloumn A&B on
sheet1. Is that make sense?

Thanks for your cunning thoughts!






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Max if between 2 dates?

Where, you are using a forum.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"John" wrote in message
...
SO =MAX(INDEX(('data FI'!$T$3:$T$1000=W16)*('data
FI'!$T$3:$T$1000<=T16)*('data FI'!$V$3:$V$1000),0))

so this Finds the MAX in column V on the sheet 'data FI' between the dates
given in W16 and T16???.... so the index may find 5 dates between the 2
values and therfore 5 values in column V and takes the MAX of those 5
values???? ... it doesn't work for me. Can you send your sheet to me?



"Bob Phillips" wrote:

You can't use two columns as per your first example, and you cannot add a
third index argument as per your third. Your second one works fine in my
tests though.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"John" wrote in message
...
And I tried =MAX(OFFSET(INDEX(('data FI'!$T$3:$T$1000=W2)*('data
FI'!$T$3:$T$1000<=T2),1),0,2)) which doesn't work either :)

"Bob Phillips" wrote:

=MAX(INDEX((Sheet2!$A$2:$A$10=A2)*(Sheet2!$A$2:$A $10<=B2)*(Sheet2!$B$2:$B$10),0))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"John" wrote in message
...
I have dates in column A & B. They correspond to dates in column A
of
sheet2... In column C (of sheet1) I would like to find the max value
found
on
Sheet2 in column B corresponding/between the two dates of cloumn A&B
on
sheet1. Is that make sense?

Thanks for your cunning thoughts!








  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default Max if between 2 dates?

111

without the 1's

"Bob Phillips" wrote:

Where, you are using a forum.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"John" wrote in message
...
SO =MAX(INDEX(('data FI'!$T$3:$T$1000=W16)*('data
FI'!$T$3:$T$1000<=T16)*('data FI'!$V$3:$V$1000),0))

so this Finds the MAX in column V on the sheet 'data FI' between the dates
given in W16 and T16???.... so the index may find 5 dates between the 2
values and therfore 5 values in column V and takes the MAX of those 5
values???? ... it doesn't work for me. Can you send your sheet to me?



"Bob Phillips" wrote:

You can't use two columns as per your first example, and you cannot add a
third index argument as per your third. Your second one works fine in my
tests though.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"John" wrote in message
...
And I tried =MAX(OFFSET(INDEX(('data FI'!$T$3:$T$1000=W2)*('data
FI'!$T$3:$T$1000<=T2),1),0,2)) which doesn't work either :)

"Bob Phillips" wrote:

=MAX(INDEX((Sheet2!$A$2:$A$10=A2)*(Sheet2!$A$2:$A $10<=B2)*(Sheet2!$B$2:$B$10),0))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"John" wrote in message
...
I have dates in column A & B. They correspond to dates in column A
of
sheet2... In column C (of sheet1) I would like to find the max value
found
on
Sheet2 in column B corresponding/between the two dates of cloumn A&B
on
sheet1. Is that make sense?

Thanks for your cunning thoughts!









  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default Max if between 2 dates?

I had a cell with text in my range... sorry for the confusion and thanks for
all the help

"Bob Phillips" wrote:

Where, you are using a forum.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"John" wrote in message
...
SO =MAX(INDEX(('data FI'!$T$3:$T$1000=W16)*('data
FI'!$T$3:$T$1000<=T16)*('data FI'!$V$3:$V$1000),0))

so this Finds the MAX in column V on the sheet 'data FI' between the dates
given in W16 and T16???.... so the index may find 5 dates between the 2
values and therfore 5 values in column V and takes the MAX of those 5
values???? ... it doesn't work for me. Can you send your sheet to me?



"Bob Phillips" wrote:

You can't use two columns as per your first example, and you cannot add a
third index argument as per your third. Your second one works fine in my
tests though.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"John" wrote in message
...
And I tried =MAX(OFFSET(INDEX(('data FI'!$T$3:$T$1000=W2)*('data
FI'!$T$3:$T$1000<=T2),1),0,2)) which doesn't work either :)

"Bob Phillips" wrote:

=MAX(INDEX((Sheet2!$A$2:$A$10=A2)*(Sheet2!$A$2:$A $10<=B2)*(Sheet2!$B$2:$B$10),0))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"John" wrote in message
...
I have dates in column A & B. They correspond to dates in column A
of
sheet2... In column C (of sheet1) I would like to find the max value
found
on
Sheet2 in column B corresponding/between the two dates of cloumn A&B
on
sheet1. Is that make sense?

Thanks for your cunning thoughts!









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
Identifying unique dates in a range of cells containing dates... cdavidson Excel Discussion (Misc queries) 4 October 13th 06 03:30 PM
Identifying unique dates within a range of cells containing dates cdavidson Excel Discussion (Misc queries) 0 October 12th 06 08:19 PM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
Calculating number of days between two dates that fall between two other dates [email protected] Excel Discussion (Misc queries) 5 October 26th 05 06:18 PM
Charting data against dates where dates are not at fixed intervals PK Charts and Charting in Excel 4 June 16th 05 05:08 AM


All times are GMT +1. The time now is 01:55 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"