+ Reply to Thread
Results 1 to 3 of 3

A cell of Date matches with a range of DATES

  1. #1
    Registered User
    Join Date
    04-01-2013
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    2

    A cell of Date matches with a range of DATES

    Just to know how to compare/match a single dates compare with a column/range of dates

    For example, column A is the holidays of a year, if I input a date in cell B1, if B1 is match with any date in column A, then will display "holiday' on cell c1, if B1 doesn't match with column A, then will display "working_day" on cell C1.

    I have try this buy it seem don't work =IF(B1=A1:A20,"HOLIDAY","WORKING_DAY")

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: A cell of Date matches with a range of DATES

    hi there, welcome to the forum. try:
    =IF(COUNTIF(A1:A20,B1),"HOLIDAY","WORKING_DAY")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    04-01-2013
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: A cell of Date matches with a range of DATES

    many thanks, problem solve, thanks again!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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