Greetings to all forum members.
Topic/issue:
Multiple conditions with COUNTIF where a second sheet is used as the data source
I am trying to create a spreadsheet with two sheets, one is the dataset and the second will contain summaries. These summaries are based on multiple condition COUNTIF or SUMIF formulae.
A colleague has an old 1-2-3 spreadsheet which functions in this manner. To take the example of the formula which would appear in cell C16 of the second sheet, a formula like the following would appear in 1-2-3:
@DCOUNT(dataset:A1..dataset:E10,"Transactioncode",MONTH=C1#AND#APPROVED="Yes")
I have been able to get an equivalent formula to work in Excel:
=SUMPRODUCT(--(A1:A10=C14),--(B1:B10="Yes"))
The problem that I have is that I am unable to modify this formula to reference an external sheet; I get #VALUE!
Please can you advise how, having the dataset in sheet 1 (which I have named dataset), I can add a multiple condition fomula into sheet 2 (which I have named summary) which refers back to sheet 1.
Best regards
Keith
Topic/issue:
Multiple conditions with COUNTIF where a second sheet is used as the data source
I am trying to create a spreadsheet with two sheets, one is the dataset and the second will contain summaries. These summaries are based on multiple condition COUNTIF or SUMIF formulae.
A colleague has an old 1-2-3 spreadsheet which functions in this manner. To take the example of the formula which would appear in cell C16 of the second sheet, a formula like the following would appear in 1-2-3:
@DCOUNT(dataset:A1..dataset:E10,"Transactioncode",MONTH=C1#AND#APPROVED="Yes")
I have been able to get an equivalent formula to work in Excel:
=SUMPRODUCT(--(A1:A10=C14),--(B1:B10="Yes"))
The problem that I have is that I am unable to modify this formula to reference an external sheet; I get #VALUE!
Please can you advise how, having the dataset in sheet 1 (which I have named dataset), I can add a multiple condition fomula into sheet 2 (which I have named summary) which refers back to sheet 1.
Best regards
Keith