#1   Report Post  
Denise
 
Posts: n/a
Default Sumproduct

I am using the following formula:

=SUMPRODUCT(--(I4:I400="3"),--(S4:S400<=TIME(0,45,0)))

The spreadsheet that I have has different floor numbers (3-7) that are in
column I. I need to count how many had times of < = 45 minutes on each
floor. This is the formula that I got from someone here.

My numbers are not matching. So far for this month for admissions to the
3rd floor that are <= 00:45 I have 7, the formula is showing 4.

Can anyone help me!!! The only reason that I noticed this is that we have
had 33 admissions to the 3rd floor. All of the times that this formula is
giving me do not add up to 33.

TIA.
  #2   Report Post  
Roger Govier
 
Posts: n/a
Default Sumproduct

Hi Denise

The formula looks fine, as long as your floor identifiers in column I are
text 3 and not numeric 3. They need to be all of the same type, and as the
formula shows the figure "3", I assume they are all supposed to be text.
Are they? Do they have any leading or trailing spaces?

Otherwise, have some of your times been entered in the wrong format?

It should work out for you if your data is correct.

Regards

Roger Govier


Denise wrote:
I am using the following formula:

=SUMPRODUCT(--(I4:I400="3"),--(S4:S400<=TIME(0,45,0)))

The spreadsheet that I have has different floor numbers (3-7) that are in
column I. I need to count how many had times of < = 45 minutes on each
floor. This is the formula that I got from someone here.

My numbers are not matching. So far for this month for admissions to the
3rd floor that are <= 00:45 I have 7, the formula is showing 4.

Can anyone help me!!! The only reason that I noticed this is that we have
had 33 admissions to the 3rd floor. All of the times that this formula is
giving me do not add up to 33.

TIA.

  #3   Report Post  
Jeff Stevens
 
Posts: n/a
Default Sumproduct

I cannot see why your formula works at all. The one below should work for
you. If column S is in minutes already then you should not need to use the
TIME function.

=SUMPRODUCT(($I$4:$I$400=3)*($S$4:$S$400<=45))



"Denise" wrote in message
...
I am using the following formula:

=SUMPRODUCT(--(I4:I400="3"),--(S4:S400<=TIME(0,45,0)))

The spreadsheet that I have has different floor numbers (3-7) that are in
column I. I need to count how many had times of < = 45 minutes on each
floor. This is the formula that I got from someone here.

My numbers are not matching. So far for this month for admissions to the
3rd floor that are <= 00:45 I have 7, the formula is showing 4.

Can anyone help me!!! The only reason that I noticed this is that we have
had 33 admissions to the 3rd floor. All of the times that this formula is
giving me do not add up to 33.

TIA.



  #4   Report Post  
Jeff Stevens
 
Posts: n/a
Default Sumproduct

I stand corrected. I've never seen the double unary (two minus signs)
before.
Always learning around here!


"Roger Govier" wrote in message
...
Hi Denise

The formula looks fine, as long as your floor identifiers in column I are
text 3 and not numeric 3. They need to be all of the same type, and as the
formula shows the figure "3", I assume they are all supposed to be text.
Are they? Do they have any leading or trailing spaces?

Otherwise, have some of your times been entered in the wrong format?

It should work out for you if your data is correct.

Regards

Roger Govier


Denise wrote:
I am using the following formula:

=SUMPRODUCT(--(I4:I400="3"),--(S4:S400<=TIME(0,45,0)))

The spreadsheet that I have has different floor numbers (3-7) that are

in
column I. I need to count how many had times of < = 45 minutes on each
floor. This is the formula that I got from someone here.

My numbers are not matching. So far for this month for admissions to

the
3rd floor that are <= 00:45 I have 7, the formula is showing 4.

Can anyone help me!!! The only reason that I noticed this is that we

have
had 33 admissions to the 3rd floor. All of the times that this formula

is
giving me do not add up to 33.

TIA.



  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default Sumproduct

J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

If you want to read more.

Jeff Stevens wrote:

I stand corrected. I've never seen the double unary (two minus signs)
before.
Always learning around here!

"Roger Govier" wrote in message
...
Hi Denise

The formula looks fine, as long as your floor identifiers in column I are
text 3 and not numeric 3. They need to be all of the same type, and as the
formula shows the figure "3", I assume they are all supposed to be text.
Are they? Do they have any leading or trailing spaces?

Otherwise, have some of your times been entered in the wrong format?

It should work out for you if your data is correct.

Regards

Roger Govier


Denise wrote:
I am using the following formula:

=SUMPRODUCT(--(I4:I400="3"),--(S4:S400<=TIME(0,45,0)))

The spreadsheet that I have has different floor numbers (3-7) that are

in
column I. I need to count how many had times of < = 45 minutes on each
floor. This is the formula that I got from someone here.

My numbers are not matching. So far for this month for admissions to

the
3rd floor that are <= 00:45 I have 7, the formula is showing 4.

Can anyone help me!!! The only reason that I noticed this is that we

have
had 33 admissions to the 3rd floor. All of the times that this formula

is
giving me do not add up to 33.

TIA.


--

Dave Peterson
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
Sumproduct Peter B Excel Worksheet Functions 1 March 7th 05 01:59 PM
sumproduct causing memory errors? dave Excel Worksheet Functions 1 March 3rd 05 09:31 AM
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 01:58 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


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