#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Counting

I have a spreadsheet containing thousands of records (each row is a different
record) and 20 different data columns.

I want to count the number of records when the a specific number is in one
column and a date (any date) appears in the second column. The column
containing the dates may also contain blank cells, since this column is not
filled in until some action triggers the need to put in a date. I've tried
the following formula and get "0". Can someone help?

=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869="01/01/2006"))
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Counting

Try it this way:

=SUMPRODUCT((E4:E869=1247.24)*(AC4:AC869=--"01/01/2006"))

You can't mix up text and numbers.

Hope this helps.

Pete

"Civette" wrote in message
...
I have a spreadsheet containing thousands of records (each row is a
different
record) and 20 different data columns.

I want to count the number of records when the a specific number is in one
column and a date (any date) appears in the second column. The column
containing the dates may also contain blank cells, since this column is
not
filled in until some action triggers the need to put in a date. I've
tried
the following formula and get "0". Can someone help?

=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869="01/01/2006"))



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Counting

Tried, and it didn't work. Could I be getting snagged on some type of
formatting glitch?

"Pete_UK" wrote:

Try it this way:

=SUMPRODUCT((E4:E869=1247.24)*(AC4:AC869=--"01/01/2006"))

You can't mix up text and numbers.

Hope this helps.

Pete

"Civette" wrote in message
...
I have a spreadsheet containing thousands of records (each row is a
different
record) and 20 different data columns.

I want to count the number of records when the a specific number is in one
column and a date (any date) appears in the second column. The column
containing the dates may also contain blank cells, since this column is
not
filled in until some action triggers the need to put in a date. I've
tried
the following formula and get "0". Can someone help?

=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869="01/01/2006"))




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Counting

Yes, it might be that your dates are text values that just look like dates,
or that the numbers in column E are not really numbers but text values also.
I see in your comments to Biff that you are not searching for a specific
date, so you might like to try these:

=SUMPRODUCT((E4:E869=1247.24)*(AC4:AC869<""))
and:
=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869<""))

to see which of them give you an answer other than zero.

Hope this helps.

Pete

"Civette" wrote in message
...
Tried, and it didn't work. Could I be getting snagged on some type of
formatting glitch?

"Pete_UK" wrote:

Try it this way:

=SUMPRODUCT((E4:E869=1247.24)*(AC4:AC869=--"01/01/2006"))

You can't mix up text and numbers.

Hope this helps.

Pete

"Civette" wrote in message
...
I have a spreadsheet containing thousands of records (each row is a
different
record) and 20 different data columns.

I want to count the number of records when the a specific number is in
one
column and a date (any date) appears in the second column. The column
containing the dates may also contain blank cells, since this column is
not
filled in until some action triggers the need to put in a date. I've
tried
the following formula and get "0". Can someone help?

=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869="01/01/2006"))






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Counting

It might also be that the number that looks like 1247.24 is not actually
that value - if the cell is formatted to 2 dp then it could be any number
between 1247.235 and 1247.2449999etc, so you might like to change the first
condition to:

(ROUND(E4:E869,2)=1247.24)

Hope this helps.

Pete

"Pete_UK" wrote in message
...
Yes, it might be that your dates are text values that just look like
dates, or that the numbers in column E are not really numbers but text
values also. I see in your comments to Biff that you are not searching for
a specific date, so you might like to try these:

=SUMPRODUCT((E4:E869=1247.24)*(AC4:AC869<""))
and:
=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869<""))

to see which of them give you an answer other than zero.

Hope this helps.

Pete

"Civette" wrote in message
...
Tried, and it didn't work. Could I be getting snagged on some type of
formatting glitch?

"Pete_UK" wrote:

Try it this way:

=SUMPRODUCT((E4:E869=1247.24)*(AC4:AC869=--"01/01/2006"))

You can't mix up text and numbers.

Hope this helps.

Pete

"Civette" wrote in message
...
I have a spreadsheet containing thousands of records (each row is a
different
record) and 20 different data columns.

I want to count the number of records when the a specific number is in
one
column and a date (any date) appears in the second column. The column
containing the dates may also contain blank cells, since this column
is
not
filled in until some action triggers the need to put in a date. I've
tried
the following formula and get "0". Can someone help?

=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869="01/01/2006"))









  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Counting

Still not working. I'm Stumped

"Pete_UK" wrote:

It might also be that the number that looks like 1247.24 is not actually
that value - if the cell is formatted to 2 dp then it could be any number
between 1247.235 and 1247.2449999etc, so you might like to change the first
condition to:

(ROUND(E4:E869,2)=1247.24)

Hope this helps.

Pete

"Pete_UK" wrote in message
...
Yes, it might be that your dates are text values that just look like
dates, or that the numbers in column E are not really numbers but text
values also. I see in your comments to Biff that you are not searching for
a specific date, so you might like to try these:

=SUMPRODUCT((E4:E869=1247.24)*(AC4:AC869<""))
and:
=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869<""))

to see which of them give you an answer other than zero.

Hope this helps.

Pete

"Civette" wrote in message
...
Tried, and it didn't work. Could I be getting snagged on some type of
formatting glitch?

"Pete_UK" wrote:

Try it this way:

=SUMPRODUCT((E4:E869=1247.24)*(AC4:AC869=--"01/01/2006"))

You can't mix up text and numbers.

Hope this helps.

Pete

"Civette" wrote in message
...
I have a spreadsheet containing thousands of records (each row is a
different
record) and 20 different data columns.

I want to count the number of records when the a specific number is in
one
column and a date (any date) appears in the second column. The column
containing the dates may also contain blank cells, since this column
is
not
filled in until some action triggers the need to put in a date. I've
tried
the following formula and get "0". Can someone help?

=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869="01/01/2006"))








  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Counting

IT worked. Yeah. I did a bit of data manipulation and it's working. Thank
you all for your help

"Pete_UK" wrote:

It might also be that the number that looks like 1247.24 is not actually
that value - if the cell is formatted to 2 dp then it could be any number
between 1247.235 and 1247.2449999etc, so you might like to change the first
condition to:

(ROUND(E4:E869,2)=1247.24)

Hope this helps.

Pete

"Pete_UK" wrote in message
...
Yes, it might be that your dates are text values that just look like
dates, or that the numbers in column E are not really numbers but text
values also. I see in your comments to Biff that you are not searching for
a specific date, so you might like to try these:

=SUMPRODUCT((E4:E869=1247.24)*(AC4:AC869<""))
and:
=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869<""))

to see which of them give you an answer other than zero.

Hope this helps.

Pete

"Civette" wrote in message
...
Tried, and it didn't work. Could I be getting snagged on some type of
formatting glitch?

"Pete_UK" wrote:

Try it this way:

=SUMPRODUCT((E4:E869=1247.24)*(AC4:AC869=--"01/01/2006"))

You can't mix up text and numbers.

Hope this helps.

Pete

"Civette" wrote in message
...
I have a spreadsheet containing thousands of records (each row is a
different
record) and 20 different data columns.

I want to count the number of records when the a specific number is in
one
column and a date (any date) appears in the second column. The column
containing the dates may also contain blank cells, since this column
is
not
filled in until some action triggers the need to put in a date. I've
tried
the following formula and get "0". Can someone help?

=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869="01/01/2006"))








  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Counting

a date (any date) appears in the second column.

Hmmm....

You say "any date" but yet you're testing for a specific date criteria!

Try it like this:

=SUMPRODUCT(--(E4:E869=1247.24),--(AC4:AC869=DATE(2006,1,1)))

Better to use cells to hold the criteria then you won't get messed up with
quotation marks:

A1 = 1247.24
B1 = 1/1/2006

=SUMPRODUCT(--(E4:E869=A1),--(AC4:AC869=B1))


--
Biff
Microsoft Excel MVP


"Civette" wrote in message
...
I have a spreadsheet containing thousands of records (each row is a
different
record) and 20 different data columns.

I want to count the number of records when the a specific number is in one
column and a date (any date) appears in the second column. The column
containing the dates may also contain blank cells, since this column is
not
filled in until some action triggers the need to put in a date. I've
tried
the following formula and get "0". Can someone help?

=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869="01/01/2006"))



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Counting

I originally tried using
=SUMPRODUCT((E4:E869="1247.24")*AC4:AC869="**/**/**")) but had no success.
So, I tried a specific number since I knew that date met the criteria I was
looking for...and, still I received a "0" .

"T. Valko" wrote:

a date (any date) appears in the second column.


Hmmm....

You say "any date" but yet you're testing for a specific date criteria!

Try it like this:

=SUMPRODUCT(--(E4:E869=1247.24),--(AC4:AC869=DATE(2006,1,1)))

Better to use cells to hold the criteria then you won't get messed up with
quotation marks:

A1 = 1247.24
B1 = 1/1/2006

=SUMPRODUCT(--(E4:E869=A1),--(AC4:AC869=B1))


--
Biff
Microsoft Excel MVP


"Civette" wrote in message
...
I have a spreadsheet containing thousands of records (each row is a
different
record) and 20 different data columns.

I want to count the number of records when the a specific number is in one
column and a date (any date) appears in the second column. The column
containing the dates may also contain blank cells, since this column is
not
filled in until some action triggers the need to put in a date. I've
tried
the following formula and get "0". Can someone help?

=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869="01/01/2006"))




  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Counting

Ok, if you do want to count *any date* try it like this:

=SUMPRODUCT(--(E4:E869=1247.24),--(ISNUMBER(AC4:AC869)))

Dates are really just numbers formatted to look like a date.


--
Biff
Microsoft Excel MVP


"Civette" wrote in message
...
I originally tried using
=SUMPRODUCT((E4:E869="1247.24")*AC4:AC869="**/**/**")) but had no
success.
So, I tried a specific number since I knew that date met the criteria I
was
looking for...and, still I received a "0" .

"T. Valko" wrote:

a date (any date) appears in the second column.


Hmmm....

You say "any date" but yet you're testing for a specific date criteria!

Try it like this:

=SUMPRODUCT(--(E4:E869=1247.24),--(AC4:AC869=DATE(2006,1,1)))

Better to use cells to hold the criteria then you won't get messed up
with
quotation marks:

A1 = 1247.24
B1 = 1/1/2006

=SUMPRODUCT(--(E4:E869=A1),--(AC4:AC869=B1))


--
Biff
Microsoft Excel MVP


"Civette" wrote in message
...
I have a spreadsheet containing thousands of records (each row is a
different
record) and 20 different data columns.

I want to count the number of records when the a specific number is in
one
column and a date (any date) appears in the second column. The column
containing the dates may also contain blank cells, since this column is
not
filled in until some action triggers the need to put in a date. I've
tried
the following formula and get "0". Can someone help?

=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869="01/01/2006"))








  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Counting

Didn't work.
I can successfully use =count(AC4:AC869) to get an accurate count of the
number of dates in the column. Could we use something like that with the
Sumproduct to achieve my count criteria? for instance
=SUMPRODUCT(--(E4:E869=1247.24),COUNT(AC4:AC869)))

"T. Valko" wrote:

Ok, if you do want to count *any date* try it like this:

=SUMPRODUCT(--(E4:E869=1247.24),--(ISNUMBER(AC4:AC869)))

Dates are really just numbers formatted to look like a date.


--
Biff
Microsoft Excel MVP


"Civette" wrote in message
...
I originally tried using
=SUMPRODUCT((E4:E869="1247.24")*AC4:AC869="**/**/**")) but had no
success.
So, I tried a specific number since I knew that date met the criteria I
was
looking for...and, still I received a "0" .

"T. Valko" wrote:

a date (any date) appears in the second column.

Hmmm....

You say "any date" but yet you're testing for a specific date criteria!

Try it like this:

=SUMPRODUCT(--(E4:E869=1247.24),--(AC4:AC869=DATE(2006,1,1)))

Better to use cells to hold the criteria then you won't get messed up
with
quotation marks:

A1 = 1247.24
B1 = 1/1/2006

=SUMPRODUCT(--(E4:E869=A1),--(AC4:AC869=B1))


--
Biff
Microsoft Excel MVP


"Civette" wrote in message
...
I have a spreadsheet containing thousands of records (each row is a
different
record) and 20 different data columns.

I want to count the number of records when the a specific number is in
one
column and a date (any date) appears in the second column. The column
containing the dates may also contain blank cells, since this column is
not
filled in until some action triggers the need to put in a date. I've
tried
the following formula and get "0". Can someone help?

=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869="01/01/2006"))






  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Counting

It doesn't look like you've tried Biff's first suggestion.

Use =date() when entering the date--not just a string.

Civette wrote:

I originally tried using
=SUMPRODUCT((E4:E869="1247.24")*AC4:AC869="**/**/**")) but had no success.
So, I tried a specific number since I knew that date met the criteria I was
looking for...and, still I received a "0" .

"T. Valko" wrote:

a date (any date) appears in the second column.


Hmmm....

You say "any date" but yet you're testing for a specific date criteria!

Try it like this:

=SUMPRODUCT(--(E4:E869=1247.24),--(AC4:AC869=DATE(2006,1,1)))

Better to use cells to hold the criteria then you won't get messed up with
quotation marks:

A1 = 1247.24
B1 = 1/1/2006

=SUMPRODUCT(--(E4:E869=A1),--(AC4:AC869=B1))


--
Biff
Microsoft Excel MVP


"Civette" wrote in message
...
I have a spreadsheet containing thousands of records (each row is a
different
record) and 20 different data columns.

I want to count the number of records when the a specific number is in one
column and a date (any date) appears in the second column. The column
containing the dates may also contain blank cells, since this column is
not
filled in until some action triggers the need to put in a date. I've
tried
the following formula and get "0". Can someone help?

=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869="01/01/2006"))





--

Dave Peterson
  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Counting

=date() only works for a specific date. Unfortunately, I'm not interested in
a specific date, I am interested in all records that meet 2 criteria: column
A =1247.24 and Column E contains a date. If you have any ideas, I'm open to
suggestions.


.."Dave Peterson" wrote:

It doesn't look like you've tried Biff's first suggestion.

Use =date() when entering the date--not just a string.

Civette wrote:

I originally tried using
=SUMPRODUCT((E4:E869="1247.24")*AC4:AC869="**/**/**")) but had no success.
So, I tried a specific number since I knew that date met the criteria I was
looking for...and, still I received a "0" .

"T. Valko" wrote:

a date (any date) appears in the second column.

Hmmm....

You say "any date" but yet you're testing for a specific date criteria!

Try it like this:

=SUMPRODUCT(--(E4:E869=1247.24),--(AC4:AC869=DATE(2006,1,1)))

Better to use cells to hold the criteria then you won't get messed up with
quotation marks:

A1 = 1247.24
B1 = 1/1/2006

=SUMPRODUCT(--(E4:E869=A1),--(AC4:AC869=B1))


--
Biff
Microsoft Excel MVP


"Civette" wrote in message
...
I have a spreadsheet containing thousands of records (each row is a
different
record) and 20 different data columns.

I want to count the number of records when the a specific number is in one
column and a date (any date) appears in the second column. The column
containing the dates may also contain blank cells, since this column is
not
filled in until some action triggers the need to put in a date. I've
tried
the following formula and get "0". Can someone help?

=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869="01/01/2006"))




--

Dave Peterson

  #14   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Counting

=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869<""))
or
=SUMPRODUCT((E4:E869="1247.24")*(isnumber(AC4:AC86 9)))

If you have any text in ac4:ac869, then this won't give you the results you
want.

If you have any numeric entries in ac4:ac869 that are not dates, then this won't
work.


Civette wrote:

=date() only works for a specific date. Unfortunately, I'm not interested in
a specific date, I am interested in all records that meet 2 criteria: column
A =1247.24 and Column E contains a date. If you have any ideas, I'm open to
suggestions.

."Dave Peterson" wrote:

It doesn't look like you've tried Biff's first suggestion.

Use =date() when entering the date--not just a string.

Civette wrote:

I originally tried using
=SUMPRODUCT((E4:E869="1247.24")*AC4:AC869="**/**/**")) but had no success.
So, I tried a specific number since I knew that date met the criteria I was
looking for...and, still I received a "0" .

"T. Valko" wrote:

a date (any date) appears in the second column.

Hmmm....

You say "any date" but yet you're testing for a specific date criteria!

Try it like this:

=SUMPRODUCT(--(E4:E869=1247.24),--(AC4:AC869=DATE(2006,1,1)))

Better to use cells to hold the criteria then you won't get messed up with
quotation marks:

A1 = 1247.24
B1 = 1/1/2006

=SUMPRODUCT(--(E4:E869=A1),--(AC4:AC869=B1))


--
Biff
Microsoft Excel MVP


"Civette" wrote in message
...
I have a spreadsheet containing thousands of records (each row is a
different
record) and 20 different data columns.

I want to count the number of records when the a specific number is in one
column and a date (any date) appears in the second column. The column
containing the dates may also contain blank cells, since this column is
not
filled in until some action triggers the need to put in a date. I've
tried
the following formula and get "0". Can someone help?

=SUMPRODUCT((E4:E869="1247.24")*(AC4:AC869="01/01/2006"))




--

Dave Peterson


--

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
counting Alex Excel Discussion (Misc queries) 2 April 17th 08 05:12 PM
counting function but not double counting duplicates JRD Excel Worksheet Functions 2 November 7th 07 06:43 PM
Counting faberk Excel Worksheet Functions 2 September 7th 06 06:42 PM
Counting rows, then counting values. Michael via OfficeKB.com Excel Discussion (Misc queries) 7 August 4th 05 10:57 PM
Counting names in a column but counting duplicate names once TBoe Excel Discussion (Misc queries) 9 May 11th 05 11:24 PM


All times are GMT +1. The time now is 11:19 AM.

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"