Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default maximum value (for a calendar date)

I have the following data in my spreadsheet.

Col-A Col-B
(Depth)
150 20/09/2008 00:00
155 20/09/2008 00:02
157 20/09/2008 00:04
......
350 15/04/2009 22:46
etc.

I need to extract into a new column/table the maximum value of Col A per day.
I have a number of spreadsheets of this data hence rather have a formula
than do manually.

Any help appreciated
Many Thanks Chris
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default maximum value (for a calendar date)

With your dates in Col C starting from cell C1; try the below formula in D1
and copy down as required....

Please note that this is an array formula. Within the cell in edit mode (F2)
paste this formula and press Ctrl+Shift+Enter to apply this formula. If
successful in 'Formula Bar' you can notice the curly braces at both ends like
"{=<formula}"

=MAX(IF(TEXT(B1:B100,"ddmmyyyy")=TEXT(C1,"ddmmyyyy "),A1:A100))
--
If this post helps click Yes
---------------
Jacob Skaria


"Chris26" wrote:

I have the following data in my spreadsheet.

Col-A Col-B
(Depth)
150 20/09/2008 00:00
155 20/09/2008 00:02
157 20/09/2008 00:04
.....
350 15/04/2009 22:46
etc.

I need to extract into a new column/table the maximum value of Col A per day.
I have a number of spreadsheets of this data hence rather have a formula
than do manually.

Any help appreciated
Many Thanks Chris

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default maximum value (for a calendar date)

Tha worked fine, Thankyou.

Also trying out sumproduct formula and managed to get that to work as well.
=SUMPRODUCT(MAX((C2:C100=D2)*A2:A100))

Where Col C is the date/time formatted to just date and D is date column in
table.

Many thanks


"Jacob Skaria" wrote:

With your dates in Col C starting from cell C1; try the below formula in D1
and copy down as required....

Please note that this is an array formula. Within the cell in edit mode (F2)
paste this formula and press Ctrl+Shift+Enter to apply this formula. If
successful in 'Formula Bar' you can notice the curly braces at both ends like
"{=<formula}"

=MAX(IF(TEXT(B1:B100,"ddmmyyyy")=TEXT(C1,"ddmmyyyy "),A1:A100))
--
If this post helps click Yes
---------------
Jacob Skaria


"Chris26" wrote:

I have the following data in my spreadsheet.

Col-A Col-B
(Depth)
150 20/09/2008 00:00
155 20/09/2008 00:02
157 20/09/2008 00:04
.....
350 15/04/2009 22:46
etc.

I need to extract into a new column/table the maximum value of Col A per day.
I have a number of spreadsheets of this data hence rather have a formula
than do manually.

Any help appreciated
Many Thanks Chris

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default maximum value (for a calendar date)

=MAX(IF(TEXT(B1:B100,"ddmmyyyy")=TEXT(C1,"ddmmyyy y"),A1:A100))

If C1 is a date only and B:B are dates + times:

=MAX(IF(INT(B1:B100)=C1,A1:A100))

--
Biff
Microsoft Excel MVP


"Jacob Skaria" wrote in message
...
With your dates in Col C starting from cell C1; try the below formula in
D1
and copy down as required....

Please note that this is an array formula. Within the cell in edit mode
(F2)
paste this formula and press Ctrl+Shift+Enter to apply this formula. If
successful in 'Formula Bar' you can notice the curly braces at both ends
like
"{=<formula}"

=MAX(IF(TEXT(B1:B100,"ddmmyyyy")=TEXT(C1,"ddmmyyyy "),A1:A100))
--
If this post helps click Yes
---------------
Jacob Skaria


"Chris26" wrote:

I have the following data in my spreadsheet.

Col-A Col-B
(Depth)
150 20/09/2008 00:00
155 20/09/2008 00:02
157 20/09/2008 00:04
.....
350 15/04/2009 22:46
etc.

I need to extract into a new column/table the maximum value of Col A per
day.
I have a number of spreadsheets of this data hence rather have a formula
than do manually.

Any help appreciated
Many Thanks Chris



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
Convert date from Gregorian Calendar to Hijri Calendar H.Alkhodary Excel Discussion (Misc queries) 1 February 21st 09 10:11 AM
Maximum date in a Month Steve Excel Discussion (Misc queries) 4 November 5th 08 07:55 PM
How to link an Excel file due date to Outlook calendar date? anok New Users to Excel 0 May 9th 07 09:31 PM
have a date cell pop up a monthly calendar to choose a date lillywhite Excel Worksheet Functions 4 August 21st 05 09:14 PM
how to convert julian date to regular calendar date Ron Excel Worksheet Functions 5 May 5th 05 11:05 PM


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

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"