Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here's a start for the color problem
Private Sub Counting_Test1() Dim wks as worksheet dim r as range Dim count As Single count = 0 for each wks in activeworkbook.worksheets for each r in wks.Range("H1:H275") if r.Value = Date And r.Interior.ColorIndex = 3 Then count = count + 1 end if next next MsgBox count End Sub The offset problem should be similar (assuming you are looking at rows above): Private Sub Counting_Test2() Dim wks as worksheet dim r as range Dim count As Single count = 0 for each wks in activeworkbook.worksheets for each r in wks.Range("H1:H275") if r.Value = Date And wks.Range("H" & r.Row-4).Value = "PICK UP Then count = count + 1 end if next next MsgBox count End Sub -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
using countif | Excel Worksheet Functions | |||
How do I use a countif function according to two other countif fu. | Excel Worksheet Functions | |||
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") | Excel Discussion (Misc queries) | |||
COUNTIF or not to COUNTIF on a range in another sheet | Excel Worksheet Functions | |||
COUNTIF in one colum then COUNTIF in another...??? | Excel Worksheet Functions |