dezibluenose
New Member
- Joined
- Oct 6, 2021
- Messages
- 12
- Office Version
- 365
- Platform
- Windows
Hi All - again I'm showing my lack of excel skills here and hoping someone can help me out.
I'm trying to complete a report for my work and show the days between an audit start and close date - easy enough to do and in column C of the picture below I put the following:-
=IF(B2="","",(DAYS(B2,A2))) As you can see, it give me what I need - shows the days between the start and end of the audit, and if the audit is not closed it shows as blank.
Where my problems start is when I've asked to do the same thing for audits that have not been closed yet. My formula works fine until it comes across an audit that's not been started yet.
I tried this formula =IF(B2="",TODAY()-A2,C2) - saying if the audit is not closed, show me the days it's been open for, and if it is closed, refer to the answer in the previous formula. Again that works fine unless the audit is not started yet and it's blank for audit start date. When that happens I get a massive wrong number.
I was trying to combine an IF and an OR statement together but started getting all sorts of wrong numbers. This will probably be something simple but how would you fix it so that if an audit hasn't been started yet I just see a blank entry, but retain the formula showing the open number of days?
Example Sheet
Formulas Used
I'm trying to complete a report for my work and show the days between an audit start and close date - easy enough to do and in column C of the picture below I put the following:-
=IF(B2="","",(DAYS(B2,A2))) As you can see, it give me what I need - shows the days between the start and end of the audit, and if the audit is not closed it shows as blank.
Where my problems start is when I've asked to do the same thing for audits that have not been closed yet. My formula works fine until it comes across an audit that's not been started yet.
I tried this formula =IF(B2="",TODAY()-A2,C2) - saying if the audit is not closed, show me the days it's been open for, and if it is closed, refer to the answer in the previous formula. Again that works fine unless the audit is not started yet and it's blank for audit start date. When that happens I get a massive wrong number.
I was trying to combine an IF and an OR statement together but started getting all sorts of wrong numbers. This will probably be something simple but how would you fix it so that if an audit hasn't been started yet I just see a blank entry, but retain the formula showing the open number of days?
Example Sheet
Formulas Used