+ Reply to Thread
Results 1 to 4 of 4

Help - Assigning monthly data to daily observations

  1. #1
    Registered User
    Join Date
    02-05-2018
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2016
    Posts
    3

    Question Help - Assigning monthly data to daily observations

    Hey,
    so I have daily data from 1.4.2009 to 31.12.2016. I need to add another variable, X, which only has values for monthly data, e.g. April 2009, May 2009 etc. Is there any function that can help me put the variable X to the daily observations, so that for every day I have one X variable value?

    Example

    april/09 ? april/09 4.32
    april/09 ? mei/09 5.85
    april/09 ? juni/09 -0.24
    april/09 ? juli/09 4.78
    april/09 ? augustus/09 1.06
    april/09 ? september/09 2.18
    april/09 ? oktober/09 -0.84
    april/09 ? november/09 5.85
    april/09 ? december/09 0.58

    For every day in April/09 I need the value of 4.32 assigned, for every day in May/09 value 5.85 assigned etc.

    Thank you in advance, I tried vlookup but it didnt work. I also thought about writing an IF function, but as I have over 3000 data it would be quite a fuss.

    Any ideas?
    Last edited by Swabswab; 02-05-2018 at 09:29 AM.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Help - Assigning monthly data to daily observations

    Hello and welcome to the forum.

    Assuming that your dates start in A2 and go down column A and that your lookup table is in columns D and E with column D being the first day of each month, try this in B2:

    =VLOOKUP(EOMONTH(A2,-1)+1,D:E,2,0)

    If you can't get this working, consider uploading a small representative sample of your sheet along with the desired results.

    To upload an Excel workbook, click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    02-05-2018
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2016
    Posts
    3

    Re: Help - Assigning monthly data to daily observations

    First time hearing of EOMONTH function, but works like a charm, thank you !

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Help - Assigning monthly data to daily observations

    It's a very useful function for scenarios such as this. Glad to help.

+ 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: 3
    Last Post: 02-03-2016, 01:53 PM
  2. [SOLVED] Showing a blank cell based on values of two another cells
    By Anuru in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-04-2014, 01:35 AM
  3. [SOLVED] Showing a decline in Date/Month based on previous cell
    By avidcat in forum Excel General
    Replies: 5
    Last Post: 01-25-2014, 09:47 PM
  4. Data Validation Lists & showing Month over Month performance
    By hilpup24 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-22-2012, 11:32 AM
  5. [SOLVED] bubble chart showing zones and month values
    By bongielondy in forum Excel General
    Replies: 5
    Last Post: 08-21-2012, 12:06 PM
  6. Showing values from one sheet in the other based on value
    By obionenairobi in forum Excel General
    Replies: 0
    Last Post: 11-18-2010, 05:36 AM
  7. Replies: 5
    Last Post: 01-09-2009, 10:11 AM

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