2

I've been using Google Sheets IMPORTHTML function to return NFL player stats.

Background

Formula

=importhtml(
    "https://www.playerprofiler.com/nfl/andy-isabella/",
    "Table", 2)

Formula Result

Targets Target Share Target Rate Snap Share Slot Snaps Routes Run Route %
1 (0.1 p/g) 0.3% 5.3% 4.7% 14 (53.8% rate) 19 (2.4 p/g) 6.2%
#224 -- -- #231 #190 #213 --

As can be seen above, the formula is returning all the values in the table including the headings.

Is there a way to use IMPORTHTML so it only returns a specific value instead of the entire table?

Andy Isabella on "Player Profiler"
Andy Isabella's 'Player Profiler' stats page

1 Answer 1

1

The following formula in A1 uses QUERY to return Column 3 only, while also limiting the result to a single value, with or without the column label.

A.  Include Label

=query(
   importhtml(
     "https://www.playerprofiler.com/nfl/andy-isabella/",
     "Table", 2),
   "select Col3 limit 1)

Result with Column Label

A
1 Target Rate
2 5.3%

B.  Exclude Label

=query(
   importhtml(
     "https://www.playerprofiler.com/nfl/andy-isabella/",
     "Table", 2),
   "select Col3 limit 1 label Col3 ''")

Result without Column Label

A
1 5.3%
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.