+ Reply to Thread
Results 1 to 3 of 3

Oldest date ignoring defaults.

  1. #1
    Registered User
    Join Date
    05-26-2008
    Posts
    10

    Oldest date ignoring defaults.

    I work with a lot of a large list of products received from a variety of countries and need to find the oldest instance of each individual product for each country. I can find the date individually not a problem, using the following formula:

    {=MIN(IF((Lim!H2:H10000="CH"),Lim!B2:B10000))}

    where 'lim' is the name of the sheet the data is pasted into,
    H is the column that the country code is located in (in this instance 'CH')
    and B is the column that that date is located in.

    Unfortunately not all of the smaller countries are always present, which means the formula returns '00-Jan-00', and is therefore instantly the oldest date. I want to find the date for each country, but then only report the oldest of them all together.

    Is there anyway of editing the formula to ignore any country that is not present (or give a 'N/A' result), or ignore the default date '00-jan-00'?

    For instance, I need the oldest UK, DE and FR, then the oldest one out of BE, IE and CH. If BE is not present, it automatically sets at the default and becomes the oldest. I am looking to have the formula ignore this result.

    I Hope I have made myself half clear. Thanks to anyone who gives this a shot.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    Please Login or Register  to view this content.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-26-2008
    Posts
    10
    Genius!!

    Thanks very much, it works perfectly. That was ridiculously fast. Your forumla solved a few other problems that I was overcoming with bits and pieces, so thanks!

+ 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