+ Reply to Thread
Results 1 to 2 of 2

Comparison between 1 value and 2 columns

  1. #1
    Registered User
    Join Date
    04-20-2011
    Location
    Paris
    MS-Off Ver
    Excel 2003
    Posts
    1

    Comparison between 1 value and 2 columns

    Bonjour,

    I got a sheet with start and end dates. I want to create a formula, which, fo a given date, checks this date isnt in any [start;end] interval. I'd rather avoid using VBA.

    example for April 20th : (date are in dd/mm format)
    sheet1 :
    Please Login or Register  to view this content.
    sheet2 :
    Please Login or Register  to view this content.
    in sheet1, April 20th isnt in any interval, I want my formula to return TRUE
    avec le tableau 2, elle est dans le premier intervalle, je veux FAUX


    I already succeeded in checking for 1 row :
    =AND(mydate>A2;mydate<B2)
    But I don't know how to extend that to a full row without using VBA...

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Comparison between 1 value and 2 columns

    You can copy your formula down the column by dragging it down via the little black square at the bottom right corner of the cell...

    This will automatically change the A2 and B2 to A3 and B3, A4 and B4, etc as you copy down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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