+ Reply to Thread
Results 1 to 3 of 3

Using IF and SEARCH functions

Hybrid View

  1. #1
    Registered User
    Join Date
    12-04-2009
    Location
    Bromsgrove, England
    MS-Off Ver
    Excel 2003
    Posts
    53

    Using IF and SEARCH functions

    Im looking to create a formula for a spreadsheet which I will use in column N and ask it to search column B then if column B has the text 70% somewhere within the sentence column N would be the following text http://www.luxico.com/imagehosting/7...w-tint-car.jpg then also for the following

    If column B has the text "50%" column N will be http://www.luxico.com/imagehosting/5...w-tint-car.jpg

    If column B has the text "35%" column N will be http://www.luxico.com/imagehosting/3...w-tint-car.jpg

    If column B has the text "20%" column N will be http://www.luxico.com/imagehosting/2...w-tint-car.jpg

    If column B has the text "5%" column N will be http://www.luxico.com/imagehosting/5...w-tint-car.jpg

    Please note that column B may have the following text Pre Cut Car Window Tint for a Alfa Romeo 147 3 door Hatchback (2001-2009) Rear Kit in 70% Ultra Light Tints so the percentage will be in there as in this case 70% but not alone, it will be with other text.

    What's the best way for me to go about doing this?

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Using IF and SEARCH functions

    You could perhaps use something along the lines of:

    ="http://www.luxico.com/imagiehosting/"&0+MID(A1,SEARCH("%",A1)-2,2)&"-percent-car-window-tint-car.jpg"

    (assumes % appears once and once only in each string)

    If you want the above as a Hyperlink encase the above within HYPERLINK function.

  3. #3
    Registered User
    Join Date
    12-04-2009
    Location
    Bromsgrove, England
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: Using IF and SEARCH functions

    Brilliant, that worked a treat thanks donkeyote

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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