Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Mutiple COUNTIF or equivalent.

What I want to do is fairly complicated.

I have Sheet 1 with data on,
then Sheet 2 with the figures of this data.

On Sheet2;
In one column im using COUNTIF to count Column A on Sheet 1 (which is
a date) to see how many were entered on this date.
On sheet 1 i have another column which is kind of like a tick column,
where some are ticked to see if this query has been resolved.
I want to use a countif to count these 'ticks' (which are the letter
'a') but to only count them on the date given.

IE. 2 Example lines from Sheet 1..
DATE | TITLE | TICK |
31/3/2008 | COMPANY A | |
31/3/2008 | COMPANY B | a |
28/3/2008 | COMPANY C | |

On Sheet 2 this would show as...
DATE | INPUT | TICK |
28/3/2008 | 1 | |
31/3/2008 | 2 | |

With the cell for the input being;
=(COUNTIF(Sheet1!B:B,A34))
[with the references being relevant to be spreadsheet]

I want the tick box to show how many have 'a' present in that column,
creating this..
DATE | INPUT | TICK |
28/3/2008 | 1 | |
31/3/2008 | 2 | 1 |

I tried using countif again, but it counts ALL the ticks for every
date. This isnt what i want.
Can anyone help??
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Mutiple COUNTIF or equivalent.

You will need to use SUMPRODUCT rather than COUNTIF, as you have more
than one criteria. I'm not sure what columns your data occupies, but
it will be something like this:

=SUMPRODUCT((Sheet1!A$2:A$100=A34)*(Sheet1!C$2:C$1 00="a"))

I've assumed your data occupies 100 rows - adjust to suit, but you
cannot use full-column references in versions before XL2007.

Hope this helps.

Pete

On Mar 31, 4:46*pm, wrote:
What I want to do is fairly complicated.

I have Sheet 1 with data on,
then Sheet 2 with the figures of this data.

On Sheet2;
In one column im using COUNTIF to count Column A on Sheet 1 (which is
a date) to see how many were entered on this date.
On sheet 1 i have another column which is kind of like a tick column,
where some are ticked to see if this query has been resolved.
I want to use a countif to count these 'ticks' (which are the letter
'a') but to only count them on the date given.

IE. 2 Example lines from Sheet 1..
* *DATE * * *| * * * *TITLE * * * * | TICK |
31/3/2008 * | * COMPANY A * | * * * * |
31/3/2008 * | * COMPANY B * | * *a * |
28/3/2008 * | * COMPANY C * | * * * * |

On Sheet 2 this would show as...
* *DATE * * *| *INPUT *| TICK |
28/3/2008 * | * * 1 * * * | * * * * |
31/3/2008 * | * * 2 * * * | * * * * |

With the cell for the input being;
=(COUNTIF(Sheet1!B:B,A34))
[with the references being relevant to be spreadsheet]

I want the tick box to show how many have 'a' present in that column,
creating this..
* *DATE * * *| *INPUT *| TICK |
28/3/2008 * | * * 1 * * * | * * * * |
31/3/2008 * | * * 2 * * * | * *1 * |

I tried using countif again, but it counts ALL the ticks for every
date. This isnt what i want.
Can anyone help??


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Mutiple COUNTIF or equivalent.

On Mar 31, 4:59*pm, Pete_UK wrote:
You will need to use SUMPRODUCT rather than COUNTIF, as you have more
than one criteria. I'm not sure what columns your data occupies, but
it will be something like this:

=SUMPRODUCT((Sheet1!A$2:A$100=A34)*(Sheet1!C$2:C$1 00="a"))

I've assumed your data occupies 100 rows - adjust to suit, but you
cannot use full-column references in versions before XL2007.

Hope this helps.

Pete

On Mar 31, 4:46*pm, wrote:



What I want to do is fairly complicated.


I have Sheet 1 with data on,
then Sheet 2 with the figures of this data.


On Sheet2;
In one column im using COUNTIF to count Column A on Sheet 1 (which is
a date) to see how many were entered on this date.
On sheet 1 i have another column which is kind of like a tick column,
where some are ticked to see if this query has been resolved.
I want to use a countif to count these 'ticks' (which are the letter
'a') but to only count them on the date given.


IE. 2 Example lines from Sheet 1..
* *DATE * * *| * * * *TITLE * * * * | TICK |
31/3/2008 * | * COMPANY A * | * * * * |
31/3/2008 * | * COMPANY B * | * *a * |
28/3/2008 * | * COMPANY C * | * * * * |


On Sheet 2 this would show as...
* *DATE * * *| *INPUT *| TICK |
28/3/2008 * | * * 1 * * * | * * * * |
31/3/2008 * | * * 2 * * * | * * * * |


With the cell for the input being;
=(COUNTIF(Sheet1!B:B,A34))
[with the references being relevant to be spreadsheet]


I want the tick box to show how many have 'a' present in that column,
creating this..
* *DATE * * *| *INPUT *| TICK |
28/3/2008 * | * * 1 * * * | * * * * |
31/3/2008 * | * * 2 * * * | * *1 * |


I tried using countif again, but it counts ALL the ticks for every
date. This isnt what i want.
Can anyone help??- Hide quoted text -


- Show quoted text -


Oh really? I didnt know that, well it never goes over 2000, so i can
program it up to that - its just a BETA at the moment though, so i
wont to test it. I didnt realise you cant use full column references,
its strange you say that cos my other formula, the original COUNTIF
works with a full column reference??
Anyway, I will give this ago - thanks.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Mutiple COUNTIF or equivalent.

You can't use a full-column reference with the SUMPRODUCT function
(and with array formulae), but you can with COUNTIF and SUMIF (and
many others).

Pete

On Mar 31, 9:56*pm, wrote:

Oh really? I didnt know that, well it never goes over 2000, so i can
program it up to that - its just a BETA at the moment though, so i
wont to test it. I didnt realise you cant use full column references,
its strange you say that cos my other formula, the original COUNTIF
works with a full column reference??
Anyway, I will give this ago - thanks

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Mutiple COUNTIF or equivalent.

On Mar 31, 11:34*pm, Pete_UK wrote:
You can't use a full-column reference with the SUMPRODUCT function
(and with array formulae), but you can with COUNTIF and SUMIF (and
many others).

Pete

On Mar 31, 9:56*pm, wrote:





Oh really? I didnt know that, well it never goes over 2000, so i can
program it up to that - its just a BETA at the moment though, so i
wont to test it. I didnt realise you cant use full column references,
its strange you say that cos my other formula, the original COUNTIF
works with a full column reference??
Anyway, I will give this ago - thanks- Hide quoted text -


- Show quoted text -


This worked brilliantly, thankyou.
Now I want to Add the values of Column D - which is the money of each
entry, but only if it is 'ticked'... so basically I want to use the
formula you have provided, then tell it that "where this applies -
SUM of Column D" .. if that makes sense??
Thanks if you can help...


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Mutiple COUNTIF or equivalent.

I've been away a few days, but if you are still monitoring this
thread, then using my first formula as a basis, you can amend it to
this:

=SUMPRODUCT((Sheet1!A$2:A$100=A34)*(Sheet1!C$2:C$1 00="a")*(Sheet1!D$2:D
$100))

This will give you a SUM of column B in Sheet1 where column C = "a"
AND column A = A34 in the summary sheet.

Hope this helps.

Pete

On Apr 1, 9:29*am, wrote:
This worked brilliantly, thankyou.
Now I want to Add the values of Column D - which is the money of each
entry, but only if it is 'ticked'... so basically I want to use the
formula you have provided, then tell it *that "where this applies -
SUM of Column D" .. if that makes sense??
Thanks if you can help

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Mutiple COUNTIF or equivalent.

Sorry, that should have said:

This will give you a SUM of column D in Sheet1 where column C = "a"
AND column A = A34 in the summary sheet.

Pete

On Apr 4, 12:35*am, Pete_UK wrote:
I've been away a few days, but if you are still monitoring this
thread, then using my first formula as a basis, you can amend it to
this:

=SUMPRODUCT((Sheet1!A$2:A$100=A34)*(Sheet1!C$2:C$1 00="a")*(Sheet1!D$2:D
$100))

This will give you a SUM of column B in Sheet1 where column C = "a"
AND column A = A34 in the summary sheet.

Hope this helps.

Pete

On Apr 1, 9:29*am, wrote:



This worked brilliantly, thankyou.
Now I want to Add the values of Column D - which is the money of each
entry, but only if it is 'ticked'... so basically I want to use the
formula you have provided, then tell it *that "where this applies -
SUM of Column D" .. if that makes sense??
Thanks if you can help- Hide quoted text -


- Show quoted text -


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 76
Default Mutiple COUNTIF or equivalent.

On Apr 4, 1:14*am, Pete_UK wrote:
Sorry, that should have said:

This will give you a SUM of column D in Sheet1 where column C = "a"
AND column A = A34 in the summary sheet.

Pete

On Apr 4, 12:35*am, Pete_UK wrote:



I've been away a few days, but if you are still monitoring this
thread, then using my first formula as a basis, you can amend it to
this:


=SUMPRODUCT((Sheet1!A$2:A$100=A34)*(Sheet1!C$2:C$1 00="a")*(Sheet1!D$2:D
$100))


This will give you a SUM of column B in Sheet1 where column C = "a"
AND column A = A34 in the summary sheet.


Hope this helps.


Pete


On Apr 1, 9:29*am, wrote:


This worked brilliantly, thankyou.
Now I want to Add the values of Column D - which is the money of each
entry, but only if it is 'ticked'... so basically I want to use the
formula you have provided, then tell it *that "where this applies -
SUM of Column D" .. if that makes sense??
Thanks if you can help- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


Thanks very much!! Cheers
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Mutiple COUNTIF or equivalent.

You're welcome - thanks for feeding back.

Pete

On Apr 4, 11:54*am, NPell wrote:

Thanks very much!! Cheers

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
Maxif equivalent Fred Smith Excel Worksheet Functions 6 December 10th 06 03:58 AM
mutiple conditional formating Roz Excel Discussion (Misc queries) 7 December 19th 05 08:09 PM
mutiple regression help happycow Excel Discussion (Misc queries) 1 July 30th 05 04:47 AM
What is the Access equivalent of Excel's COUNTIF? RedStep Excel Discussion (Misc queries) 1 April 6th 05 09:36 PM
Lotus Equivalent Brian Keanie Excel Discussion (Misc queries) 6 January 2nd 05 10:48 PM


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