Hi Folks...I hope you can help me (as you have so remarkably in the past!) with a challenge.
I have a spreadsheet with 3 columns:
Column A contains dates in this format: 1/15/06
Column B contains either "YES" or "NO"
Column C contains dollar amounts.
Columns D through O are labeled January through December
For those items containing a "YES" in Column B, the corresponding dollar amounts in Column C must be summed in a cell for the month corresponding to their date.
For instance, if there are three sales for January (say, on the 15th, 18th, and 26th) listed in Column A, and they all have a "YES" in Column B, their corresponding dollar amounts need to be summed and placed into a single cell under Column D-January.
Two additional points:
Point 1: The date ranges that I need to use do not correspond exactly with calendar dates. In other words, for my purposes, the month of January ends on the 28th so I need to capture only those amounts that have a date prior to the 29th. February ends on the 25th, but also includes January 29th, 30th, and 31st. And so on.
Point 2: I have determined that the problem with the formulas below has something to do with the date range. If I substitute any other character, number, or word for the date range, it works perfectly. I tried using a VLOOKUP to substitute a number for the date range, but I can't get the formulas to work with it.
I have tried the following two formulas with no luck:
{=SUM(($A$3:$A$1000<"1/29/06")*($B$3:$B$1000="YES")*($C$3:$C$1000))}
=SUMPRODUCT(($A$3:$A$1000<"1/29/06")*($B$3:$B$1000="YES")*($C$3:$C$1000))
I appreciate any advice that you may have, and thank you for your time and consideration!
I have a spreadsheet with 3 columns:
Column A contains dates in this format: 1/15/06
Column B contains either "YES" or "NO"
Column C contains dollar amounts.
Columns D through O are labeled January through December
For those items containing a "YES" in Column B, the corresponding dollar amounts in Column C must be summed in a cell for the month corresponding to their date.
For instance, if there are three sales for January (say, on the 15th, 18th, and 26th) listed in Column A, and they all have a "YES" in Column B, their corresponding dollar amounts need to be summed and placed into a single cell under Column D-January.
Two additional points:
Point 1: The date ranges that I need to use do not correspond exactly with calendar dates. In other words, for my purposes, the month of January ends on the 28th so I need to capture only those amounts that have a date prior to the 29th. February ends on the 25th, but also includes January 29th, 30th, and 31st. And so on.
Point 2: I have determined that the problem with the formulas below has something to do with the date range. If I substitute any other character, number, or word for the date range, it works perfectly. I tried using a VLOOKUP to substitute a number for the date range, but I can't get the formulas to work with it.
I have tried the following two formulas with no luck:
{=SUM(($A$3:$A$1000<"1/29/06")*($B$3:$B$1000="YES")*($C$3:$C$1000))}
=SUMPRODUCT(($A$3:$A$1000<"1/29/06")*($B$3:$B$1000="YES")*($C$3:$C$1000))
I appreciate any advice that you may have, and thank you for your time and consideration!