+ Reply to Thread
Results 1 to 5 of 5

IF Date range formula

  1. #1
    Registered User
    Join Date
    05-12-2006
    Posts
    3

    IF Date range formula

    I need a formula that works like this.

    Cell A1 has a name
    Cell B1 has a date
    Cell C1 has a number

    If Cell A1 has a specific name and Cell B1 is do not exceed date, Cell D1 is populated with C1.

    For B1, it would be a date prior to 7/22/06, where 7/21/06 or 7/22/06 would populate D1, but 7/23/06 would remain blank in D1.

    Please help.

  2. #2
    Bruno Campanini
    Guest

    Re: IF Date range formula

    "Phatbob" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I need a formula that works like this.
    >
    > Cell A1 has a name
    > Cell B1 has a date
    > Cell C1 has a number
    >
    > If Cell A1 has a specific name and Cell B1 is do not exceed date, Cell
    > D1 is populated with C1.


    =(A1="Name")*(B1<=Now())*C1

    > For B1, it would be a date prior to 7/22/06, where 7/21/06 or 7/22/06
    > would populate D1, but 7/23/06 would remain blank in D1.


    I don't understand what you mean.

    Bruno



  3. #3
    Registered User
    Join Date
    05-12-2006
    Posts
    3

    Reply

    If my cut off date was 7/22, any date before or on that date, i.e. 7/22, 7/21, 5/30, etc., would populate Cell D1 with the number that is in Cell C1.

    Does that help?

  4. #4
    Registered User
    Join Date
    05-12-2006
    Posts
    3

    More Info

    In addition to the last clarification, I need to be able to only populate Cell D1 if both the name and date range constraints are met.

  5. #5
    Forum Contributor
    Join Date
    05-11-2006
    Posts
    104
    Ok I am sure there is a better solution than this - but this is the sort of thing I would come up with in my long way round of doing things!

    In A1,B1 and C1 I would have the data as you have detailed.
    I would also add E1 to be the latest possible date - in your case e1 would be 07/23/06

    in D1 I would then use the formula
    =IF(AND(A1="Name",B1<$E$1),C1,"")
    where you can replace NAME with whichever word/name you want it to be.

    You don't need to copy the value in e1 down the range as the formula will always look back at this same date.

    Sure someone on here will be able to think of a more concise version - but that's the solution I wouls use personally. Might learn something new myself too!!

    Hope that was of some help though!


    I need a formula that works like this.

    Cell A1 has a name
    Cell B1 has a date
    Cell C1 has a number

    If Cell A1 has a specific name and Cell B1 is do not exceed date, Cell D1 is populated with C1.

    For B1, it would be a date prior to 7/22/06, where 7/21/06 or 7/22/06 would populate D1, but 7/23/06 would remain blank in D1.

    Please help

+ 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