Forum Discussion
bterning
Oct 11, 2020Copper Contributor
countdown from a date
I am not familiar with Excel jargon, so I'm having a hard time knowing how to ask what I need my spreadsheet today. This is what I need it to do: When someone admits to the facility I work at, some ...
JMB17
Oct 11, 2020Bronze Contributor
Excel treats dates as integers, so you can just subtract them. Assuming admit date, 10/1/20, is in A2, then
Today()-A2
would give you 2 days (if today were 10/3/20). But, since Medicare counts the day of admission and not the day of discharge, then I would think you would also want to test if Today=Admit Date:
=100-(TODAY()-A2+(TODAY()=A2))
- bterningOct 11, 2020Copper Contributor
Thank you so much! It worked! I want to learn more of this to make my work more efficient. This is a game changer!
- JMB17Oct 11, 2020Bronze ContributorSince you are fairly new, I should point out that this part:
(TODAY()=A2)
Works the same as this:
IF(TODAY()=A2,1,0)
For Excel TRUE=1 and FALSE=0, so I'm using a small shortcut.