+ Reply to Thread
Results 1 to 3 of 3

Formula to find out shorter expiry dates for item received recently and in the past months

  1. #1
    Registered User
    Join Date
    02-19-2017
    Location
    malaysia
    MS-Off Ver
    2013
    Posts
    6

    Formula to find out shorter expiry dates for item received recently and in the past months

    Dear all,

    How can i find out the item code which has shorter expiry dates of recent received stocks versus same item code received in the past months with longer expiry dates? Really no idea to solve this..

    Thank you.


    sample.xlsx

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    Re: Formula to find out shorter expiry dates for item received recently and in the past mo

    In H2, to return a list of unique codes:

    =IFERROR(INDEX($C$2:$C$34,MATCH(0,INDEX(COUNTIF($H$1:$H1,$C$2:$C$34),0),0)),"")

    In I2, to return the earliest expiry date, use this array formula:

    =IF(H2="","",MIN(IF($C$2:$C$34=H2,$F$2:$F$34)))

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    Re: Formula to find out shorter expiry dates for item received recently and in the past mo

    If this was not what you wanted, please modify your sheet to show your expected results. My answer was a bit of a guess.

+ 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. Replies: 11
    Last Post: 05-04-2014, 08:28 PM
  2. Replies: 8
    Last Post: 02-20-2014, 05:46 PM
  3. [SOLVED] Calculate expiry dates based on months
    By goldfield in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-06-2013, 06:46 PM
  4. Replies: 1
    Last Post: 02-28-2012, 01:35 AM
  5. Replies: 1
    Last Post: 02-25-2012, 09:16 AM
  6. Workday Formula-Notice dates and Expiry dates
    By lamjoey in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-24-2011, 06:52 AM
  7. Macro to find dates past due in a column
    By bundyloco in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-04-2006, 05:24 AM

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