+ Reply to Thread
Results 1 to 9 of 9

Picture and FIle name Matching

  1. #1
    Registered User
    Join Date
    03-08-2010
    Location
    NY
    MS-Off Ver
    Excel 2007
    Posts
    14

    Picture and FIle name Matching

    Hello,
    As i am doing the spreadsheets for my website I was wondering if there was an easier way to do this.

    Say i have the following file names

    abc123
    abc124
    abc125
    abc126

    I have picures that correspond to each of these items. I have hosted the pictures in photobucket and those pictures have a url link like this

    htttp://photobucket.com/jmautoracing/abc123
    htttp://photobucket.com/jmautoracing/abc124
    htttp://photobucket.com/jmautoracing/abc125
    htttp://photobucket.com/jmautoracing/abc126.


    Now so items don'thave a picture that I have hosted so I want to know if there is a way to match the picture file names with the item numbers and if they don't match up to just leave it blank so I know I need a picture?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,968

    Re: Picture and FIle name Matching

    How do you want to do the matching? Do you have a column with pictures names, and another column with URLs in the same worksheet? Or do you need to do something fancy like for each file name, try to see if the corresponding URL exists or gives a 404 error?

    If you have file names in column A and URLs in column B, the following formula will tell which files don't have URLs, starting in C1 and copy down:

    =IF(ISERROR(MATCH("http://photobucket.com/jmautoracing/"&A1,B:B,0)),"MISSING","")

    Just noticed that your URLs have 3 t's, I guess that's just a typo but I fixed it in my formula
    Last edited by 6StringJazzer; 03-17-2010 at 03:25 PM. Reason: too many t's
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    03-08-2010
    Location
    NY
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Picture and FIle name Matching

    Column A has the item names and column b has tthe url names as I listed. THe urls has the item and i want to match it with the corresponding row so it looks like this

    abc123 htttp://photobucket.com/jmautoracing/abc123
    abc126 htttp://photobucket.com/jmautoracing/abc126
    abc124 htttp://photobucket.com/jmautoracing/abc124

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,968

    Re: Picture and FIle name Matching

    That's exactly the case covered by my formula.

  5. #5
    Registered User
    Join Date
    03-08-2010
    Location
    NY
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Picture and FIle name Matching

    Here is the worksheet because thats not wrking for me


    Excel.xlsx

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,968

    Re: Picture and FIle name Matching

    Your file does not match what you described. Column A just has the part of the filename left of the dot, not the entire filename. See attached for a correction that takes that into account.

    After re-reading your description I can't tell if you simply want to identify what's missing, or provide the actual match. Formula has also been updated to show the URL corresponding to the file name on the same line, or MISSING if not found.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-08-2010
    Location
    NY
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Picture and FIle name Matching

    If you look in colum A. you will see the item name. If you look in the url in column b, you will also see part of the fitem names. I want to match those urls un column b to the correct file name in column A

  8. #8
    Registered User
    Join Date
    03-08-2010
    Location
    NY
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Picture and FIle name Matching

    They file names in column B are in some random order and need to match that of colum A

  9. #9
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,968

    Re: Picture and FIle name Matching

    Quote Originally Posted by jmautoracing View Post
    If you look in colum A. you will see the item name. If you look in the url in column b, you will also see part of the fitem names. I want to match those urls un column b to the correct file name in column A
    Did you check my attachment? It hink that will solve it for you.

    In Column C, there is an attempt to match the root part of the item name in column A to a URL in column B. If a match is found, the matching URL is displayed; otherwise MISSING is displayed.

    The earlier problem was that column A has

    abc123

    but the URL has

    htttp://photobucket.com/jmautoracing/abc123.jpg

    which is a little different than your original description.

+ 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