Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Function CountIf3D(sFirstSheet As String, sLastSheet As String, rg As Range, criteria As String, CellCount As Long)
Dim i As Long, nFirst As Long, nLast As Long
Dim wb As Workbook
Set wb = rg.Worksheet.Parent
nFirst = wb.Worksheets(sFirstSheet).Index
nLast = wb.Worksheets(sLastSheet).Index
For i = nFirst To nLast
CountIf3D = CountIf3D + Application.CountIf(wb.Worksheets(i).Range(rg.Address), criteria)
Next
End Function
=COUNTIF(Sheet1!A1,"*h*")+COUNTIF(Sheet2!A1,"*h*")...
Function CountIf3D(sFirstSheet As String, sLastSheet As String, rg As Range, criteria As String)
Dim i As Long, nFirst As Long, nLast As Long
Dim wb As Workbook
Application.Volatile
Set wb = rg.Worksheet.Parent
nFirst = wb.Worksheets(sFirstSheet).Index
nLast = wb.Worksheets(sLastSheet).Index
For i = nFirst To nLast
CountIf3D = CountIf3D + Application.CountIf(wb.Worksheets(i).Range(rg.Address), criteria)
Next
End Function
Brad said:Since you cannot use a reference to another worksheet in Conditional Formatting...
Dawber said:which is used by 15,000 users.