+ Reply to Thread
Results 1 to 4 of 4

If Command query

  1. #1
    Registered User
    Join Date
    11-29-2012
    Location
    Trinidad, W.I.
    MS-Off Ver
    Excel 2010
    Posts
    7

    If Command query

    I have a spreadsheet to confirm compliance events are met.

    I have set up an IF COMMAND and I want to determine whether a compliance event has been met.

    So the command I have set up requires that where the "date filed" is less than the "Deadline date" then compliance has been met (i.e. "Y"). and where the "date filed" is more than the "deadline date" then compliance has not been met (i.e. "N"). I want to leave this cell blank if the action is still pending (i.e. where "Date Filed" is still blank but it is showing as complied.

    I hope that I haven't confused anyone.

    Assistance would be really appreciated. Thanks.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: If Command query

    Maybe something l;ike this....

    =IF(Date Filed="","",if(Date Filed<deadline date,"Y","N"))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    11-29-2012
    Location
    Trinidad, W.I.
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: If Command query

    This worked perfectly. Thank you so much.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: If Command query

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below my 1st post to you)

+ 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. VBA Command Button Query
    By Airwilf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2010, 08:39 AM
  2. Excel 2007 : Excel 2007 VBA command button query
    By Airwilf in forum Excel General
    Replies: 0
    Last Post: 11-18-2010, 06:11 AM
  3. Macro/Command Button Query
    By chuparfaan in forum Excel General
    Replies: 2
    Last Post: 06-23-2009, 01:58 PM
  4. USE OF DISTINCT COMMAND IN MS QUERY
    By Prakash in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-24-2006, 07:10 PM
  5. MS Query, command View-Query Properties
    By Frans van Zelm in forum Excel General
    Replies: 0
    Last Post: 01-06-2005, 11:06 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