#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default Formula Problem

I am having trouble with a formula. Most of the time it calculates
correctly. It is a sumproduct formula which is supposed to count cells in a
range which are greater than 0 if the cells in a different range (column)
contain a certain word. Ie. count all cells in range XX if cells in range
YY = specific text. For some reason it does not count a few lines in the
spreadsheet. It comes back with 32 when it should show 33 etc. I have
narrowed down which rows are a problem - I'm just wondering if anyone has any
ideas why the formula would not count a certain row. Is it a formatting
issue? What things should I check for?? What kinds of things would cause it
to bring back an incorrect value?

Thanks very much!

Formula: =SUMPRODUCT(--('Shipped against rqd Nov08'!$AH$4:$AH$527="Bus Jet
OEM"),--('Shipped against rqd Nov08'!AP$4:AP$5270))
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Formula Problem

It is probably a value that LOOKS like it is greater than zero, but is
actually not.
--
Gary''s Student - gsnu200817


"Kell2604" wrote:

I am having trouble with a formula. Most of the time it calculates
correctly. It is a sumproduct formula which is supposed to count cells in a
range which are greater than 0 if the cells in a different range (column)
contain a certain word. Ie. count all cells in range XX if cells in range
YY = specific text. For some reason it does not count a few lines in the
spreadsheet. It comes back with 32 when it should show 33 etc. I have
narrowed down which rows are a problem - I'm just wondering if anyone has any
ideas why the formula would not count a certain row. Is it a formatting
issue? What things should I check for?? What kinds of things would cause it
to bring back an incorrect value?

Thanks very much!

Formula: =SUMPRODUCT(--('Shipped against rqd Nov08'!$AH$4:$AH$527="Bus Jet
OEM"),--('Shipped against rqd Nov08'!AP$4:AP$5270))

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Formula Problem

Are you sure that the relevant entry in column AH contains "Bus Jet OEM" and
nothing else? Are there odd spaces or other non-printing characters?
Does =LEN(AH4) or whatever the row number is, show 11?

If you are still struggling you can debug the two halves separately by using
the formulae
=('Shipped against rqd Nov08'!AH4="Bus Jet OEM")
and =('Shipped against rqd Nov08'!AP40)
and copying them down the columns checking for TRUE or FALSE
--
David Biddulph

"Kell2604" wrote in message
...
I am having trouble with a formula. Most of the time it calculates
correctly. It is a sumproduct formula which is supposed to count cells in
a
range which are greater than 0 if the cells in a different range (column)
contain a certain word. Ie. count all cells in range XX if cells in
range
YY = specific text. For some reason it does not count a few lines in the
spreadsheet. It comes back with 32 when it should show 33 etc. I have
narrowed down which rows are a problem - I'm just wondering if anyone has
any
ideas why the formula would not count a certain row. Is it a formatting
issue? What things should I check for?? What kinds of things would cause
it
to bring back an incorrect value?

Thanks very much!

Formula: =SUMPRODUCT(--('Shipped against rqd Nov08'!$AH$4:$AH$527="Bus
Jet
OEM"),--('Shipped against rqd Nov08'!AP$4:AP$5270))



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default Formula Problem

Can you explain how that would be? I have sperated out 2 rows. One which
the formula counts and the other it does not. They both have the number 2.2
in the cell to be counted. If I check the formatting they are both formatted
as a number with one decimal. If I do a customer filter for all rows with a
cell value greater than 0 they both come up.

"Gary''s Student" wrote:

It is probably a value that LOOKS like it is greater than zero, but is
actually not.
--
Gary''s Student - gsnu200817


"Kell2604" wrote:

I am having trouble with a formula. Most of the time it calculates
correctly. It is a sumproduct formula which is supposed to count cells in a
range which are greater than 0 if the cells in a different range (column)
contain a certain word. Ie. count all cells in range XX if cells in range
YY = specific text. For some reason it does not count a few lines in the
spreadsheet. It comes back with 32 when it should show 33 etc. I have
narrowed down which rows are a problem - I'm just wondering if anyone has any
ideas why the formula would not count a certain row. Is it a formatting
issue? What things should I check for?? What kinds of things would cause it
to bring back an incorrect value?

Thanks very much!

Formula: =SUMPRODUCT(--('Shipped against rqd Nov08'!$AH$4:$AH$527="Bus Jet
OEM"),--('Shipped against rqd Nov08'!AP$4:AP$5270))

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Formula Problem

Very good.

The next thing to look for is text problems:

"Bus Jet OEM "
instead of:
"Bus Jet OEM"


--
Gary''s Student - gsnu200817


"Kell2604" wrote:

Can you explain how that would be? I have sperated out 2 rows. One which
the formula counts and the other it does not. They both have the number 2.2
in the cell to be counted. If I check the formatting they are both formatted
as a number with one decimal. If I do a customer filter for all rows with a
cell value greater than 0 they both come up.

"Gary''s Student" wrote:

It is probably a value that LOOKS like it is greater than zero, but is
actually not.
--
Gary''s Student - gsnu200817


"Kell2604" wrote:

I am having trouble with a formula. Most of the time it calculates
correctly. It is a sumproduct formula which is supposed to count cells in a
range which are greater than 0 if the cells in a different range (column)
contain a certain word. Ie. count all cells in range XX if cells in range
YY = specific text. For some reason it does not count a few lines in the
spreadsheet. It comes back with 32 when it should show 33 etc. I have
narrowed down which rows are a problem - I'm just wondering if anyone has any
ideas why the formula would not count a certain row. Is it a formatting
issue? What things should I check for?? What kinds of things would cause it
to bring back an incorrect value?

Thanks very much!

Formula: =SUMPRODUCT(--('Shipped against rqd Nov08'!$AH$4:$AH$527="Bus Jet
OEM"),--('Shipped against rqd Nov08'!AP$4:AP$5270))



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default Formula Problem

Thanks guys for all of your help. I haven't figured it out yet, but I'll
keep plugging away at it. It is something in the text field. I have been
able to rule the number out.

Thanks again!!
Kelley

"David Biddulph" wrote:

Are you sure that the relevant entry in column AH contains "Bus Jet OEM" and
nothing else? Are there odd spaces or other non-printing characters?
Does =LEN(AH4) or whatever the row number is, show 11?

If you are still struggling you can debug the two halves separately by using
the formulae
=('Shipped against rqd Nov08'!AH4="Bus Jet OEM")
and =('Shipped against rqd Nov08'!AP40)
and copying them down the columns checking for TRUE or FALSE
--
David Biddulph

"Kell2604" wrote in message
...
I am having trouble with a formula. Most of the time it calculates
correctly. It is a sumproduct formula which is supposed to count cells in
a
range which are greater than 0 if the cells in a different range (column)
contain a certain word. Ie. count all cells in range XX if cells in
range
YY = specific text. For some reason it does not count a few lines in the
spreadsheet. It comes back with 32 when it should show 33 etc. I have
narrowed down which rows are a problem - I'm just wondering if anyone has
any
ideas why the formula would not count a certain row. Is it a formatting
issue? What things should I check for?? What kinds of things would cause
it
to bring back an incorrect value?

Thanks very much!

Formula: =SUMPRODUCT(--('Shipped against rqd Nov08'!$AH$4:$AH$527="Bus
Jet
OEM"),--('Shipped against rqd Nov08'!AP$4:AP$5270))




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Formula Problem

Hi,

FYI, if you made a pivot table from this data you would have spotted the
type instantly because the pivot table would create two categories which
"looked" the same. And the only time the pivot table creates a different
category is when the items are different. In other words pivot tables act
like they incorporate spell checking.

Cheers,
Shane Devenshire

"Kell2604" wrote:

I am having trouble with a formula. Most of the time it calculates
correctly. It is a sumproduct formula which is supposed to count cells in a
range which are greater than 0 if the cells in a different range (column)
contain a certain word. Ie. count all cells in range XX if cells in range
YY = specific text. For some reason it does not count a few lines in the
spreadsheet. It comes back with 32 when it should show 33 etc. I have
narrowed down which rows are a problem - I'm just wondering if anyone has any
ideas why the formula would not count a certain row. Is it a formatting
issue? What things should I check for?? What kinds of things would cause it
to bring back an incorrect value?

Thanks very much!

Formula: =SUMPRODUCT(--('Shipped against rqd Nov08'!$AH$4:$AH$527="Bus Jet
OEM"),--('Shipped against rqd Nov08'!AP$4:AP$5270))

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
Another formula problem Frances C[_2_] Excel Worksheet Functions 6 November 1st 07 01:37 AM
Problem with =IF(AND........ formula PSU35 Excel Worksheet Functions 5 October 2nd 07 10:08 PM
Formula problem David Excel Discussion (Misc queries) 3 August 17th 07 11:21 AM
formula problem John48 Excel Worksheet Functions 8 August 7th 06 05:17 PM
Formula problem Giff Excel Discussion (Misc queries) 5 March 31st 05 11:23 PM


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