This spreadsheet shows how you can use FRED Excel formulas to access US Treasury data and populate a spreadsheet with both current and historical US Treasury Bond yields.
The spreadsheet includes two charts: one showing historical data for the 10 Year US Treasury Note, and another plotting the spread between the 10 Year and 2 Year bonds.