+ Reply to Thread
Results 1 to 17 of 17

Count Down

  1. #1
    Registered User
    Join Date
    08-30-2007
    Posts
    82

    Count Down

    Hi All

    I have a chemical log which has an expiry date column showing various dates. I have also added another column called expiry countdown as I would like to be able to count down the number of days remaining for this product based on its expiry date and the date when I open the spreadsheet. My plan then is to add conditional formatting to highlight in colour when a product is getting close to expire.

    does anyone know a way of being able to show days remaining?

    copy attached.

    Thanks for your help.

    Phil
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Count Down

    iN j2
    Please Login or Register  to view this content.
    wHAT IS CLOSE TO EXPIRE... 1 DAY? 6 DAYS? 3 MONTHS..........
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  3. #3
    Registered User
    Join Date
    08-30-2007
    Posts
    82

    Re: Count Down

    Hi Blake

    Thanks for the reply, You have done it very simply thanks. As you have shown all I wanted was the number of days remaining before the expiry runs out.

    My idea with conditional formatting would be 45 days and over the cell would be green, 30-44 days the cell would be amber and 29 and below would be red.

    Im assuming this is possible with this formula in place or would it not work like that.

    Thanks again

    Phil

  4. #4
    Registered User
    Join Date
    10-28-2014
    Location
    Scotland
    MS-Off Ver
    2010
    Posts
    2

    Re: Count Down

    Hi,

    I also use a similar scenario on a spreadsheet that I use.

    In your case it would be in Cell J2 place the following:
    Please Login or Register  to view this content.
    I also format the receiving cell (J2) in the number format and it seems to work okay.

    Hope this helps!

  5. #5
    Registered User
    Join Date
    08-30-2007
    Posts
    82

    Re: Count Down

    Thanks GlenQ

  6. #6
    Registered User
    Join Date
    08-30-2007
    Posts
    82

    Re: Count Down

    Thanks guys

    the formatting has worked but ideally I would like to show any blank cell as blank, So we don't have the drag the formula down everytime I add an entry.

    Any thoughts?

    I have re attached to highlight what I mean

    and thanks again guys

    Phil
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Count Down

    hiya - see the attached - does that work for you?
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    08-30-2007
    Posts
    82

    Re: Count Down

    hi Blake

    that's where I got with the formatting as per my last attachment. the problem I have is if I were to drag the formula down so any future log entries are added the countdown number and formatting would appear automatically, however if there were no entries on the row then I would still like the formula there but be blank as there is no information in G2, does that make sense??

    Thanks Phil

  9. #9
    Forum Contributor
    Join Date
    10-04-2014
    Location
    Europe
    MS-Off Ver
    2007
    Posts
    107

    Re: Count Down

    Would this work,

    =IF(G2="";"";ABS(TODAY()-G2))

  10. #10
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Count Down

    oh yes - i see the problem - even with the formula in the cell it CF's Green (even using Bob's formula above) its totally possible, i just need to have a think!

  11. #11
    Registered User
    Join Date
    08-30-2007
    Posts
    82

    Re: Count Down

    Hi Bob

    Sorry it says there is an error!!

    Thanks Phil

  12. #12
    Registered User
    Join Date
    08-30-2007
    Posts
    82

    Re: Count Down

    its highlighting the first 2 quote marks!!!!

    and iam totally clueless lol

  13. #13
    Forum Contributor
    Join Date
    10-04-2014
    Location
    Europe
    MS-Off Ver
    2007
    Posts
    107

    Re: Count Down

    the error is probably coming from the ;
    Our Excel is German so we use ; instead of ,

    try this

    =IF(G2="","",ABS(TODAY()-G2))

    Also, I have been playing with your formatting, do you realize that once the count has gone past the expiry date the count starts going back up again e.g. a delivery date of 28.10.2014 and an expiry date of 28.09.2014 gives a count of 31 and an orange cell.

  14. #14
    Registered User
    Join Date
    10-28-2014
    Location
    Scotland
    MS-Off Ver
    2010
    Posts
    2

    Re: Count Down

    Quote Originally Posted by Bobsone View Post
    the error is probably coming from the ;
    Our Excel is German so we use ; instead of ,

    try this

    =IF(G2="","",ABS(TODAY()-G2))

    Also, I have been playing with your formatting, do you realize that once the count has gone past the expiry date the count starts going back up again e.g. a delivery date of 28.10.2014 and an expiry date of 28.09.2014 gives a count of 31 and an orange cell.
    The following can be fixed by removing the ABS and switching your subtraction elements.

    Please Login or Register  to view this content.

  15. #15
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Count Down

    Hi - im not so good with CF'ing but I think i have a workaround using a helper column and formatting that one .... may be ok!
    Attached Files Attached Files

  16. #16
    Forum Contributor
    Join Date
    10-04-2014
    Location
    Europe
    MS-Off Ver
    2007
    Posts
    107

    Re: Count Down

    the solution from GlenQ looks like a winner

    I changed the formatting and with GlenQ's solution it looks like it works as intended.

    I have set the conditional formatting as follows the red is set; cell Value>Between =1 and =30, orange is Cell Value>Between =31 and =40 and green is Cell Value>Greater than =40.
    I added a fourth conditional format to reflect any value that is past its use by date; Cell Value>Less than =1

  17. #17
    Forum Contributor
    Join Date
    10-04-2014
    Location
    Europe
    MS-Off Ver
    2007
    Posts
    107

    Re: Count Down

    Hi
    I have loaded the sheet with GlenQ's solution and my Conditional Formatting mods in J2:J497

    Hope this helps.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Sort and Count Unique List Across Multiple Columns - Student Count
    By BuntyMac in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 08-17-2014, 07:00 AM
  2. Replies: 3
    Last Post: 11-18-2013, 02:06 AM
  3. Range.columns.count property returns wrong count after union operation
    By gopinan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2008, 04:48 AM
  4. Count Intervals of Filtered TEXT values in Column and Return Count across a Row
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  5. [SOLVED] Count Intervals of Filtered TEXT values in Column and Return Count across a Row
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-30-2005, 11:05 PM

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