+ Reply to Thread
Results 1 to 3 of 3

If statement problem.

  1. #1
    Registered User
    Join Date
    07-01-2014
    Location
    Kansas, America
    MS-Off Ver
    2010
    Posts
    39

    If statement problem.

    Hello everyone,

    I have a problem.
    In my sample workbook you can see the on-time column is set up to Yes or NO
    based off whether the due date is earlier than the current date and if "Sent to Customer" appears in the notes column.

    I need to be able to put Sent to Customer and the date it was sent in the notes column without messing up the On-time column.

    For instance in my sample workbook, I have "Sent to Customer 07-09-14" in the notes column this should be considered on-time.
    But I don't know how to tell the On-time column to ignore/accept the date since each date will be different.

    Is there a way to do this?
    Thanks in advance for any and all assistance!

    Sample Workbook.xlsx

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: If statement problem.

    one way

    =IF(TODAY()<=[@[Due Date]],"Yes",IF(ISNUMBER(SEARCH("sent to customer",[Notes])),"Yes","No"))

    Although you might find it easier to add a NoteDate field and keep the date and note separate. This would also allow you to have a data validation list of Notes is such an approach was appropriate.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    07-01-2014
    Location
    Kansas, America
    MS-Off Ver
    2010
    Posts
    39

    Re: If statement problem.

    The list isn't necessary the only value that is consistently recurring is 'Sent to Customer'.
    Your solution works great! I never would of thought of using ISNumber and Search together.

    Thanks!

+ 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. Now() statement within a IF(AND statement problem
    By Modify_inc in forum Excel General
    Replies: 3
    Last Post: 03-27-2011, 04:17 PM
  2. Set Statement Problem
    By boylejob in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-22-2009, 01:55 PM
  3. Problem with IF statement within a COUNTIF statement
    By girlofscience in forum Excel General
    Replies: 5
    Last Post: 04-22-2009, 10:20 AM
  4. IF Statement Problem
    By RagDyer in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-06-2005, 04:05 AM
  5. [SOLVED] IF Statement Problem
    By in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-02-2005, 10:11 PM

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