Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dear Gentlemen
I am trying to get the CountBetween function to work with CountIfs instead of CountIf, but I am getting nowhere. This is what I have: Function CountBetween1(InRange, num1, num2, InRange1, num3) As Integer With Application.WorksheetFunction If num1 <= num2 Then CountBetween1 = .CountIfs(InRange, "=" & num1) - ..CountIfs(InRange, "" & num2) And .CountIfs(InRange1, "=" & num3) Else CountBetween1 = .CountIfs(InRange, "=" & num2) - ..CountIfs(InRange, "" & num1) And .CountIfs(InRange1, "=" & num3) End If End With End Function Your help will be greatly appreciated. Regards farid2001 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
countifs | Excel Worksheet Functions | |||
countifs/or | Excel Worksheet Functions | |||
Countifs to Sumproduct for 2003 - was Simple Countifs.. from Fr | Excel Worksheet Functions | |||
Countifs | Excel Worksheet Functions | |||
Countifs Fx in 07 how in 03? | Excel Discussion (Misc queries) |