#1   Report Post  
Posted to microsoft.public.excel.misc
Rich
 
Posts: n/a
Default COUNTIF arguments

hello... i am attempting to make a sprdsheet related to work on Excel 97 and
i need a cell to show how many items there are of a set type using to
arguments....

for example, my A:A column is date, and my K:K column is refunds, i need it
to count how many 'yes' values are showing in the refund column for a certain
date.

i can make it count 'yes' values, and i can make it count how many items on
a date but cant seem to get it to use both criteria to get a result.

any assistance would be greatly appreciated.
--
- Rich
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default COUNTIF arguments

=sumproduct(--(a1:A100=date(2005,12,31)),--(k1:k100="yes"))

Adjust the range to what you want, but you can't use the whole column.

=sumproduct() likes to work with numbers. The -- stuff changes trues to 1's and
falses to 0's.

Rich wrote:

hello... i am attempting to make a sprdsheet related to work on Excel 97 and
i need a cell to show how many items there are of a set type using to
arguments....

for example, my A:A column is date, and my K:K column is refunds, i need it
to count how many 'yes' values are showing in the refund column for a certain
date.

i can make it count 'yes' values, and i can make it count how many items on
a date but cant seem to get it to use both criteria to get a result.

any assistance would be greatly appreciated.
--
- Rich


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default COUNTIF arguments

If you have quite a few entries, you might consider using a Pivot Table:

First, make sure you have column headings: Data, Customer, etc

DataPivot Table
Use Excel List
Select your data range
Click the [Layout] button

ROW:
Drag the Date field here
Dbl-Click that field and set subtotals to None

Drag the Refunds field here (Col_K heading?)
Dbl-Click that field and set subtotals to None

DATA:
Set to Count of Refunds
Then Click the [OK] button

Select a place for your Pivot Table...done


Does that help?

***********
Regards,
Ron


"Rich" wrote:

hello... i am attempting to make a sprdsheet related to work on Excel 97 and
i need a cell to show how many items there are of a set type using to
arguments....

for example, my A:A column is date, and my K:K column is refunds, i need it
to count how many 'yes' values are showing in the refund column for a certain
date.

i can make it count 'yes' values, and i can make it count how many items on
a date but cant seem to get it to use both criteria to get a result.

any assistance would be greatly appreciated.
--
- Rich

  #4   Report Post  
Posted to microsoft.public.excel.misc
Rich
 
Posts: n/a
Default COUNTIF arguments

thank you!! i have been trying to solve this for ages... wonderful help. much
appreciated.
--
- Rich


"Dave Peterson" wrote:

=sumproduct(--(a1:A100=date(2005,12,31)),--(k1:k100="yes"))

Adjust the range to what you want, but you can't use the whole column.

=sumproduct() likes to work with numbers. The -- stuff changes trues to 1's and
falses to 0's.

Rich wrote:

hello... i am attempting to make a sprdsheet related to work on Excel 97 and
i need a cell to show how many items there are of a set type using to
arguments....

for example, my A:A column is date, and my K:K column is refunds, i need it
to count how many 'yes' values are showing in the refund column for a certain
date.

i can make it count 'yes' values, and i can make it count how many items on
a date but cant seem to get it to use both criteria to get a result.

any assistance would be greatly appreciated.
--
- Rich


--

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
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
How do I set up an array using countif for 2 separate arguments. crich Excel Worksheet Functions 5 August 16th 05 09:22 AM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM
countif, again Liz G Excel Worksheet Functions 2 November 1st 04 11:20 PM


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