I have two related questions:
1) First, I have a problem with INDEX and MATCH in Excel and cannot solve it using the usual tips. Here's my code:
=INDEX($D$2:$D$1000;MATCH(F$1;$B$2:$B$1000;0);1)
whereas D
contains dates and B
contains prices formatted as numbers.
F1
contains a specific date. What's wrong? I get #N/A.
2) Second, even if I get this to work, my problem is that D
contains 24 times the same date (i.e. B
contains hourly prices). I would like to paste all 24 prices for one date in one column in the order that they are listed in D
, and the next date in the next column etc.
Is INDEX and MATCH even the right approach for this?
Or Vlookup better?
How would I do it?