ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Highest value between two dates (https://www.excelbanter.com/excel-discussion-misc-queries/239845-highest-value-between-two-dates.html)

Geo

Highest value between two dates
 
What formula would I use to find the highest value between two dates.

Date on col A
values on col B

Niek Otten

Highest value between two dates
 
One way:

Start date in E1
End date in E2
In C1:
=IF(AND(A1$E$1,A1<$E$2),B1,"")
Fill down as far as A and B go
In some cell:
=MAX(C1:C25) (adjust 25 to what your last row is)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Geo" wrote in message
...
What formula would I use to find the highest value between two dates.

Date on col A
values on col B



Geo

Highest value between two dates
 
Thank you that works well.

"Niek Otten" wrote:

One way:

Start date in E1
End date in E2
In C1:
=IF(AND(A1$E$1,A1<$E$2),B1,"")
Fill down as far as A and B go
In some cell:
=MAX(C1:C25) (adjust 25 to what your last row is)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Geo" wrote in message
...
What formula would I use to find the highest value between two dates.

Date on col A
values on col B




Ron Rosenfeld

Highest value between two dates
 
On Sat, 15 Aug 2009 13:43:01 -0700, Geo wrote:

What formula would I use to find the highest value between two dates.

Date on col A
values on col B



This formula must be **array-entered**:


=MAX((Dates=StartDate)*(Dates<=EndDate)*Values)

----------------------------------------

To **array-enter** a formula, after entering
the formula into the cell or formula bar, hold down
<ctrl<shift while hitting <enter. If you did this
correctly, Excel will place braces {...} around the formula.
--ron


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com