+ Reply to Thread
Results 1 to 6 of 6

Weekly data and need to match to daily

  1. #1
    Registered User
    Join Date
    03-08-2013
    Location
    denver
    MS-Off Ver
    Excel 2003
    Posts
    6

    Weekly data and need to match to daily

    Hello! This is my first post so bare with me.

    I receive data that is a weekly value but I need it to matchup daily.

    Example:

    Weekly Data:
    Column A Column B
    5/24/1996 Health
    5/31/1996 Energy
    6/7/1996 Materials


    Need it to matchup as follows:
    Column C Column D
    5/24/1996 Health
    5/28/1996 Health
    5/29/1996 Health
    5/30/1996 Health
    5/31/1996 Energy
    6/3/1996 Energy
    6/4/1996 Energy
    6/5/1996 Energy
    6/6/1996 Energy
    6/7/1996 Materials
    6/8/1996 Materials.....etc. etc.

    Thanks for your help

  2. #2
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Weekly data and need to match to daily

    Hi and welcome to the forum!

    Can you upload an example spreadsheet with the results typed in manually so we can see how the data is to be 'matched up' exactly.

    This can be done by clicking 'Go Advanced' next to the 'Post Quick Reply' and then you can attach files from there.
    Say thanks, click *

  3. #3
    Registered User
    Join Date
    03-08-2013
    Location
    denver
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Weekly data and need to match to daily

    I think I figured it out. I removed the "0" (which is exact match) at the end of my index, match formula and used less than "1": =INDEX($B$4:$B$898,MATCH(C6,($A$4:$A$898),1))

    I think it just takes the closest date. I'm wondering if there is a full-proof formula though. I don't want it to pull in the wrong data.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Weekly data and need to match to daily

    I copied your data to column J and K

    Then I seleted the total range.

    Excel 2007 => sort => sort on column K from A to Z

    after that sort on column J from old to new

    Then you get the result in the file

    You can also use column A and B for this action, but i copied it just to show you.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Weekly data and need to match to daily

    Yup that works, may need to be -1 depending on how you want it to match.

    0: This finds exact match only
    1: This finds nearest match less than or equal to lookup value
    -1: This finds nearest match greater than or equal to lookup value

  6. #6
    Registered User
    Join Date
    03-08-2013
    Location
    denver
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Weekly data and need to match to daily

    Awesome, thanks guys!

+ 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