NEWSheetSteps AI now turns entire websites into clean spreadsheet columnsExplore web scraping  →
Google Sheets · Verified tutorial

Publish a sheet to the web in Google Sheets

Create a published-view URL in B2. Enter exactly =REGEXREPLACE(A2,"/edit.*$","/pubhtml"). Do not change the spreadsheet URL in A2.

Verified by JosephineAbout 60 seconds
Quick answer

Create a published-view URL in B2. Enter exactly =REGEXREPLACE(A2,"/edit.*$","/pubhtml"). Do not change the spreadsheet URL in A2.

Step-by-step

1

Select the targetCreate a published-view URL in B2.

2

Apply the changeEnter exactly =REGEXREPLACE(A2,"/edit.*$","/pubhtml").

Shortcut or faster method

Select the target cell, type or paste the formula in the formula bar, then press Enter.

Expected result

B2 contains the public web-view form of the spreadsheet URL.

Common mistake

Changing the source values while applying the formatting or structure change.

Troubleshooting

Re-select B2 and repeat the final action. B2 contains the public web-view form of the spreadsheet URL.

Example spreadsheet data

This is the clean fixture used for the verified run.

Spreadsheet URLPublished web URL
https://docs.google.com/spreadsheets/d/1SheetStepsExample/edit#gid=0

Video transcript

  1. Open the prepared Publish link spreadsheet.
  2. Select the target. Create a published-view URL in B2.
  3. Apply the change. Enter exactly =REGEXREPLACE(A2,"/edit.*$","/pubhtml").
  4. B2 contains the public web-view form of the spreadsheet URL.