+ Reply to Thread
Results 1 to 5 of 5

formula for creating url out of cell data

  1. #1
    Registered User
    Join Date
    11-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    32

    formula for creating url out of cell data

    Hi there,
    I am looking to create a formula where i use the data from one cell to create a url out of it. Example, cell contains "AbcD" and I want it to automatically generate in another cell the url "http://www.mysite.com/abcd.jpg", so the domain will be constant and the file name needs to appear in lowercase with .jpg extension. I had previously done this with a script but I want to use a formula if possible.

    Thanks

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: formula for creating url out of cell data

    Try

    =HYPERLINK("http://www.mysite.com/"&LOWER(A1)&".jpg")
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    11-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: formula for creating url out of cell data

    thanks, this work, i had just 1 more issue I discovered. some of the data is hyphenated like "Ab-cD" so i need the formula to remove the "-" when creating the url with filename.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: formula for creating url out of cell data

    In that case use

    =HYPERLINK("http://www.mysite.com/"&LOWER(SUBSTITUTE(A1,"-",""))&".jpg")

  5. #5
    Registered User
    Join Date
    11-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: formula for creating url out of cell data

    works great, thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Use an existing cell formula for creating a new more complex formula
    By dubcap01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2014, 07:41 AM
  2. Replies: 1
    Last Post: 11-21-2012, 02:03 AM
  3. Creating formula based on if data is correct in cell
    By mattmurdock in forum Excel General
    Replies: 0
    Last Post: 08-02-2012, 11:19 AM
  4. Creating a formula in the same cell as the data input???
    By sudzy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-23-2012, 06:56 PM
  5. Creating a graphical formula from a set of data
    By rmellison in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-17-2005, 07:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1