Using TODAY()

%3CLINGO-SUB%20id%3D%22lingo-sub-2029632%22%20slang%3D%22en-US%22%3EUsing%20TODAY()%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2029632%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20my%20lab%20we%20document%20the%20expiration%20date%20of%20items%20every%20day%20we%20use%20them%20in%20excel.%20I%20want%20it%20to%20highlight%20when%20an%20item%20is%20expired%20so%20that%20the%20item%20is%20no%20longer%20used.%20If%20today%20is%201%2F4%2F21%20and%20an%20item%20expires%20today%2C%20we%20can%20still%20use%20it%20today%2C%20but%20I%20want%20it%20to%20highlight%20tomorrow%20if%20it's%20still%20being%20used.%20What%20I%20don't%20want%20to%20do%20it%20is%20open%20the%20sheet%20back%20up%20tomorrow%20and%20have%20the%20cells%20highlight%20for%20previous%20days%20entered.%20For%20example%2C%20I%20opened%20up%20the%20sheet%20today%20(1%2F4%2F21)%20and%20even%20though%20I'm%20using%20a%20new%20item%20(the%20item%20used%20the%20past%20few%20days%20expired%201%2F3%2F21)%2C%20all%20of%20the%20previous%20days%20are%20highlighted%20even%20though%20it%20wasn't%20expired%20when%20it%20was%20used.%20I%20used%20the%20formula%20%3CTODAY%3E%3C%2FTODAY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2029632%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2029712%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20TODAY()%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2029712%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F917317%22%20target%3D%22_blank%22%3E%40Sharon_Dquest1%3C%2FA%3E%26nbsp%3BCan%20you%20provide%20a%20sample%20workbook%20with%20no%20sensitive%20data%20to%20review%3F%20My%20best%20suggestion%20is%20to%20create%20a%20new%20static%20column%20that%20tracks%20the%20%22Date%20Last%20Used%22%20so%20prevent%20the%20TODAY%20function%20from%20incorrectly%20flagging%20expired%20items%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2036176%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20TODAY()%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2036176%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F867265%22%20target%3D%22_blank%22%3E%40adversi%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20a%20sample%20sheet.%20Thanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

In my lab we document the expiration date of items every day we use them in excel. I want it to highlight when an item is expired so that the item is no longer used. If today is 1/4/21 and an item expires today, we can still use it today, but I want it to highlight tomorrow if it's still being used. What I don't want to do it is open the sheet back up tomorrow and have the cells highlight for previous days entered. For example, I opened up the sheet today (1/4/21) and even though I'm using a new item (the item used the past few days expired 1/3/21), all of the previous days are highlighted even though it wasn't expired when it was used. I used the formula <TODAY() in each (ex=$K12:$K394<TODAY() ). I also can't just do Cell1<Cell2, since the day the result is entered if usually one of the last columns and I worry someone will miss it turn red since they're already towards the end of the row when it will turn red.  Any ideas?

5 Replies

@Sharon_Dquest1 Can you provide a sample workbook with no sensitive data to review? My best suggestion is to create a new static column that tracks the "Date Last Used" so prevent the TODAY function from incorrectly flagging expired items

@adversi 

Here is a sample sheet. Thanks!

@Sharon_Dquest1 

 

Can you post a sample sheet that isn't totally blank? 

 

@adversi asked for "no sensitive data," but (taking the risk of reading minds here) I doubt it meant "no data at all."  Just omit proprietary data, but give us something to work with that represents the kind of data, some of which is equipment that has expired, some of which hasn't yet, etc..... that would enable us to test functions, conditional formats, and so forth. If you could include the formulas you have developed, even though you're not satisfied, it still helps us help you.

 

 

@adversi 

 

You will find it attached. And if I had any common sense yesterday I wouldn't have removed everything. Thanks!

@Sharon_Dquest1 

I may be missing it, but this new one still is basically blank, isn't it? Here's a screen grab... Data: Please show some representative data, as asked before, in rows 4-6 at least, something to work with that represents the kind of data, some of which is equipment that has expired, some of which hasn't yet, etc..... that would enable us to test functions, conditional formats, and so forth. If you could include the formulas you have developed, even though you're not satisfied, it still helps us help you.

 

I see the formula in Column I, but no other.... but to see how you store the dates, since that's what you've asked about...etc.

 

mathetes_0-1610040465680.png