Forum Discussion
Monthly headcount based on hire date formula
That could be
=IF($D2<=E$1,"yes","no")
and drag it to other cells. If I understood your logic correctly, please check attached file.
SergeiBaklan Thanks - this makes sense to me and is what I was trying to do. However, when I copy this same formula into my document, I get return different values (for example, I get a no when you get a yes). Did you have to re-format the date or anything with the source file? See attached for my sheet simply updated for the formula you suggested - not sure why we get different answers.
- SergeiBaklanOct 11, 2020Diamond Contributor
You keep information about the hire dates as texts, not as dates. At the same in columns headers somewhere are dates, somewhere are texts.
I'd suggest to keep all dates as dates (which are actually numbers in Excel), not as texts. For that first convert Hire Date with Text to Columns into the dates
After that be sure you have no texts in columns headers, change all texts on dates
With that it shall work