+ Reply to Thread
Results 1 to 4 of 4

Return a Blank if criteria field is blank when using dates

  1. #1
    Registered User
    Join Date
    04-16-2015
    Location
    BOSSIER
    MS-Off Ver
    2013
    Posts
    21

    Return a Blank if criteria field is blank when using dates

    If I am using the below formula =IF(ROWS(D$8:D8)<=K$5,INDEX(Sheet1!$D$7:$D$1000,SMALL(IF(Sheet1!$O$7:$O$1000="Temporary",ROW(Sheet!$O$7:$O$1000)-ROW(Sheet!$O$7)+1),ROWS(D$8:D8))),"")

    I do I get the TermDate in Sheet2 to be blank (not return anything) if the TermDate in Sheet 1 is blank. It currently returns 1/0/1900. I can adjust it by formatting but this causes problems when a TermDate is eventually entered.


    F5:Count of temporary employees from Sheet1
    D7:D1000: TermDate on Sheet1
    O7:O1000: Employee Type on Sheet1 (Temporary)
    D8: First cell in TermDate column on Sheet2

    Any help you can provide would be greatly appreciated. Thank you.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Return a Blank if criteria field is blank when using dates

    So the formula returns dates?

    Maybe this...

    =IFERROR(1/(1/INDEX(Sheet1!$D:$D,SMALL(IF(Sheet1!$O$7:$O$1000="Temporary",ROW(Sheet1!$O$7:$O$1000)),ROWS(D$8:D8)))),"")

    Still array entered.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    04-16-2015
    Location
    BOSSIER
    MS-Off Ver
    2013
    Posts
    21

    Re: Return a Blank if criteria field is blank when using dates

    You are fantastic, thank you!

    All of your solutions have been useful and solved my issues.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Return a Blank if criteria field is blank when using dates

    You're welcome. Thanks for the feedback!

+ 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] Getting Excel to return a blank field regardless of cell formatting
    By lukela85 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-26-2013, 03:03 PM
  2. Find Blank or (numeric/alpha) reuturn Blank or contents of another field
    By dhudson102 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-25-2013, 07:19 PM
  3. return field name if cell is blank
    By freebird_wr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-09-2013, 09:35 AM
  4. Replies: 1
    Last Post: 03-21-2012, 09:41 AM
  5. (multiple) VLOOKUP Function to return blank field on false
    By frank_a in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-10-2009, 01:39 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