Converting mothly data to daily data

Posted on 2011-03-14
Last Modified: 2012-05-11
This is a slightly different question to the one answered by Teylyn a little while ago.

In column A are daily dates in format yyyymmdd.  In column L are monthly dates in format Jan-90.  In columns N-R are numbers (1 or 0) relating to each monthly date.  I want to create a column of numbers (in say, columns C-G) for each day that match the respective number in columns N-R for the given month.  So for example, all of the daily numbers in column C for the month of January 1990 in column A would be the same as the number for Jan-90 in column N.  

I have attached a spreadsheet as an example. Sample.xlsx
Question by:pwflexner
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
LVL 50
ID: 35133436

In C8, copy across and down:


Adjust the bold parts to reflect the extent of your month lookup table.

cheers, teylyn
LVL 50

Accepted Solution

Ingeborg Hawighorst (Microsoft MVP / EE MVE) earned 125 total points
ID: 35133469
Or with Vlookup



Expert Comment

ID: 35133491
In B8 write this formula - "=DATE(LEFT(A8,4),MID(A8,5,2),1)"

In C8 write this - "=VLOOKUP($B8,$L$8:$R$14,3,FALSE)"

Copy paste the two formulas (all the way down in B column).

When you copy it to D8, change the 3 to 4 ... and so on.

LVL 50
ID: 35133551
Or, even shorter


The Column(C1) bit will return 3 in column C. When copied across, the reference will change to D1, E1, etc. returning 4, 5, etc. This will work if your datasets are in the same order in columns C to G and columns N to R.

If you use the formulas with Match() as per above, the order does not matter.

cheers, teylyn
LVL 50
ID: 35133850

thanks for the grade. Just as an FYI: Questions like these are normally rated with 500 points rather than 125. You will attract more experts if you assign more points to a question.

cheers, teylyn

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question