Hi there,
I am adding two application.worksheetfunction.countifs() together in VBA, but I get the "invalid call or procedure" function.
Am I restricted from adding two countifs together?
Any ideas?h14 = Application.WorksheetFunction.CountIfs(SPHLongAnalyzable, "Yes", SPHLongPeriod, b11, SPHLongRisk, "No SS/SS", SPHLongSite, e11) + Application.WorksheetFunction.CountIfs(SPHShortAnalyzable, "Yes", SPHShortPeriod, b11, SPHShortSite, e11, SPHShortRisk, "No SS/SS")
Do the countifs work individually?
Do you really mean Range("H14")?
Martin
Eighty Twenty Spreadsheet Automation http://homepage.ntlworld.com/martin.rice1/ for all your Excel customisation and consulting needs.
If my solution has saved you time and/or money, please consider donating to Cancer Research UK.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks