+ Reply to Thread
Results 1 to 5 of 5

How to get array formula to return an empty cell instead of 00-Jan-00

  1. #1
    Forum Contributor
    Join Date
    02-09-2011
    Location
    Perth, Australia
    MS-Off Ver
    2016
    Posts
    161

    How to get array formula to return an empty cell instead of 00-Jan-00

    Hi Forum,

    I have an array formula that takes a value in cell C2, finds any matching values in the range $A$2:$A$30000 and then returns the latest date associated with these values (the dates are in the range $B$2:$B$30000). This works well.

    The problem I have is that when a date is not found in the range $B$2:$B$30000 it returns 00-Jan-00. I think this is because of the zero at the end of my formula which returns zero and then my date formatting shows that as 00-Jan-00. I need it to just show an empty cell ("") instead of 00-Jan-00.

    Please Login or Register  to view this content.
    I have tried using "" instead of zero (see formula below) but it returns #Value instead of an empty cell.

    Please Login or Register  to view this content.
    I also want it to return an empty cell ("") if the value in C2 is not found in the range $A$2:$A$30000. Again, it is presently returning 00-Jan-00 in these cases.

    Please see attached example spreadsheet.

    I have spent a lot of time experimenting with my formula but have not been able to get the result I need.

    Any assistance would be greatly appreciated.

    Dave
    Attached Files Attached Files

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: How to get array formula to return an empty cell instead of 00-Jan-00

    hello
    can you try this one.

    Please Login or Register  to view this content.
    btw do you have a post like this recently i think i saw one like this few days ago..

    Thanks.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,090

    Re: How to get array formula to return an empty cell instead of 00-Jan-00

    Maybe:

    =IF(MAX(INDEX(IF($A$2:$A$30000=C2,$B$2:$B$30000),0))=0,"",MAX(INDEX(IF($A$2:$A$30000=C2,$B$2:$B$30000),0)))
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    02-09-2011
    Location
    Perth, Australia
    MS-Off Ver
    2016
    Posts
    161

    Re: How to get array formula to return an empty cell instead of 00-Jan-00

    Thanks,

    I will try these.

    vlady,

    I did have a very similar post a few days ago. This problem is slighty different.

    Thanks very much

    Dave

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,090

    Re: How to get array formula to return an empty cell instead of 00-Jan-00

    @vlady: the formula isn't returning an error, it's returning zero which the format presents as 1 Jan 1900.

    Regards, TMS


    HTML Code: 

+ 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