Simple date matching with stock prices.

jchiasson

New Member
Joined
Aug 3, 2018
Messages
4
Hello,

I have 2 columns of dates. The first column has all of the dates in the year and the second has dates where the stock market was open, next to which are stock prices. I would like to have the stock prices appear next to the first column where the dates match and on days where there is no stock price simply input a " - ".

I'm sure this is extremely simple, however I'm not sure how to go about it.
Any advice is appreciated.
Thank you so much
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Post a sample spreadsheet with expected results, remove any sensitive data, create a mockup example if necessary.
You cant attach files on this forum. There are tools on this forum for adding small spreadsheet images

https://www.mrexcel.com/forum/about-board/508133-attachments.html

Or upload the file to an online storage site and post a link to it, though some people may not download the file for fear of viruses.
 
Upvote 0
Thank you for your prompt reply. The spreadsheet would look like this:

[TABLE="width: 500"]
<tbody>[TR]
[TD]ALL DATE[/TD]
[TD]PRICE[/TD]
[TD]MARKET OPEN[/TD]
[TD]CLOSE[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 119"]
<colgroup><col></colgroup><tbody>[TR]
[TD]2000-01-01[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD]2000-01-01[/TD]
[TD]24.50[/TD]
[/TR]
[TR]
[TD]2000-01-02
[/TD]
[TD][/TD]
[TD]2000-01-02[/TD]
[TD]25.15[/TD]
[/TR]
[TR]
[TD]2000-01-03[/TD]
[TD][/TD]
[TD]2000-01-04[/TD]
[TD]24.94[/TD]
[/TR]
[TR]
[TD]2000-01-04[/TD]
[TD][/TD]
[TD]2000-01-05[/TD]
[TD]24.75[/TD]
[/TR]
[TR]
[TD]2000-01-05[/TD]
[TD][/TD]
[TD]2000-01-06[/TD]
[TD]25.31[/TD]
[/TR]
[TR]
[TD]2000-01-06[/TD]
[TD][/TD]
[TD]2000-01-07[/TD]
[TD]25.18[/TD]
[/TR]
[TR]
[TD]2000-01-07[/TD]
[TD][/TD]
[TD]2000-01-08[/TD]
[TD]24.84[/TD]
[/TR]
[TR]
[TD]2000-01-08[/TD]
[TD][/TD]
[TD]2000-01-10[/TD]
[TD]25.09[/TD]
[/TR]
[TR]
[TD]2000-01-09[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000-01-10[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


I would like the PRICE column to respond to the CLOSE price data and display it in the correct column on the correct days. On days where there is no market open, such as 2000-01-03, display "N/A".

Hope you can help.
Thank you very much!
 
Upvote 0
I meant to write: display the CLOSE data in the PRICE column only on the days where there is MARKET OPEN.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top