+ Reply to Thread
Results 1 to 11 of 11

Setting expiry date with conditional formatting

Hybrid View

  1. #1
    Registered User
    Join Date
    02-07-2011
    Location
    Perth
    MS-Off Ver
    Excel 2003
    Posts
    7

    Post Setting expiry date with conditional formatting

    Hello,

    I have a long column of dates that I need to now when they are about to expire (1 month before)

    I am very new to excel and want the dates to be moved to a new column when they are within a month of the expiry date.

    I have been playing around with advanced filter using just numbers, and it's worked for me. But I can not seem to do it using a month criteria/conditon.

    Furthermore I want it to be able to tell me what it is that is expiring. e.g

    A1-100 is the names of people.
    B1-100 is the expiry date


    In short: I want excel to start a new column and add the name of the person that is about to 'expire' a month before.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,297

    Re: Setting expiry date with conditional formatting

    Hi Crilliams,

    See the example at the bottom of his page to advanced filter date ranges:
    http://www.contextures.com/xladvfilter01.html
    Here is another date filter example at
    http://www.get-digital-help.com/2009...in-excel-2007/

    To get a name based on the date - Either the Advanced Filter or VLookup might work, depending on how you have your data set up.

    Can you supply a short sample of your data? Press "Go Advanced" below the message area and then on the PaperClip Icon above the message area to upload/attach a sample file.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    02-07-2011
    Location
    Perth
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Setting expiry date with conditional formatting

    Thanks for the quick reply MarvinP,

    The second link was helpful, and I understand what is happening.

    I try the criteria in A1 - B1

    ="<=TODAY()+30" and =">=TODAY()" (is this correct?)

    So that it is less then one month away, but greater then todays date, but it doesn't work for me.

    Attached is a short sample. A4-A9 is the persons name and D4-D9 is the expiry date that I want to be notified of 1 month before

    Thanks
    Attached Files Attached Files
    Last edited by Chrilliams; 02-08-2011 at 09:12 PM. Reason: File

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,297

    Re: Setting expiry date with conditional formatting

    Hi,
    Find the attached which is an example of what you want. I've created 100 people with random dates as a Table. Then next to it is a Criteria with the correct syntax for the filter.

    Now you need to look at the Advanced filter to see how it works. You need to tell the Advanced filter where the data is, where the criteria is and where you want to put the answer.

    I hope this helps.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-07-2011
    Location
    Perth
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Setting expiry date with conditional formatting

    Thankyou very much, that is what I wanted yes

    One question, will this check excel automatically every time the file is opened?

    e.g: If something is about to expire in 35 days so it is not in the expiry column... then I open the excel file a week later when it is under 30 days, will it appear in the column?

    Thanks,

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,297

    Re: Setting expiry date with conditional formatting

    Hi,
    The quick answer is no. It (that is the Advanced Filter) will update each time you update or run it. For this to happen automatically we'd need some VBA behind the worksheet that would fire a macro that updated it each time something happens.

    Did you need that? Can you put your own vba in it? Use this one a while and learn how to do Advanced Filters and then in a few days, lets talk about "automatically"....

  7. #7
    Registered User
    Join Date
    02-07-2011
    Location
    Perth
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Setting expiry date with conditional formatting

    hahaha, ahhh if only life was so simple.

    I'll play around with this for a while and see how I go.

    Thankyou for your help, very informative and helpful

  8. #8
    Registered User
    Join Date
    02-07-2011
    Location
    Perth
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Setting expiry date with conditional formatting

    Another question...

    I thought it would be easy to do it for columns next to it aswell... turns out I was wrong.

    I can't figure out how to check for columns next to it (as in the sample attached). There are also some columns that are just text that would need to be skipped. (as in sample)

    Thanks,

    Chris
    Attached Files Attached Files

  9. #9
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,297

    Re: Setting expiry date with conditional formatting

    Hi Chris,

    Advanced Filters took me a few days to understand. I'm still not an expert. It looks like, in your example you aren't setting up the data range correctly. Also you need to spell the headings "Exactly" the same in the Criteria range. Look at:
    http://office.microsoft.com/en-us/ex...005200178.aspx and
    http://www.bing.com/videos/watch/vid...VR5&FORM=LKVR3
    to see if these help.

  10. #10
    Registered User
    Join Date
    02-07-2011
    Location
    Perth
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Setting expiry date with conditional formatting

    Hi again,

    I've been trying trial and error and i've been reading up on the links you posted me but I still can't seem to get it to function correctly.

    I can get it to do it for the first aid list of dates on the 'distr' sheet. But everytime i try to make it also do the other columns with dates in, it fails.

    Any idea what I am doing wrong?

    Thanks,
    Chris
    Attached Files Attached Files

  11. #11
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,297

    Re: Setting expiry date with conditional formatting

    Hi Chris,

    With the 3 second look at the Distr sheet you need a word in row 4 acorss all your columns. If you don't have that then Excel doensn't know it is a table. F4, K4 and M4 are blank they need a word in there. ALSO - who would have known this... Each of the other words in the 4th row must be different from each other. I see you have a few (1YR).

    The Row 4 is the important one as it is at the head of your table. The 4th row should be the top row of your DATA and also the row you use as the head of your Criteria Range.

    See what happens with that. We'll learn lots before we're done.
    Last edited by MarvinP; 02-10-2011 at 12:47 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1