PC Review


Reply
Thread Tools Rate Thread

Counting with multiple variabels

 
 
=?Utf-8?B?dHJ3YXJkNzk=?=
Guest
Posts: n/a
 
      19th Mar 2007
I need help with counting items with two variables that have to be true to be
counted.

I need the code to check 'Warnings issued'!A:A where Axx='520' and check
'Warnings issued'!G:G where Gxx='VERBL' and if these are both true to count
and return the result in 'Data'!Cxx where 'Data'!Axx='520' and then do
entries for the rest of the companies in the same order.

* xx is a holder for the cell number.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?SkxHV2hpeg==?=
Guest
Posts: n/a
 
      19th Mar 2007
Your description of your requirement is confusing. It is assumed that
"Warnings issued" and "Data" are names of worksheets. By both being true, it
is assumed that you mean when A2 = "520" and G2 = "VERBL" the count would be
1, then if A3 and G3 had the same conditions the count would be 2, etc. but
if A2 = "520" and G2 = other then that would not count. Now, where are the
companies located?
and, Where do you wand the result listed in "Data"? Sheet layouts help a
lot when trying to write code or develop formulae.

"trward79" wrote:

> I need help with counting items with two variables that have to be true to be
> counted.
>
> I need the code to check 'Warnings issued'!A:A where Axx='520' and check
> 'Warnings issued'!G:G where Gxx='VERBL' and if these are both true to count
> and return the result in 'Data'!Cxx where 'Data'!Axx='520' and then do
> entries for the rest of the companies in the same order.
>
> * xx is a holder for the cell number.

 
Reply With Quote
 
matt
Guest
Posts: n/a
 
      19th Mar 2007
On Mar 19, 9:20 am, trward79 <trwar...@discussions.microsoft.com>
wrote:
> I need help with counting items with two variables that have to be true to be
> counted.
>
> I need the code to check 'Warnings issued'!A:A where Axx='520' and check
> 'Warnings issued'!G:G where Gxx='VERBL' and if these are both true to count
> and return the result in 'Data'!Cxx where 'Data'!Axx='520' and then do
> entries for the rest of the companies in the same order.
>
> * xx is a holder for the cell number.


Try something like =SUMPRODUCT((A1:A5000="520")*(G1:G5000="VERBL")).

Your problem description is hard to follow.

Matt

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting multiple y/n fields from multiple tables. Philip Klaerner Microsoft Access Queries 3 15th Oct 2009 03:04 AM
COUNTING - MULTIPLE COLUMNS-MULTIPLE WKSHTS Barbara Microsoft Excel Worksheet Functions 1 17th Oct 2003 04:32 PM
Excel Help - Counting Multiple Conditions & Multiple Values MAX258 Microsoft Excel Worksheet Functions 7 13th Oct 2003 09:45 PM
Excel Help - Counting Multiple Conditions & Multiple Values MAX258 Microsoft Excel Worksheet Functions 0 13th Oct 2003 07:58 PM
Excel Help - Counting Multiple Conditions & Multiple Values MAX258 Microsoft Excel Worksheet Functions 0 13th Oct 2003 07:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:12 PM.