+ Reply to Thread
Results 1 to 4 of 4

Find weeks between multiple dates, and correspond with a cell.

  1. #1
    Registered User
    Join Date
    10-11-2013
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    8

    Find weeks between multiple dates, and correspond with a cell.

    Hi,

    I have two dates that are absolute, a start date, and an end date. In between these dates, there MIGHT be multiple other dates (up to 7 or so). Corresponding with each date is a sick leave %.
    Then in between each date, there will be changes of sick leave status in the period. The workbook is a log status/Statistical program over pregnant women and the pregnancy.

    Below is an example of dates.

    01.01.2013, 0%
    01.05.2013, 50%
    30.09.2013, 50%

    Or:

    01.01.2013, 0%
    01.03.2013, 40 %
    01.06.2013, 60 %
    30.09.2013, 60 %.

    The pregnancy period can be divided in 38 weeks. Then I want to know that for the first 8 weeks, the woman had a sick leave of 0 %. For the Next 13 weeks, she had a sick leave of 60 %, and for the last 17 weeks she had a sick leave of 60 %.

    And I want it to be divided in each week, so i.e. A1= week 1, 0%, A2=week 2, 0%...A14=week 14, 60 %.

    If I wanted to follow only one woman, I am able to use a IF-function, but the problem arises as there will be multiple woman, With completely different dates. Each start date will however always be week 1, so that I can compare the sick leave % in the different weeks of the pregnancy.

    Any good ideas on how to solve this? At first I thought about manually writing in the sick leave % in each week. But by instead using the dates the sick leave % actually changes, it will be much less demanding, if there is a formula/function that can do this. Hopefully this is understandable. I’ve attached an Excel-file, that hopefully shows what I’m trying to achieve.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Find weeks between multiple dates, and correspond with a cell.

    something like this
    Attached Files Attached Files
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Registered User
    Join Date
    10-11-2013
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Find weeks between multiple dates, and correspond with a cell.

    Thats excatly what i wanted. Thanks a lot!

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Find weeks between multiple dates, and correspond with a cell.

    Hello belly You are welcome and thanks for the feedback.

+ 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. Replies: 10
    Last Post: 09-04-2013, 08:34 PM
  2. [SOLVED] Rule to find cells in column A that correspond to multiple values in column B
    By margaretanne in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-11-2013, 07:24 PM
  3. [SOLVED] dates to correspond to pay period
    By KSI_Apps in forum Excel General
    Replies: 5
    Last Post: 09-14-2012, 03:31 PM
  4. difference between two dates in working weeks(5 day weeks)
    By AWilderbeast in forum Excel General
    Replies: 3
    Last Post: 08-31-2010, 09:21 AM
  5. Replies: 3
    Last Post: 08-24-2010, 09:27 AM

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