I am using a spreadsheet to calculate the number of bed nights our residents have in a month. I keep a running total if the guests are current (No Exit Date) but at the end of the month I need the tally to stop as it is a monthly report.
=IF(Entry_Date="","",IF(Exit_Date="",DATEDIF(Entry_Date,TODAY(),"d"),Exit_Date-Entry_Date))
This is what I have entered and it works perfectly until I get to the end of the month and there are residents current. I need the Bed Nights to stop calculating at the first day of the next month Is there a way to add in a EOMONTH part to this formula?
Bookmarks