Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default Help with countif and sumif functions

I'm making a spreadsheet of 3 employees that will display what they have sold
to each different customer they talk to. In one column I have the
salesperson, identified as a number, and in the next column I have
Warranties. So if they sold a warranty to that person the price will be
typed in.

I have used the Countif function to count the number of people each sales
person has seen w/the formula, =COUNTIF(A7:A102,"1") .. where the sales
person is identified by 1.

I used the Sumif function to count the total warranty revenue by each sales
person w/the formula =SUMIF(A7:A102,"1",E7:E102).. where the sales person is
1 and column E contains the revenue.

But I also need to be able to count the total warranties sold by each sales
person. So if salesperson "1" has sold 8 warranties the formula will =8.

Any help is greatly appreciated! Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Help with countif and sumif functions

I think you want SUMPRODUCT.

=SUMPRODUCT(--(A7:A102="1"),--(B7:B102="Yes"))

In the above formula, it assumes that a warranty sold is indicated by "Yes"
in column B. You can adjust this to meet the actual criteria.

Does that do what you want?
Regards,
Paul

--

"Clay" wrote in message
...
I'm making a spreadsheet of 3 employees that will display what they have
sold
to each different customer they talk to. In one column I have the
salesperson, identified as a number, and in the next column I have
Warranties. So if they sold a warranty to that person the price will be
typed in.

I have used the Countif function to count the number of people each sales
person has seen w/the formula, =COUNTIF(A7:A102,"1") .. where the sales
person is identified by 1.

I used the Sumif function to count the total warranty revenue by each
sales
person w/the formula =SUMIF(A7:A102,"1",E7:E102).. where the sales person
is
1 and column E contains the revenue.

But I also need to be able to count the total warranties sold by each
sales
person. So if salesperson "1" has sold 8 warranties the formula will =8.

Any help is greatly appreciated! Thanks.




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default Help with countif and sumif functions

Thanks for the quick response.. I have the cost of the warranty sold in the
warranty column, and they are all different.

I just tried =SUMPRODUCT(--(A7:A102="1"),--(E7:E102="0")) but its coming up
as 0.

Any more suggestions? And thanks again for the help!

"PCLIVE" wrote:

I think you want SUMPRODUCT.

=SUMPRODUCT(--(A7:A102="1"),--(B7:B102="Yes"))

In the above formula, it assumes that a warranty sold is indicated by "Yes"
in column B. You can adjust this to meet the actual criteria.

Does that do what you want?
Regards,
Paul

--

"Clay" wrote in message
...
I'm making a spreadsheet of 3 employees that will display what they have
sold
to each different customer they talk to. In one column I have the
salesperson, identified as a number, and in the next column I have
Warranties. So if they sold a warranty to that person the price will be
typed in.

I have used the Countif function to count the number of people each sales
person has seen w/the formula, =COUNTIF(A7:A102,"1") .. where the sales
person is identified by 1.

I used the Sumif function to count the total warranty revenue by each
sales
person w/the formula =SUMIF(A7:A102,"1",E7:E102).. where the sales person
is
1 and column E contains the revenue.

But I also need to be able to count the total warranties sold by each
sales
person. So if salesperson "1" has sold 8 warranties the formula will =8.

Any help is greatly appreciated! Thanks.





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 100
Default Help with countif and sumif functions

Don't use quotes: =SUMPRODUCT(--(A7:A102=1),--(E7:E1020))

"Clay" wrote:

Thanks for the quick response.. I have the cost of the warranty sold in the
warranty column, and they are all different.

I just tried =SUMPRODUCT(--(A7:A102="1"),--(E7:E102="0")) but its coming up
as 0.

Any more suggestions? And thanks again for the help!

"PCLIVE" wrote:

I think you want SUMPRODUCT.

=SUMPRODUCT(--(A7:A102="1"),--(B7:B102="Yes"))

In the above formula, it assumes that a warranty sold is indicated by "Yes"
in column B. You can adjust this to meet the actual criteria.

Does that do what you want?
Regards,
Paul

--

"Clay" wrote in message
...
I'm making a spreadsheet of 3 employees that will display what they have
sold
to each different customer they talk to. In one column I have the
salesperson, identified as a number, and in the next column I have
Warranties. So if they sold a warranty to that person the price will be
typed in.

I have used the Countif function to count the number of people each sales
person has seen w/the formula, =COUNTIF(A7:A102,"1") .. where the sales
person is identified by 1.

I used the Sumif function to count the total warranty revenue by each
sales
person w/the formula =SUMIF(A7:A102,"1",E7:E102).. where the sales person
is
1 and column E contains the revenue.

But I also need to be able to count the total warranties sold by each
sales
person. So if salesperson "1" has sold 8 warranties the formula will =8.

Any help is greatly appreciated! Thanks.





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Help with countif and sumif functions

Bob Phillips formula is the best way to go by using the ISNUMBER function.

So going with what you currently have, adjust your formula as follows.
=SUMPRODUCT(--(A7:A102="1"),--(ISNUMBER(E7:E102)))

The ISNUMBER function determines if the values in the range are numbers as
opposed to text. Zero is not counted with this.

Keep this in mind. If you are using actual numbers to represent sales
people, then you won't include quotes around it as that would be text.
Since your COUNT formulas were working, I assumed that you used the number
one just as an example.

HTH,
Paul



--

"Clay" wrote in message
...
Thanks for the quick response.. I have the cost of the warranty sold in
the
warranty column, and they are all different.

I just tried =SUMPRODUCT(--(A7:A102="1"),--(E7:E102="0")) but its coming
up
as 0.

Any more suggestions? And thanks again for the help!

"PCLIVE" wrote:

I think you want SUMPRODUCT.

=SUMPRODUCT(--(A7:A102="1"),--(B7:B102="Yes"))

In the above formula, it assumes that a warranty sold is indicated by
"Yes"
in column B. You can adjust this to meet the actual criteria.

Does that do what you want?
Regards,
Paul

--

"Clay" wrote in message
...
I'm making a spreadsheet of 3 employees that will display what they
have
sold
to each different customer they talk to. In one column I have the
salesperson, identified as a number, and in the next column I have
Warranties. So if they sold a warranty to that person the price will
be
typed in.

I have used the Countif function to count the number of people each
sales
person has seen w/the formula, =COUNTIF(A7:A102,"1") .. where the sales
person is identified by 1.

I used the Sumif function to count the total warranty revenue by each
sales
person w/the formula =SUMIF(A7:A102,"1",E7:E102).. where the sales
person
is
1 and column E contains the revenue.

But I also need to be able to count the total warranties sold by each
sales
person. So if salesperson "1" has sold 8 warranties the formula will
=8.

Any help is greatly appreciated! Thanks.









  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Help with countif and sumif functions

Paul,

Be aware that COUNTIF will count numeric values even if embedded with
quotes. SUMPRODUCT won't.

A1:A4: 1,1,1,1

=COUNTIF(A1:A4,"1") returns 4

=SUMPRODUCT(--(A1:A4="1")) returns 0

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"PCLIVE" wrote in message
...
Bob Phillips formula is the best way to go by using the ISNUMBER function.

So going with what you currently have, adjust your formula as follows.
=SUMPRODUCT(--(A7:A102="1"),--(ISNUMBER(E7:E102)))

The ISNUMBER function determines if the values in the range are numbers as
opposed to text. Zero is not counted with this.

Keep this in mind. If you are using actual numbers to represent sales
people, then you won't include quotes around it as that would be text.
Since your COUNT formulas were working, I assumed that you used the number
one just as an example.

HTH,
Paul



--

"Clay" wrote in message
...
Thanks for the quick response.. I have the cost of the warranty sold in
the
warranty column, and they are all different.

I just tried =SUMPRODUCT(--(A7:A102="1"),--(E7:E102="0")) but its coming
up
as 0.

Any more suggestions? And thanks again for the help!

"PCLIVE" wrote:

I think you want SUMPRODUCT.

=SUMPRODUCT(--(A7:A102="1"),--(B7:B102="Yes"))

In the above formula, it assumes that a warranty sold is indicated by
"Yes"
in column B. You can adjust this to meet the actual criteria.

Does that do what you want?
Regards,
Paul

--

"Clay" wrote in message
...
I'm making a spreadsheet of 3 employees that will display what they
have
sold
to each different customer they talk to. In one column I have the
salesperson, identified as a number, and in the next column I have
Warranties. So if they sold a warranty to that person the price will
be
typed in.

I have used the Countif function to count the number of people each
sales
person has seen w/the formula, =COUNTIF(A7:A102,"1") .. where the
sales
person is identified by 1.

I used the Sumif function to count the total warranty revenue by each
sales
person w/the formula =SUMIF(A7:A102,"1",E7:E102).. where the sales
person
is
1 and column E contains the revenue.

But I also need to be able to count the total warranties sold by each
sales
person. So if salesperson "1" has sold 8 warranties the formula will
=8.

Any help is greatly appreciated! Thanks.









  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Help with countif and sumif functions

Oops! You are correct. I was hung up on SUMPRODUCT for some reason.

Thanks for pointing that out.

--

"Bob Phillips" wrote in message
...
Paul,

Be aware that COUNTIF will count numeric values even if embedded with
quotes. SUMPRODUCT won't.

A1:A4: 1,1,1,1

=COUNTIF(A1:A4,"1") returns 4

=SUMPRODUCT(--(A1:A4="1")) returns 0

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"PCLIVE" wrote in message
...
Bob Phillips formula is the best way to go by using the ISNUMBER
function.

So going with what you currently have, adjust your formula as follows.
=SUMPRODUCT(--(A7:A102="1"),--(ISNUMBER(E7:E102)))

The ISNUMBER function determines if the values in the range are numbers
as opposed to text. Zero is not counted with this.

Keep this in mind. If you are using actual numbers to represent sales
people, then you won't include quotes around it as that would be text.
Since your COUNT formulas were working, I assumed that you used the
number one just as an example.

HTH,
Paul



--

"Clay" wrote in message
...
Thanks for the quick response.. I have the cost of the warranty sold in
the
warranty column, and they are all different.

I just tried =SUMPRODUCT(--(A7:A102="1"),--(E7:E102="0")) but its
coming up
as 0.

Any more suggestions? And thanks again for the help!

"PCLIVE" wrote:

I think you want SUMPRODUCT.

=SUMPRODUCT(--(A7:A102="1"),--(B7:B102="Yes"))

In the above formula, it assumes that a warranty sold is indicated by
"Yes"
in column B. You can adjust this to meet the actual criteria.

Does that do what you want?
Regards,
Paul

--

"Clay" wrote in message
...
I'm making a spreadsheet of 3 employees that will display what they
have
sold
to each different customer they talk to. In one column I have the
salesperson, identified as a number, and in the next column I have
Warranties. So if they sold a warranty to that person the price will
be
typed in.

I have used the Countif function to count the number of people each
sales
person has seen w/the formula, =COUNTIF(A7:A102,"1") .. where the
sales
person is identified by 1.

I used the Sumif function to count the total warranty revenue by each
sales
person w/the formula =SUMIF(A7:A102,"1",E7:E102).. where the sales
person
is
1 and column E contains the revenue.

But I also need to be able to count the total warranties sold by each
sales
person. So if salesperson "1" has sold 8 warranties the formula will
=8.

Any help is greatly appreciated! Thanks.











  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Help with countif and sumif functions

=SUMPRODUCT(--(A7:A102=1),--(ISNUMBER(B7:B102)))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Clay" wrote in message
...
I'm making a spreadsheet of 3 employees that will display what they have
sold
to each different customer they talk to. In one column I have the
salesperson, identified as a number, and in the next column I have
Warranties. So if they sold a warranty to that person the price will be
typed in.

I have used the Countif function to count the number of people each sales
person has seen w/the formula, =COUNTIF(A7:A102,"1") .. where the sales
person is identified by 1.

I used the Sumif function to count the total warranty revenue by each
sales
person w/the formula =SUMIF(A7:A102,"1",E7:E102).. where the sales person
is
1 and column E contains the revenue.

But I also need to be able to count the total warranties sold by each
sales
person. So if salesperson "1" has sold 8 warranties the formula will =8.

Any help is greatly appreciated! Thanks.




  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default Help with countif and sumif functions

thanks for all the help guys!

"Bob Phillips" wrote:

=SUMPRODUCT(--(A7:A102=1),--(ISNUMBER(B7:B102)))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Clay" wrote in message
...
I'm making a spreadsheet of 3 employees that will display what they have
sold
to each different customer they talk to. In one column I have the
salesperson, identified as a number, and in the next column I have
Warranties. So if they sold a warranty to that person the price will be
typed in.

I have used the Countif function to count the number of people each sales
person has seen w/the formula, =COUNTIF(A7:A102,"1") .. where the sales
person is identified by 1.

I used the Sumif function to count the total warranty revenue by each
sales
person w/the formula =SUMIF(A7:A102,"1",E7:E102).. where the sales person
is
1 and column E contains the revenue.

But I also need to be able to count the total warranties sold by each
sales
person. So if salesperson "1" has sold 8 warranties the formula will =8.

Any help is greatly appreciated! Thanks.





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
Skipping cells for SUMIF or COUNTIF functions?? Zilla[_2_] Excel Worksheet Functions 9 February 28th 07 03:43 PM
COUNTIF and SUMIF Functions DCSwearingen Excel Discussion (Misc queries) 6 July 12th 06 08:18 PM
Using COUNTIF and AND functions together Twinkle17 Excel Worksheet Functions 1 May 18th 06 09:34 AM
SUMIF and COUNTIF functions Heather Excel Discussion (Misc queries) 1 March 5th 06 07:59 AM
CountIf functions themax16 Excel Discussion (Misc queries) 1 September 6th 05 05:41 PM


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