Hi,
I am using the SUMIFS function in the following formula and it works with no problems:
=SUMIFS(C1:C10, A1:A10,">=1/5/8",A1:A10,"<=31/5/8",B1:B10,"VISA")
where column A is a list of random dates for May
where column B is a list of payment methods that includes VISA
where column C is a list of amounts paid
As data is added to the spreadsheet the range of dates will span the whole year, so I want to be able to change the date criteria by referring to independent cell references for the dates criteria. In this way I can easily sum the amounts paid by VISA in any given month.
I have successfully used SUMPRODUCT achieve the same result as I'm getting with SUMIFS, but still have the same issues of not being able to change the date criteria by reference to cell values. I think this method falls down because the criteria must be "TEXT". I suspect this may be the same problem with SUMIFS.
I have tried the following variations without success:
=SUMIFS(C1:C10, A1:A10,">=D1",A1:A10,"<=D2",B1:B10,"VISA") - cell reference
=SUMIFS(C1:C10, A1:A10,>=D1,A1:A10,<=D2,B1:B10,"VISA") - cell reference no quotes
=SUMIFS(C1:C10, A1:A10,">=(D1)",A1:A10,"<=(D2)",B1:B10,"VISA") - brackets around cell reference and quotes
Sorry to be so long winded. I will appreciate any help that may be offered. Sean
I am using the SUMIFS function in the following formula and it works with no problems:
=SUMIFS(C1:C10, A1:A10,">=1/5/8",A1:A10,"<=31/5/8",B1:B10,"VISA")
where column A is a list of random dates for May
where column B is a list of payment methods that includes VISA
where column C is a list of amounts paid
As data is added to the spreadsheet the range of dates will span the whole year, so I want to be able to change the date criteria by referring to independent cell references for the dates criteria. In this way I can easily sum the amounts paid by VISA in any given month.
I have successfully used SUMPRODUCT achieve the same result as I'm getting with SUMIFS, but still have the same issues of not being able to change the date criteria by reference to cell values. I think this method falls down because the criteria must be "TEXT". I suspect this may be the same problem with SUMIFS.
I have tried the following variations without success:
=SUMIFS(C1:C10, A1:A10,">=D1",A1:A10,"<=D2",B1:B10,"VISA") - cell reference
=SUMIFS(C1:C10, A1:A10,>=D1,A1:A10,<=D2,B1:B10,"VISA") - cell reference no quotes
=SUMIFS(C1:C10, A1:A10,">=(D1)",A1:A10,"<=(D2)",B1:B10,"VISA") - brackets around cell reference and quotes
Sorry to be so long winded. I will appreciate any help that may be offered. Sean