+ Reply to Thread
Results 1 to 9 of 9

excel function to count links

  1. #1
    Registered User
    Join Date
    09-25-2013
    Location
    myob,ok
    MS-Off Ver
    Excel 2007
    Posts
    63

    excel function to count links

    Hello,

    Below is a function I am working on. Everything in my function works up to when I enter a link in P6. I do not know how to count links or hyperlinks but I was hoping the was someway that if P6 has http or www as a part of link then I would like my function to compute it and release the value I want to be entered. Any help will be appreciated. Thank you.

    =+IF(AND(P6="Buy"),"Buy",IF(AND(P6="Instock"),"Instock ",IF(AND(P6="Supplier"),"Supplier",IF(AND(P6="www"),"Follow Link",""))))

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: excel function to count links

    It would help to see a sample of what you are working with?

    Having said that, Im not sure you need all those AND()'s - AND() and OR() are used when you want to test for a number of different criteria. =AND(A1=1,B1=1) will give TRUE only if both A1 and B1 contain 1 =OR(A1=1,B1=1) will give TRUE if either A1 and B1 contain 1.

    So may be try...
    =IF(OR(P6="Buy",P6="Instock",P6="Supplier"),P6,IF(P6="www","Follow Link",""))

    Not entirely sure what you mean the rest of your question?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-25-2013
    Location
    myob,ok
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: excel function to count links

    Thank you for cleaning up my function. But it still does not work or do what I need it to do in reference to the counting the link. I have attached a sample ** my worksheet for you to see.Sample.xlsm

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: excel function to count links

    Try this, copied down

    =IF(OR(B2={"Buy","Instock","Supplier"}),B2,IF(ISNUMBER(FIND("www",B2,1)),HYPERLINK(B2,"Follow Link"&B2),""))

  5. #5
    Registered User
    Join Date
    09-25-2013
    Location
    myob,ok
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: excel function to count links

    That's awesome. It works. But can the function be edited only show "Follow Link" and not Follow Linkhttp://www.craigslist.org/about/sites
    Thank you so much.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: excel function to count links

    Sure, just remove the reference...
    =IF(OR(B2={"Buy","Instock","Supplier"}),B2,IF(ISNUMBER(FIND("www",B2,1)),HYPERLINK(B2,"Follow Link"),""))

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: excel function to count links

    Happy to help and thanks for the feedback

  8. #8
    Registered User
    Join Date
    03-13-2020
    Location
    Sydney
    MS-Off Ver
    Microsoft Office Professional PLus 2019
    Posts
    6

    Re: excel function to count links

    Quote Originally Posted by FDibbins View Post
    Happy to help and thanks for the feedback
    Hi, I'm Cem /Jam/
    I don't have enough experience in excel.
    Such that, I can't even figure out how to count all the hyperlinks in a specific range.
    I searched, but It looks like the best solutions come from this forum.
    Could you please help me?

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: excel function to count links

    Quote Originally Posted by burakcemboga View Post
    Hi, I'm Cem /Jam/
    I don't have enough experience in excel.
    Such that, I can't even figure out how to count all the hyperlinks in a specific range.
    I searched, but It looks like the best solutions come from this forum.
    Could you please help me?
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

+ 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] Excel function to count + display
    By Silencer001 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-10-2012, 08:44 AM
  2. Excel Links Not Updating, But All Links status are ok
    By DJPROLE in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-04-2011, 10:44 AM
  3. Count links
    By mthomas1215 in forum Excel General
    Replies: 2
    Last Post: 05-25-2009, 08:18 AM
  4. Links to Excel Spreadsheet - Save without breaking links
    By Danto in forum Word Formatting & General
    Replies: 0
    Last Post: 05-13-2009, 04:00 AM
  5. EXCEL - LINKS cannot easily get list of all links & names in book
    By Tuba Joe in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-29-2005, 06:05 PM

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