![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Microsoft Office support MS Office support forum |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Feb 2008
Posts: 2
OS: Windows NT
|
Excel, calculating expiry dates & 3 answers/actions
I have been unsuccessful in finding a formula that can track the status of an expiry date (within relation to the current date) and return one of the following 3 possible status results/messages:
1) "Expiring within next 30 days" (or maybe "Expiring in X days", where the "X" keeps counting down the days) 2) "OK" 3) "Expired" Using an IF formula, I have been able to make the formula work returning 2 of my 3 responses, but have been unable to successfully add/return the 3rd status option. Any help would be greatly appreciated!! |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Moderator/ Rangemaster TSF Academy; Analyst, Security Team; Oor Wullie; TSF Surgeon and Resident Comic
|
Re: Excel, calculating expiry dates & 3 answers/actions
Hi and welcome to TSF.
Let's see if I've understood =IF(B2=NOW(),"OK",IF(B2<NOW(),"Expired",IF(B2<NOW()+30,"Expiring within next 30 days","")))
__________________
Iain - Defender of the Haggis and all things Scottish. I don't help by PM - post in the Forums. ![]() ![]() PC Safety & Security::PC running a bit slow?::Donate::Photographers Corner |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Feb 2008
Posts: 2
OS: Windows NT
|
Re: Excel, calculating expiry dates & 3 answers/actions
Hi Glaswegian,
Thanks for the welcome, and the formula. I totally forgot about the "Now()" function and was trying to do it as a formula, so thanks for the reminder of a simpler formula. FYI - the formula you provided was only giving me the "Expired" and "Expiring within next 30 days" responses so I tinkered with it and changed the "B2=NOW()" to "B2=NOW()>31" and am finally getting all three responses. It is working like a charm - THANKS! |
|
|
|
|
|
#4 (permalink) |
|
Moderator/ Rangemaster TSF Academy; Analyst, Security Team; Oor Wullie; TSF Surgeon and Resident Comic
|
Re: Excel, calculating expiry dates & 3 answers/actions
Ah - gotcha - sorry about that. I used to be able to count...
![]() Glad you got it sorted.
__________________
Iain - Defender of the Haggis and all things Scottish. I don't help by PM - post in the Forums. ![]() ![]() PC Safety & Security::PC running a bit slow?::Donate::Photographers Corner |
|
|
|
![]() |
| Thread Tools | |
|
|