From: JodySmithPharmD on 2 Apr 2010 11:58 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:n61"),">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")))
From: T. Valko on 2 Apr 2010 12:06 see your other post -- Biff Microsoft Excel MVP "JodySmithPharmD" <JodySmithPharmD(a)discussions.microsoft.com> wrote in message news:188A5D3B-5C90-45A7-91FB-E066C35218A4(a)microsoft.com... > 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:n61"),">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")))
|
Pages: 1 Prev: How do I change the format to allow a zero as a first digit? Next: Index, Match help |