+ Reply to Thread
Results 1 to 8 of 8

IF statement to "flag" or pull data

  1. #1
    Registered User
    Join Date
    12-15-2014
    Location
    America
    MS-Off Ver
    Microsoft Office 2013
    Posts
    20

    IF statement to "flag" or pull data

    Working in Excel 2013 and I am trying to implement and IF statement that will flag or pull cell data based on the following criteria.

    For example:

    Book1.xlsx

    On the above attached spreadsheet I am trying to populate column E with the Tracking number if the "order scheduled date" was not with 48 hours or 2 days from the "order received date". I am struggling to create the correct formula for this outcome. =IF(B2<(this is the part where I struggle)C2,A2,"").

    If anyone has some insight for me on this matter it would be greatly appreciated!

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,169

    Re: IF statement to "flag" or pull data

    try ....

    =IF(DATEDIF(B2,C2,"d")>2,A2,"")

    in column E

  3. #3
    Registered User
    Join Date
    05-09-2015
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    Office2007
    Posts
    47

    Re: IF statement to "flag" or pull data

    See attached...

    =IF(DATEDIF(B2,C2,"d")>2,A2,"")

    Thanks.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-09-2015
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    Office2007
    Posts
    47

    Re: IF statement to "flag" or pull data

    Extremely Sorry John Topley as I have not seen your reply before my posting.

    I used the same function.....

  5. #5
    Registered User
    Join Date
    12-15-2014
    Location
    America
    MS-Off Ver
    Microsoft Office 2013
    Posts
    20

    Re: IF statement to "flag" or pull data

    Wow! Thank you for the speedy response JohnTopley and sakib! The suggestions worked like a charm!

  6. #6
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,367

    Re: IF statement to "flag" or pull data

    =if(c2-b2>2,a2,"")

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,169

    Re: IF statement to "flag" or pull data

    Sakib,
    No apology required - we always going get "overlapping" responses.

  8. #8
    Registered User
    Join Date
    05-09-2015
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    Office2007
    Posts
    47

    Re: IF statement to "flag" or pull data

    Thanks JohnTopley...

+ 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] IF Statement Evaluates as "TRUE" but Returns "FALSE" Value (Excel 2007)
    By Simcik in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2014, 12:43 PM
  2. [SOLVED] Formula to pull out data from a list to create "Class Lists"
    By Losguapos1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-16-2014, 10:09 AM
  3. Replies: 0
    Last Post: 07-09-2009, 04:07 PM
  4. "Flag" in a selection statement
    By firefly2k8 in forum Excel General
    Replies: 4
    Last Post: 09-26-2008, 08:41 PM
  5. Replies: 3
    Last Post: 12-14-2006, 01:36 PM

Tags for this Thread

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