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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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:

ALL DATEPRICEMARKET OPENCLOSE
2000-01-01

<colgroup><col></colgroup><tbody>
</tbody>
2000-01-0124.50
2000-01-02
2000-01-0225.15
2000-01-032000-01-0424.94
2000-01-042000-01-0524.75
2000-01-052000-01-0625.31
2000-01-062000-01-0725.18
2000-01-072000-01-0824.84
2000-01-082000-01-1025.09
2000-01-09
2000-01-10

<tbody>
</tbody>


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,214,834
Messages
6,121,877
Members
449,056
Latest member
ruhulaminappu

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