Forum Discussion
Compare Columns of Dates In A Formula
Hi Comp.
Your formula adds the amounts from a column (ex. AB) in the other tabs that meet your formulas criteria. If you create another column that will input the amounts from AB only if they are greater than or equal to a given date, then your sumif will only add amounts that are greater than that date.
On the other tabs you can set up a column that you can hide. Based on the date you are using, the formula will either resolve to blank, or the amount in cell ABx. IF(ab13>=TODAY(),AB13,""). TODAY() can be any date you specify, or even point to a date in another cell. You can write the formula once then drag it down. Better?
I understand the idea and started implementing that into my worksheet. The formula I wrote in a Date (Hidden) column is
=IF([@[ Date (Buy)]]="","",IF('Buying Checklist'!E28>[@[ Date (Buy)]],"",[@[ Date (Buy)]]))
Then I would have an IF before the SUMIF check for a value in these columns. However, how would I account for transactions not placed in the Buying Checklist. By doing this everything I ever purchased would also have to be put into the buying checklist. My goal is to be able to delete information from the checklist after it is entirely completed.
- SqueakySneakersAug 11, 2020Brass Contributor
The values for the original total amounts are still there in the original range. (AB). You can use the total sum in AB and use the qualified sum in the new range where needed. Simple math will also give you the difference. Aside from this, I will need a better understanding. My original goal was to help you to sum your range with only the dates that met the criteria.
- Compl9xAug 11, 2020Copper ContributorI only plan on using the Checklist for say 50% of my purchases. With that being said, for it to work with the current solution, wouldn’t I have to input everything I bought? Besides from only counting the data after a specific date, I want to be able to delete data after it reaches 100% completion or just never have some info inserted at all. The entry pages were designed to have all the specifics. The checklist is temporarily to help get me there.
- SqueakySneakersAug 11, 2020Brass Contributor
Since I cannot see your spreadsheet and reference it against what you are saying, being specific gets more difficult. Correct my thinking: Your original sumif formula calculated the total for a given product with regards to what was entered on the other tabs, correct? Your new => date formula filtered out those entries that did not meet the date criteria so what was left to add was only the entered information that met the date criteria, then filtered by the sumif equation adjusted to use the new range. If my remark is correct, I do not understand why everything is needed to be input. With regards to your 100% completion, do you have markers that denote an item is 100% complete so you can use that as a TRUE/FALSE marker in an equation that can set the value to $0, or do you delete it manually?