I have two columns of dates and one column with prices.
The first column is a day by day sequence across the year (365 cells). The second column are the days when a transaction occurred (eg. 100 cells) and the third column is the transaction price on those days (100 cells).
I want to plot the transaction prices (yaxis) against the first column (x axis). For this I think I can formulate a function to allocate zeroes on the days when there was no transaction and prices on the days there were prices.
I've tried a combo of approaches, none of which have worked. Maybe there's an easier way? Or I'm tripping up in executing one of these approaches?: =vlookup(), if(vlookups), =IF(ISERROR(MATCH), and =IF(ISERROR(MATCH(A2,$C$2:$C$111,0)),"no match",VLOOKUP(A2,$C$2:$D$111,2,FALSE))
Sample data:
[TABLE="width: 353"]
<tbody>[TR]
[TD]Cal Yr[/TD]
[TD][/TD]
[TD]Trans date[/TD]
[TD][/TD]
[TD]Trans price[/TD]
[/TR]
[TR]
[TD="align: right"]01/05/2015[/TD]
[TD][/TD]
[TD]10/05/2015[/TD]
[TD][/TD]
[TD]7.46[/TD]
[/TR]
[TR]
[TD="align: right"]02/05/2015[/TD]
[TD][/TD]
[TD]11/05/2015[/TD]
[TD][/TD]
[TD]7.31[/TD]
[/TR]
[TR]
[TD="align: right"]03/05/2015[/TD]
[TD][/TD]
[TD]19/05/2015[/TD]
[TD][/TD]
[TD]7.62[/TD]
[/TR]
[TR]
[TD="align: right"]04/05/2015[/TD]
[TD][/TD]
[TD]19/05/2015[/TD]
[TD][/TD]
[TD]7.08[/TD]
[/TR]
[TR]
[TD="align: right"]05/05/2015[/TD]
[TD][/TD]
[TD]20/05/2015[/TD]
[TD][/TD]
[TD]7.93[/TD]
[/TR]
[TR]
[TD="align: right"]06/05/2015[/TD]
[TD][/TD]
[TD]23/05/2015[/TD]
[TD][/TD]
[TD]7.115[/TD]
[/TR]
</tbody>[/TABLE]
The first column is a day by day sequence across the year (365 cells). The second column are the days when a transaction occurred (eg. 100 cells) and the third column is the transaction price on those days (100 cells).
I want to plot the transaction prices (yaxis) against the first column (x axis). For this I think I can formulate a function to allocate zeroes on the days when there was no transaction and prices on the days there were prices.
I've tried a combo of approaches, none of which have worked. Maybe there's an easier way? Or I'm tripping up in executing one of these approaches?: =vlookup(), if(vlookups), =IF(ISERROR(MATCH), and =IF(ISERROR(MATCH(A2,$C$2:$C$111,0)),"no match",VLOOKUP(A2,$C$2:$D$111,2,FALSE))
Sample data:
[TABLE="width: 353"]
<tbody>[TR]
[TD]Cal Yr[/TD]
[TD][/TD]
[TD]Trans date[/TD]
[TD][/TD]
[TD]Trans price[/TD]
[/TR]
[TR]
[TD="align: right"]01/05/2015[/TD]
[TD][/TD]
[TD]10/05/2015[/TD]
[TD][/TD]
[TD]7.46[/TD]
[/TR]
[TR]
[TD="align: right"]02/05/2015[/TD]
[TD][/TD]
[TD]11/05/2015[/TD]
[TD][/TD]
[TD]7.31[/TD]
[/TR]
[TR]
[TD="align: right"]03/05/2015[/TD]
[TD][/TD]
[TD]19/05/2015[/TD]
[TD][/TD]
[TD]7.62[/TD]
[/TR]
[TR]
[TD="align: right"]04/05/2015[/TD]
[TD][/TD]
[TD]19/05/2015[/TD]
[TD][/TD]
[TD]7.08[/TD]
[/TR]
[TR]
[TD="align: right"]05/05/2015[/TD]
[TD][/TD]
[TD]20/05/2015[/TD]
[TD][/TD]
[TD]7.93[/TD]
[/TR]
[TR]
[TD="align: right"]06/05/2015[/TD]
[TD][/TD]
[TD]23/05/2015[/TD]
[TD][/TD]
[TD]7.115[/TD]
[/TR]
</tbody>[/TABLE]