VBA/Data Scraping - Pulling (Today's) Bond Rates Into Excel

Vexorg

Board Regular
Joined
Oct 5, 2010
Messages
116
Hello,

I am trying to pull current market data (bond rates) into excel from the below link:

https://rates.chathamfinancial.com/us-market/rates

In short, I am trying to pull the rates for each respective term in the 'Current' column as per the highlighted below. I have been able to do this using excel's data scraper tool and using vlookups but I am pretty sure there is a better way (more accurate/consistent) to do this via VBA.


<header _ngcontent-c7="" class="rates-table__header" style="font-family: "PT Sans", Helvetica, Arial, sans-serif; box-sizing: border-box; display: flex; place-content: center; flex-direction: column; height: 30px; width: 606px; padding-left: 10px; margin: 0px; background-color: rgb(126, 126, 126); color: rgb(65, 65, 65); font-size: 16px;">[h=1]US TREASURIES[/h]</header>[FONT=&quot]
Current1 Day Ago1 Mo. Ago1 Year Ago
1 Year2.620%2.645%2.572%1.417%
2 Year2.837%2.877%2.815%1.583%
3 Year2.890%2.954%2.898%1.727%
5 Year2.944%3.011%2.963%2.042%
7 Year3.031%3.099%3.041%2.256%
10 Year3.108%3.169%3.082%2.415%
15 Year
30 Year3.334%3.367%3.218%2.923%

<thead _ngcontent-c7="" style="box-sizing: border-box;">
</thead><tbody _ngcontent-c7="" class="ng-star-inserted" style="box-sizing: border-box; padding: 10px;">
</tbody>
[/FONT]

vu8NWzU

vu8NWzU


vu8NWzU
Any help would be appreciated!
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,213,490
Messages
6,113,957
Members
448,535
Latest member
alrossman

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