+ Reply to Thread
Results 1 to 3 of 3

IF function finding a date in a date range

  1. #1
    Registered User
    Join Date
    04-29-2015
    Location
    Brisbane
    MS-Off Ver
    2010
    Posts
    1

    IF function finding a date in a date range

    Hello,
    Thank you in advance for helping me... I really appreciate it. I believe I need an =IF formula....

    I have a column with different dates in each cell (B25:B34). I also have some random dates listed in other cells (eg, N30). I would like a formula in cell N31 that will search the date range (B25:B34) for the exact date in cell N30 and if the date appears, then return the result of text "school" (or cell "A3" as the word "school" appears in that cell). If the exact date doesn't appear in the range (B25:B34) then leave the cell empty.

    I thought it would be =IF(AND(N30<="$B$25:$B$34",N30>="$B$25:$B$34"),$A$3,"")

    but this isn't working.

    thank you

  2. #2
    Forum Contributor
    Join Date
    03-17-2005
    Location
    Canterbury, Kent
    MS-Off Ver
    2003, 2010
    Posts
    285

    Re: IF function finding a date in a date range

    As long as there are no repeated dates in column B then try this in N31

    =IF(COUNTIF(B25:B34,N30)=1,A3,"")

    Windy

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: IF function finding a date in a date range

    =if(countif(b25:b34,n30),a3,"")
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

+ 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. Finding File Creation date, saved date and last modified date
    By david systems in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-22-2013, 05:49 PM
  2. Replies: 0
    Last Post: 05-30-2013, 07:50 PM
  3. Function that will create a range based on a start date and end date
    By ckosman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-24-2013, 10:09 PM
  4. Finding a date in a text string and comparing it to a date range
    By ABARAN1000 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-05-2012, 02:55 PM
  5. [SOLVED] SUMIF within date range as a function of today()'s date
    By irvine79 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-06-2006, 01:00 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