Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Finding the Max, Min values based on certain criteria for an a

One last thing, its all good for most of it now but
how would I find the first and last for the five minute
intervals, also the total volume.


Since it's a multiple time interval the first and last would be:

First would use the same formula as if you were finding the first for 10:00.

Last would use the same formula as if you were finding the last for 10:05.

For the 5 min volume:

D2 = 10:00 AM
E2 = 10:05 AM

=SUMPRODUCT(--(HOUR(Times)=HOUR(D2)),--(MINUTE(Times)<=MINUTE(D2)),Volume))

Those seconds are really making this more complicated than need be. I don't
know why you had trouble trying to convert to just h:mm.

--
Biff
Microsoft Excel MVP


"swalk88" wrote in message
...
Hi,

One last thing, its all good for most of it now but how would I find the
first and last for the five minute intervals, also the total volume.

I've worked all the rest out and I have tried inserting the if function
into
the brackets but that didn't work.

Thanks

"T. Valko" wrote:

Ooops!

=MAX(IF((Times=D2)*(Times<=E2),Values))


That should be:

=MAX(IF((Times=D2)*(Times<E2),Values))

--
Biff
Microsoft Excel MVP


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
There is also a volume for a certain time, would I
just use a Sumif formula to find the volume at the time?

No, you'd need something like this:

For the total volume at 10:00 AM...

=SUMPRODUCT(--(HOUR(Times)=HOUR(D2)),--(MINUTE(Times)=MINUTE(D2)),Volume))

if I want to group the numbers in 5 minute intevals.
i.e. 10:00-10:05 how would I go about that?

Do you mean find the max from 10:00 to 10:05 ? Since the time values
included minutes and seconds you probably need to adjust the interval
to
10:00 AM to 10:06 AM. The reason is that there might be a time of
something like 10:05:59

Like this (array entered):

D2 = 10:00 AM
E2 = 10:06 AM

=MAX(IF((Times=D2)*(Times<=E2),Values))

How do I plot it on a chart and get it to
ignore that 0's that may appear in the data.

I rarely use charts but I think you need to replace 0 values with an
NA().

--
Biff
Microsoft Excel MVP


"swalk88" wrote in message
...
Hi again,

Thanks for that, that part is working now, just have a few more
questions.
There is also a volume for a certain time, would I just use a Sumif
formula
to find the volume at the time?

Also, if I want to group the numbers in 5 minute intevals. i.e.
10:00-10:05
how would I go about that?

Lastly, How do I plot it on a chart and get it to ignore that 0's that
may
appear in the data.

Thank you so much for the help.







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
Finding the last entry in a column based on criteria DKS Excel Worksheet Functions 9 January 18th 08 07:16 PM
Finding a number based on a criteria Henrik Excel Worksheet Functions 2 July 30th 07 10:08 AM
Finding cell contents based on certain criteria thekovinc Excel Discussion (Misc queries) 1 March 15th 06 07:37 PM
Finding cell contents based on certain criteria thekovinc Excel Discussion (Misc queries) 1 March 15th 06 07:20 PM
Finding the Largest Number, based on two criteria BigH Excel Discussion (Misc queries) 1 February 8th 06 08:50 PM


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