+ Reply to Thread
Results 1 to 5 of 5

How to merge two datasets with different time periods

  1. #1
    Registered User
    Join Date
    05-22-2022
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    6

    How to merge two datasets with different time periods

    Hi,

    I have two datasets (one with monthly data and one with quarterly data) about two different variables but about the same companies (see attachment).

    Exccel.JPG
    Exccel2.JPG

    I want to merge them to make one dataset with monthly data. For the quarterly data, I want to convert that to monthly by just taking the last available quarterly data. So for example, for December 98 I want to have the LV ratio of December 98 (which is the end of the quarter) together with the monthly return of that company for December 98. For January 99, it would be the LV ratio of December 98 (latest available quarter), but the monthly return for January 99 (see attachment).

    Exccel3.JPG

    I want to tell Excel to identify each company by its isin code and give from each sheet the LV ratio and return for a given time and for the LV ratio --> if date < next quarter but > previous quarter, take previous quarter.

    I hope it's clear enough
    Attached Files Attached Files
    Last edited by JuanVan12; 05-23-2022 at 06:44 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,084

    Re: How to merge two datasets with different time periods

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 non-editable pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet complete with an explanation and some expected results.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

  3. #3
    Registered User
    Join Date
    05-22-2022
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    6

    Re: How to merge two datasets with different time periods

    Hi, I just added the sample Excel sheet.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,084

    Re: How to merge two datasets with different time periods

    Where are the examples of the manually calculated expected results???

  5. #5
    Registered User
    Join Date
    05-22-2022
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    6

    Re: How to merge two datasets with different time periods

    I just updated it, thanks

+ 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: 0
    Last Post: 01-21-2019, 12:54 PM
  2. Need Help using Index Match to Merge Datasets accross Multiple Sheets
    By brownf75 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-14-2017, 07:06 PM
  3. Replies: 1
    Last Post: 06-11-2014, 10:12 PM
  4. [SOLVED] How to merge two datasets into a single datagrid?
    By Nesin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-20-2013, 02:07 PM
  5. Align two datasets with same Date and Time
    By olhodolago in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-04-2012, 04:08 PM
  6. plot two datasets after merge
    By blah444 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-11-2012, 04:52 PM
  7. Excel 2007 : merge two datasets
    By unjung whang in forum Excel General
    Replies: 0
    Last Post: 02-25-2011, 05:23 PM

Tags for this Thread

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