Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Counting with multiple variabels

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Counting with multiple variabels

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.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default Counting with multiple variabels

On Mar 19, 9:20 am, 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.


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

Your problem description is hard to follow.

Matt

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
Counting using multiple criteria Rodman Excel Discussion (Misc queries) 11 June 3rd 09 05:22 AM
Counting for multiple conditions J. Catz. Excel Worksheet Functions 2 December 11th 07 11:12 PM
Counting from multiple columns The BriGuy[_2_] Excel Discussion (Misc queries) 0 September 17th 07 01:38 PM
counting with multiple criteria Andyd74 Excel Worksheet Functions 3 May 24th 06 11:59 AM
Counting by multiple criteria Risky Dave Excel Worksheet Functions 4 September 28th 05 01:29 PM


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