+ Reply to Thread
Results 1 to 5 of 5

formula for giving "yes" if services are between certain dates

  1. #1
    Registered User
    Join Date
    10-23-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    21

    Question formula for giving "yes" if services are between certain dates

    Hello!

    I have what i think might be quite a complicated formula question... I have 6 columns that represent certain services (3 services in total) and dates on which they were taken up (see attached document). I would like the result of the formula to be "yes" if either of the 3 services have been given within certain date parameters (i.e. within the quarters specified in the green box also on the spreadsheet). Does anyone have any idea how this oculd be done?

    I have kind of been doing similar things using a SUMPRODUCT function but I don't want this to actually count up the number of services, i just want the formula to say "yes" if any of the 3 dates are within a specific time frame.....thinking about it the services columns could just be completely ignored and the 3 date columns could be the only things used in the formula.....

    Any ideas?

    Anna
    Attached Files Attached Files
    Last edited by anna57; 11-13-2009 at 07:49 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,604

    Re: awkward question about formulas

    Look here:

    example%20database%202(1).xls

    I didn't make for third column.

    1) you need to enter dates as dates
    2) what if something is in 2 quarters?
    like 9 and 10th row?

  3. #3
    Registered User
    Join Date
    10-23-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: awkward question about formulas

    If dates on the smae row were in different formulas I would want "yes" (or what ever the alternative is) to be in the outcome for both quarters. Just a quick question about your amendments to the database, I see you have rearranged the quarters box, how does the computer know to look between certain dates? Does it know this by you highlighting the K2:L9 box?

    Thanks so much for your quick reply!

    Anna

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,604

    Re: awkward question about formulas

    Sorry, I forgout about your "yes" issue

    Something like this?

    =IF(VLOOKUP(B3;$K$1:$L$9;2;TRUE)=VLOOKUP(D3;$K$1:$L$9;2;TRUE)=VLOOKUP(B3;$K$1:$L$9;2;TRUE);"yes";"x")

    Yes, vlookup functions:

    =VLOOKUP(D3,$K$2:$L$9,2,TRUE)

    D3 - what value to look

    $K$2:$L$9 - within what range

    Return n-th column for seeked value

    TRUE/FALSE - find aproximate/exact value

    Since you look aproximate it will all dates put in same Q until next date is reached (need to sort them in ascending order)
    Last edited by zbor; 11-11-2009 at 10:54 AM.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: awkward question about formulas

    Anna, please take a few minutes to read the forum rules, and then amend your thread title accordingly.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

+ 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