Replicating the ImportXML function from Google Sheet in EXCEL

%3CLINGO-SUB%20id%3D%22lingo-sub-1512910%22%20slang%3D%22en-US%22%3EReplicating%20the%20ImportXML%20function%20from%20Google%20Sheet%20in%20EXCEL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1512910%22%20slang%3D%22en-US%22%3E%3CP%20data-unlink%3D%22true%22%3EHow%20do%20I%20replicate%20in%20EXCEL%20this%20ImportXML%20function%20that%20returns%20the%20content%20of%20the%20table%20of%20a%20stock%20option%20contract%20like%26nbsp%3BAAPL200918C00395000%20at%26nbsp%3Bhttps%3A%2F%2Ffinance.yahoo.com%2Fquote%2FAAPL200918C00395000%3Fp%3DAAPL200918C00395000%26nbsp%3B.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20Google%20Sheet%20implementation%20is%20as%20follows%20and%20its%20results%20are%20attached%3A%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3E%3DIMPORTXML((%22https%3A%2F%2Ffinance.yahoo.com%2Fquote%2FAAPL200918C00395000%3Fp%3DAAPL200918C00395000%22)%2C%22%2F%2Ftr%22)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHelp%20much%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1512910%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1512974%22%20slang%3D%22en-US%22%3ERe%3A%20Replicating%20the%20ImportXML%20function%20from%20Google%20Sheet%20in%20EXCEL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1512974%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F724098%22%20target%3D%22_blank%22%3E%40JohnTertx1204%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EIf%20copy%2Fpaste%20your%20formula%20to%20Google%20Sheets%20it%20returns%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20245px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F204470i2C66002F90181D75%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3BIn%20Excel%20you%20may%20Power%20Query%20from%20Web%2C%20transform%20and%20return%20two%20tables%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorSergei%20Baklan_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

How do I replicate in EXCEL this ImportXML function that returns the content of the table of a stock option contract like AAPL200918C00395000 at https://finance.yahoo.com/quote/AAPL200918C00395000?p=AAPL200918C00395000 . 

 

The Google Sheet implementation is as follows and its results are attached:

=IMPORTXML(("https://finance.yahoo.com/quote/AAPL200918C00395000?p=AAPL200918C00395000"),"//tr")

 

Help much appreciated.

 

3 Replies
Highlighted

@JohnTertx1204

If copy/paste your formula to Google Sheets it returns

image.png

 In Excel you may Power Query from Web, transform and return two tables

 
Highlighted

@JohnTertx1204 

Was not able to insert second screenshot, here it is

image.png

Highlighted

@JohnTertx1204 

 

Where do you do your options trading? I ask because, as a Fidelity client, I've been just downloading the kind of Options data you're talking about for years, from Fidelity's Active Trader Pro. I don't know for sure, but would be surprised if most of the larger financial services firms don't offer competitive products.

 

The data is real-time, not 20 minutes delayed......granted, it is immediately a bit out of synch, but unless you're day trading that shouldn't be a problem.

 

Anyway, another idea.