Your task consists of two separate tasks:
1. Retrieve information from a web page.
2. Write information to an Excel spreadsheet.
To retrieve textual information from a certain element of a Web page, you need to locate this element in the Objects Tree of the Object Browser panel (for instance, using the Finder Tool) and get the needed information using the innerText, innerHTML, Value, or some other property.
To write information to an Excel file, you can use either the abilities of the DDT object or the abilities of Excel's COM object.
To learn more about this, please refer to the DDT.ExcelDriver help topic and see the script example located here: