Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mr. Yanni
 
Posts: n/a
Default How do I set up a countif, or sumif that is multiconditional?

I often try to set up a countif or a sum if that is conditional on two or
more conditions. For instance - I have Radio stations listed in one column,
flight dates in another column, number of contacts for each flight in another
column and appointments created from those contacts and finally, revenue
generated form those appointments. One example would be to sumif column one
equals the radio station and column two equaled the flight date then give me
the revenue.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Marcelo
 
Posts: n/a
Default How do I set up a countif, or sumif that is multiconditional?

Hy Yanni

try to use

=sumproduct(--($a$2:$a$100="radio")*($B$2:$b$100=date)*($c$2:$c$ 100))
assuming that the revenue are on the C column

hope this helps
regards from Brazil
Marcelo

"Mr. Yanni" escreveu:

I often try to set up a countif or a sum if that is conditional on two or
more conditions. For instance - I have Radio stations listed in one column,
flight dates in another column, number of contacts for each flight in another
column and appointments created from those contacts and finally, revenue
generated form those appointments. One example would be to sumif column one
equals the radio station and column two equaled the flight date then give me
the revenue.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mr. Yanni
 
Posts: n/a
Default How do I set up a countif, or sumif that is multiconditional?



"Marcelo" wrote:

Hy Yanni

try to use

=sumproduct(--($a$2:$a$100="radio")*($B$2:$b$100=date)*($c$2:$c$ 100))
assuming that the revenue are on the C column

hope this helps
regards from Brazil
Marcelo

"Mr. Yanni" escreveu:

I often try to set up a countif or a sum if that is conditional on two or
more conditions. For instance - I have Radio stations listed in one column,
flight dates in another column, number of contacts for each flight in another
column and appointments created from those contacts and finally, revenue
generated form those appointments. One example would be to sumif column one
equals the radio station and column two equaled the flight date then give me
the revenue.


I did not know such a function existed. I will give it a try. Thank you my
brazilian friend. gracious.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default How do I set up a countif, or sumif that is multiconditional?

Hi

Take a look at the Sumproduct() function
=SUMPRODUCT(--($A$1:$A$100="Station1"),--($B$1:$B$100=DATE(2006,6,20)),$C$1:$C$100)

This assumes that your Radio Station is in column A, your Flight Dates
in column B and your Revenue in column C.
Change ranges to suit, but do ensure that the ranges are of equal size.
Substitute for Station 1, the name of the station you want and for the
date (example shows 20th June 2006)

--
Regards

Roger Govier


"Mr. Yanni" <Mr. wrote in message
...
I often try to set up a countif or a sum if that is conditional on two
or
more conditions. For instance - I have Radio stations listed in one
column,
flight dates in another column, number of contacts for each flight in
another
column and appointments created from those contacts and finally,
revenue
generated form those appointments. One example would be to sumif
column one
equals the radio station and column two equaled the flight date then
give me
the revenue.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Marcelo
 
Posts: n/a
Default How do I set up a countif, or sumif that is multiconditional?

You are welcome Mr Yanni

"Mr. Yanni" escreveu:



"Marcelo" wrote:

Hy Yanni

try to use

=sumproduct(--($a$2:$a$100="radio")*($B$2:$b$100=date)*($c$2:$c$ 100))
assuming that the revenue are on the C column

hope this helps
regards from Brazil
Marcelo

"Mr. Yanni" escreveu:

I often try to set up a countif or a sum if that is conditional on two or
more conditions. For instance - I have Radio stations listed in one column,
flight dates in another column, number of contacts for each flight in another
column and appointments created from those contacts and finally, revenue
generated form those appointments. One example would be to sumif column one
equals the radio station and column two equaled the flight date then give me
the revenue.


I did not know such a function existed. I will give it a try. Thank you my
brazilian friend. gracious.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mr. Yanni
 
Posts: n/a
Default How do I set up a countif, or sumif that is multiconditional?



"Marcelo" wrote:

Hy Yanni

try to use

=sumproduct(--($a$2:$a$100="radio")*($B$2:$b$100=date)*($c$2:$c$ 100))
assuming that the revenue are on the C column

hope this helps
regards from Brazil
Marcelo

"Mr. Yanni" escreveu:

I often try to set up a countif or a sum if that is conditional on two or
more conditions. For instance - I have Radio stations listed in one column,
flight dates in another column, number of contacts for each flight in another
column and appointments created from those contacts and finally, revenue
generated form those appointments. One example would be to sumif column one
equals the radio station and column two equaled the flight date then give me
the revenue.

Just tried it out - it works.
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mr. Yanni
 
Posts: n/a
Default How do I set up a countif, or sumif that is multiconditional?



"Roger Govier" wrote:

Hi

Take a look at the Sumproduct() function
=SUMPRODUCT(--($A$1:$A$100="Station1"),--($B$1:$B$100=DATE(2006,6,20)),$C$1:$C$100)

This assumes that your Radio Station is in column A, your Flight Dates
in column B and your Revenue in column C.
Change ranges to suit, but do ensure that the ranges are of equal size.
Substitute for Station 1, the name of the station you want and for the
date (example shows 20th June 2006)

--
Regards

Roger Govier


"Mr. Yanni" <Mr. wrote in message
...
I often try to set up a countif or a sum if that is conditional on two
or
more conditions. For instance - I have Radio stations listed in one
column,
flight dates in another column, number of contacts for each flight in
another
column and appointments created from those contacts and finally,
revenue
generated form those appointments. One example would be to sumif
column one
equals the radio station and column two equaled the flight date then
give me
the revenue.

Ok, it seems that the final array automatically sums under these conditions...How can I use the same formula to countif the first two or more conditions exist?


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jess
 
Posts: n/a
Default How do I set up a countif, or sumif that is multiconditional?

Hi! I have a similar query, i know how to use the sumproduct function in
rgard to my data, what i want to know is how to refer to column in another
sheet.
Thanks
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default How do I set up a countif, or sumif that is multiconditional?

Hi Mr Yanni

Ok, it seems that the final array automatically sums under these
conditions...How can I use the same formula to countif the first two
or more conditions exist?


Just leave out the final Revenue range
=SUMPRODUCT(--($A$1:$A$100="Station1"),--($B$1:$B$100=DATE(2006,6,20)))

--
Regards

Roger Govier


"Mr. Yanni" wrote in message
...


"Roger Govier" wrote:

Hi

Take a look at the Sumproduct() function
=SUMPRODUCT(--($A$1:$A$100="Station1"),--($B$1:$B$100=DATE(2006,6,20)),$C$1:$C$100)

This assumes that your Radio Station is in column A, your Flight
Dates
in column B and your Revenue in column C.
Change ranges to suit, but do ensure that the ranges are of equal
size.
Substitute for Station 1, the name of the station you want and for
the
date (example shows 20th June 2006)

--
Regards

Roger Govier


"Mr. Yanni" <Mr. wrote in message
...
I often try to set up a countif or a sum if that is conditional on
two
or
more conditions. For instance - I have Radio stations listed in
one
column,
flight dates in another column, number of contacts for each flight
in
another
column and appointments created from those contacts and finally,
revenue
generated form those appointments. One example would be to sumif
column one
equals the radio station and column two equaled the flight date
then
give me
the revenue.

Ok, it seems that the final array automatically sums under these
conditions...How can I use the same formula to countif the first two
or more conditions exist?




  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default How do I set up a countif, or sumif that is multiconditional?

Hi Jess

Just prefix the range with the sheet name and an exclamation mark e.g.

Sheet1!$A$1:$A$100
'My Data'!$A$1:$A$100

Note that if you have spaces in the sheet name, you must enclose the
name within single quotes.

--
Regards

Roger Govier


"Jess" wrote in message
...
Hi! I have a similar query, i know how to use the sumproduct function
in
rgard to my data, what i want to know is how to refer to column in
another
sheet.
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
Forget SUMIF, COUNTIF and VLOOKUP Pierre Leclerc Excel Worksheet Functions 16 April 27th 23 11:51 AM
problems with sumif and countif Simon Shaw Excel Discussion (Misc queries) 6 July 23rd 05 10:02 PM
Reference Cells with Sumif or Countif GK New Users to Excel 1 May 3rd 05 06:21 PM
Modify SUMIF and COUNTIF to work with SUBTOTALS SSHO_99 Excel Worksheet Functions 2 November 12th 04 11:36 PM
Countif, Sumif, If - help! Angel160 Excel Worksheet Functions 2 November 3rd 04 05:23 PM


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