Hi,
Please see screenshot before description:
Capture.PNG
I have prefilled Month column but instead of manual prefill, it should hold formula/solution. The solution should look at the lower table and see, that for jan column there are two values, so jan needs to repeat twice in the upper table and so on for the rest of the months. How to do it?
In the beginning I was thinking of using approximate HLOOKUP. Count the values in each month's column and add result to the previous column. So the value for jan would be 2, for feb ir would be 3 because 2+1=3. Then along the month column of upper table have and "index" column that is used as "what to hlookup column" and based on approximate match, find value. That doesn't work though because two things: I don't know what to do with "empty" month in the lower table and if index column from 1 to whatever holds a number that isn't in the list of values for lower table, it will still be looked up based on approx. match which is the solution and the problem at the same time.
Bookmarks