Updating a field to create a html link based on data in another field

divster27

New Member
Joined
Jan 19, 2021
Messages
32
Office Version
  1. 2016
Platform
  1. Windows
I upload products to my website using a number of excel files from suppliers.
So far, i've created a good data uploader, but i lack the skills required for the final bit, which is to create a field that will show what the final html link for the product will be

an example

Joe Henderson – Inner Urge – Netdiscs

The product name is Joe Henderson - Inner Urge

So i want to create a field that turns that bit of text into joe-henderson-inner-urge - i will be using this field as part of an automated mail shot

So - ultimately, remove all the spaces, and replace with "-"

It won't always be 4 words, it could be as many as....

CRO-MAGS – HARD TIMES IN THE AGE OF QUARREL VOL 1 (WHITE VINYL) – Netdiscs

Any suggestions appreciated!

Cheers
David
Netdiscs
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
You could try something like this assuming your value is in A1:
=substitute(A1," ","-")
 
Upvote 0
Solution
That's great - thanks!

wasn't sure quite how to do it as the product name already had a "'-" in it, but it is based on two other fields (artist and title)

so..........

="https://www.netdiscs.net/product/"&(SUBSTITUTE(B2," ","-")&"-"&SUBSTITUTE(C2," ", "-"))&"/"

gives me


where b2 = "joe Henderson"
and c2 = "inner urge"

Works well, thanks !

David
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top