I am working on a rent roll sheet that can tell the difference between weekly and monthly tenants. I am using the TEXT function to format the date with this formula:
=IF($E$4="Monthly",TEXT(EDATE(A10,1),"MMM YYYY"),TEXT(A10+7,"MMM-DD-YYYY"))
That is working Fine, but the next column is used to call the Amount paid for each period using this formula:
=SUMIFS(RentRec_Amt,RentRec_Unit,$B$1,RentRec_DateRec,">="&A10,RentRec_DateRec,"<"&A11) Where A11 is the First of the month and A12 is the first of the next month. This also works fine.
What I would like to do now to to add an IF statement to my SUMIFS formula that will look at the current date, TODAY(), and either lookup the rents paid using the second formula, or if the rent is not due yet, simply state "Not Due". The problem seems to be that using the TEXT function to format the dates is causing my IF statement to always see a TRUE value returned, thus showing ALL rent "Not Due". I tested by using a simply IF in another column, =IF(A10>$E$1,TRUE,FALSE). This simply formula is always returning a TRUE value.
I think the problem is with the TEXT function, but I am not sure how else to achieve the results. Any suggestions are appreciated.
=IF($E$4="Monthly",TEXT(EDATE(A10,1),"MMM YYYY"),TEXT(A10+7,"MMM-DD-YYYY"))
That is working Fine, but the next column is used to call the Amount paid for each period using this formula:
=SUMIFS(RentRec_Amt,RentRec_Unit,$B$1,RentRec_DateRec,">="&A10,RentRec_DateRec,"<"&A11) Where A11 is the First of the month and A12 is the first of the next month. This also works fine.
What I would like to do now to to add an IF statement to my SUMIFS formula that will look at the current date, TODAY(), and either lookup the rents paid using the second formula, or if the rent is not due yet, simply state "Not Due". The problem seems to be that using the TEXT function to format the dates is causing my IF statement to always see a TRUE value returned, thus showing ALL rent "Not Due". I tested by using a simply IF in another column, =IF(A10>$E$1,TRUE,FALSE). This simply formula is always returning a TRUE value.
I think the problem is with the TEXT function, but I am not sure how else to achieve the results. Any suggestions are appreciated.