ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   COUNTIFS BETWEEN WORKSHEETS HELP (https://www.excelbanter.com/excel-worksheet-functions/260561-countifs-between-worksheets-help.html)

JodySmithPharmD

COUNTIFS BETWEEN WORKSHEETS HELP
 
How do you specify in a formula to count all cells in one column if values in
another column match a value in a particular cell and sum the totals across
worksheets. I have tried this formula but something is amiss at the last
step. I wanted to only count a value if a date in column M matched the date
in cell B1.

=SUMPRODUCT(COUNTIFS(INDIRECT("'"&A22:A43&"'!n3:n6 1"),"0",INDIRECT("'"&A22:A43&"'!m3:m61"),"2/28/10",INDIRECT("'"&A22:A43&"'!m3:m61"),"<4/1/10",INDIRECT("'"&A22:A43&"'!M3:M61"),INDIRECT("'"& A22:A43&"'!B1")))

T. Valko

COUNTIFS BETWEEN WORKSHEETS HELP
 
see your other post

--
Biff
Microsoft Excel MVP


"JodySmithPharmD" wrote in
message ...
How do you specify in a formula to count all cells in one column if values
in
another column match a value in a particular cell and sum the totals
across
worksheets. I have tried this formula but something is amiss at the last
step. I wanted to only count a value if a date in column M matched the
date
in cell B1.

=SUMPRODUCT(COUNTIFS(INDIRECT("'"&A22:A43&"'!n3:n6 1"),"0",INDIRECT("'"&A22:A43&"'!m3:m61"),"2/28/10",INDIRECT("'"&A22:A43&"'!m3:m61"),"<4/1/10",INDIRECT("'"&A22:A43&"'!M3:M61"),INDIRECT("'"& A22:A43&"'!B1")))





All times are GMT +1. The time now is 07:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com