A company sells a lot of carrots; every Carrot has a unique product ID.
I want the first row, containing a 9 digit product-ID to make every ID into a clickable URL format, containing a treated string corresponding to the product-ID.
Here is an example of a given URL:
https://example.com/wp-admin/edit.php?action2=-1&action=-1&fb_sync_enabled&paged=1&post_status=all&post_type=product&product_type&s=010666666&stock_status
The ID's are made out of 9 digits, separated past the fourth one by a hyphen.
In order to create a functioning URL the hyphen needs to be removed.
For the above mentioned example, the product ID with that very clickable link would be 01066-6666
.
A 1
is a title and should thus be ignored.
Any method that renders this result is the right one.
Best Answer
I cannot answer how to solve this issue within Google sheets. But since the original Question says this:
here is how I would solve the problem with a workaround:
It requires the following conditions to be met:
Follow these steps: