LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Counting Variables

why not use a worksheet formula

=SUMPRODUCT((A1:A25="C143")*(B1:B25="Part off
pad")*(C1:C25=(--("2004-05-26")))
etc.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Lacy" wrote in message
...
I have a new problem now. I need to count to see how many
of each defect I have. For example:
Count
C143 Part off pad 5/26/04 1
C201 Solder Ball 6/7/04 1
C331 Part not placed 5/24/04 3
C331 Part not placed 5/24/04
C331 Part not placed 5/24/04
C331 Part off pad 5/24/04 1

All three criteria have to match to count it. But I want a
count for each defect. Then I want a Total # of defects.

Total = 0
Count = 1
For i = 3 To RowCount
If Defect(i, 10) = Defect(, 10) Then
If Defect(i, 11) = Defect(, 11) Then
If Defect(i, 11) = Defect(, 11) Then
Count = Count + 1
End If
End If
End If
Next i
Total = Total + Count

Thanks in advance,
Lacy



 
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 by Two Columns of Variables Mashuganah Excel Discussion (Misc queries) 9 December 22nd 09 12:23 AM
Counting Days with variables Redsphynx Excel Worksheet Functions 2 December 15th 08 11:46 PM
counting the number of two different variables Nick Excel Discussion (Misc queries) 1 July 2nd 08 07:35 PM
Counting multiple variables returns #VALUE was Excel Discussion (Misc queries) 1 August 12th 05 02:13 AM
counting based ona number of variables. vipa2000 Excel Worksheet Functions 11 July 29th 05 04:08 PM


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