#1   Report Post  
Jim
 
Posts: n/a
Default Question for Peo

Great solution,

I have use for this formula. One more request. How would it look if we
added one more qualifier. Not only will it count the time only if it meets
the one criteria, I would also like it to meet another criteria in another
cell (for example, the formula you gave me, but add if AD3:AD10000=101.

So it would count the time if it meets the first criteria of 1, then if it
meets the second criteria of 101.

Can you help me with this as well?

Thanks




"Peo Sjoblom" wrote:

One way

=SUMPRODUCT(--(AB3:AB10000=TIME(6,45,0)),--(AB3:AB10000<=TIME(7,29,59)),--(AC3:AC10000=1))


assuming the 1 is numeric, if text enclose it in quotations "1"


Regards,

Peo Sjoblom

"Jim" wrote:

I currently use the following to count the number of occurrences that time
shows on my report. This is a great formula.

=SUMPRODUCT((AB3:AB10000=TIME(6,45,0))*(AB3:AB100 00<=TIME(7,29,59)))

What I need in its place is a formula that counts the occurrences of time
only if the cell next to the time shows a 1.

example:

A B
7:54:34 2
8:28:40 1
8:50:16 2
9:32:07 2
10:10:36 2
10:11:02 1

I only want to count a time period only if there is a number one in the next
cell.

Thanks for the help


  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

If you mean that it will count the times in AB where AC is 1 AND AD is 101

=SUMPRODUCT(--(AB3:AB10000=TIME(6,45,0)),--(AB3:AB10000<=TIME(7,29,59)),--(AC3:AC10000=1),--(AD3:AD10000=101))



Regards,


Peo Sjoblom


"Jim" wrote:

Great solution,

I have use for this formula. One more request. How would it look if we
added one more qualifier. Not only will it count the time only if it meets
the one criteria, I would also like it to meet another criteria in another
cell (for example, the formula you gave me, but add if AD3:AD10000=101.

So it would count the time if it meets the first criteria of 1, then if it
meets the second criteria of 101.

Can you help me with this as well?

Thanks




"Peo Sjoblom" wrote:

One way

=SUMPRODUCT(--(AB3:AB10000=TIME(6,45,0)),--(AB3:AB10000<=TIME(7,29,59)),--(AC3:AC10000=1))


assuming the 1 is numeric, if text enclose it in quotations "1"


Regards,

Peo Sjoblom

"Jim" wrote:

I currently use the following to count the number of occurrences that time
shows on my report. This is a great formula.

=SUMPRODUCT((AB3:AB10000=TIME(6,45,0))*(AB3:AB100 00<=TIME(7,29,59)))

What I need in its place is a formula that counts the occurrences of time
only if the cell next to the time shows a 1.

example:

A B
7:54:34 2
8:28:40 1
8:50:16 2
9:32:07 2
10:10:36 2
10:11:02 1

I only want to count a time period only if there is a number one in the next
cell.

Thanks 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
Interest Accrual Question Kent Excel Discussion (Misc queries) 1 December 23rd 04 10:39 PM
Advanced Window Split & Freeze Question Andrew Excel Worksheet Functions 1 November 8th 04 01:50 AM
COUNTIF Question zbert Excel Worksheet Functions 1 November 1st 04 01:59 AM
Have a question on scrolling sum with Excel. A question on scrolling sum Excel Worksheet Functions 1 October 31st 04 06:01 PM
Have a question on scrolling sum with Excel. A question on scrolling sum Excel Worksheet Functions 0 October 31st 04 05:54 PM


All times are GMT +1. The time now is 09:58 AM.

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"