+ Reply to Thread
Results 1 to 7 of 7

Changing website hyperlink data to cell comments

  1. #1
    Registered User
    Join Date
    01-07-2023
    Location
    Vancouver
    MS-Off Ver
    MS 365
    Posts
    3

    Changing website hyperlink data to cell comments

    Hi All!

    I'm trying to make a spreadsheet of dictionary terms. One of my main sources online will let me copy the terms, but then when I paste the 1000 terms in a column it just gives me hyperlinks to the particular web pages where the often 1000 word definitions are at. Is there a way to bulk batch that to change the hyperlink web page into a cell comment? It would obviously make for some lengthy cell comments. Attached is an example and source that I am working with.

    Thanks!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-10-2023
    Location
    California, USA
    MS-Off Ver
    Microsoft 365 MSO (Version 2211 Build 16.0.15831.20098) 64-bit
    Posts
    8

    Re: Changing website hyperlink data to cell comments

    I took a look at your Workbook to see what you were talking about. Based on what I can see, those definitions are not part of the COPY/PASTE, but instead displayed on mouse hover like a traditional Screen Tip.

    The URL's look workable for batch Web Scraping, but when I tried connecting using Excels "From Web" tool on the Data tab, it kept failing to connect to their site. Most likely being rejected by the Site itself.

    I figured if you could use the URL's for each Term to scrape that Definition information into Excel, that would save a ton of time. I tried, but I didn't have any luck. Perhaps others more versed on using Power Query can assist or possibly a better way to connect to their site.

    I've used a similar tactic for a list of books based on a Unique ID in the URL.

    For example, your root URL's are appended by each term; dashes are used to replace the spaces as seen in each URL:
    3P is <URL prefix>/3p
    Alpha Risk is <URL prefix>/alpha-risk
    B10 Life is <URL prefix>/b10-life
    If you can get the web scraping to work, you might be able to extract it for all of the URL's you are interested in.
    Of course, you would need to use Find & Replace to replace the Spaces ( ) with Dashes (-) before building the full URL to scrap from. There is no guarantee that web scraping their site is even possible, but it's worth looking into.

    Please Login or Register  to view this content.
    $A2 being the cell that holds the properly formatted terms: from B10 Life to b10-life

    Another thing you could try is to contact them to see if they have a downloadable version of that information, they might be willing to share with you.

    Either way, best of luck. That's a ton of information and the manhours building it manually is incomprehensible to say the least.
    Last edited by zero269; 01-11-2023 at 01:52 AM. Reason: minor spelling/grammar

  3. #3
    Registered User
    Join Date
    01-10-2023
    Location
    California, USA
    MS-Off Ver
    Microsoft 365 MSO (Version 2211 Build 16.0.15831.20098) 64-bit
    Posts
    8

    Re: Changing website hyperlink data to cell comments

    I forgot to mention that in order to use a list of URLs to scrape, it needs to be turned into a Function, else you would need to scrape each URL individually.
    I used this guy's video on YouTube entitled "Import Multiple Pages from Web with One Query in Excel" and it worked for me for some books used to build an extensive reading log.

  4. #4
    Registered User
    Join Date
    01-07-2023
    Location
    Vancouver
    MS-Off Ver
    MS 365
    Posts
    3

    Re: Changing website hyperlink data to cell comments

    Well Zero, your name is not the least indicative of your skills! Thank you for looking at this! Yeah, there are multiple challenges on my project. I was running into the same thing on the power query and assuming their website had some sort of block on it happening. The other challenge is bulk batching the cell comment boxes which I haven't done before, but seems at least doable after the scraping was done, even if an add-on was needed. Like you, I'm sure there are a fair amount of people putting website data into excel data and then making it more readable and manipulative.

  5. #5
    Registered User
    Join Date
    01-10-2023
    Location
    California, USA
    MS-Off Ver
    Microsoft 365 MSO (Version 2211 Build 16.0.15831.20098) 64-bit
    Posts
    8

    Re: Changing website hyperlink data to cell comments

    Hi Xcellentform,

    I was thinking more about your end goal and was wondering if you considered looking to other sites with the same information?

    I did a quick search for "download six sigma terms and definitions" and found some other sources that you might benefit from.

    The top hits I saw were:
    1. goskills DOT COM has both terms (A-Z) and definitions on a single page, along with a few acronyms and symbols.
    2. chisolutionsinc DOT COM This one is a 6-page PDF with selectable text, but I noticed it only goes up to "Y", no "Z".
    3. sixsigmaonline DOT ORG has basically the same thing as goskills.com.
    4. projectsmart DOT CU DOT UK This one has a nice list of terms and definitions as well. This one might be easier to manipulate in Excel because the terms and definitions are over/under and not side/side.

    I can't post links yet, so I used bitly to shorten the URLs. Just preface "https:" for each of the following:

    1. //bit.ly/3IZcjtN
    2. //bit.ly/3ireOtX
    3. //bit.ly/3XGB5D5
    4. //bit.ly/3XqfL4i

    I took a stab at #4:

    I was able to copy all into Excel, then delete the empty cell (rows) and then format every other row to move them to a separate column to line them up side by side.
    1. Once pasted into Excel (Cell A2), leave them selected. On the Home tab, go to Find & Select > Go To Special… > select Blanks > OK
    2. Now that only the blank cells are selected, we can Delete those rows: Delete > Delete Sheet Rows
    3. I used Conditional Formatting to highlight (Fill color) every other row using the following formula: =MOD(ROW(A1),2)-0
    4. We want to filter this column to show only the Definitions. Just type any letter in the empty cell A1. Leaving A1 selected, turn on the filter: Sort & Filter > Filter
    5. Now just Filter by Color > No Fill
    6. You should only see the Definitions now. Select all the visible cells now and then Copy and Paste these definitions below the bottom of this list (cell A247) in my case; Paste Values only.
    7. You can delete the definitions that were filtered; select and delete cell contents; not rows.
    8. Clear the Filter but leave the cells selected.
    9. Repeat Steps 1 & 2 to delete those newly created Blank Rows.
    10. Now you can move your definitions into Column B and they will line up with their Terms.

    One thing to note is that the third term is missing. It's actually the definition of their 2nd term.; a duplicate. You just have to figure out what the proper term is based on the definition.

    I know this doesn't address your interest in getting "definitions" into a Comment, but it's a good start with getting definitions into Excel quickly.
    Last edited by zero269; 01-11-2023 at 10:36 PM. Reason: format

  6. #6
    Registered User
    Join Date
    01-10-2023
    Location
    California, USA
    MS-Off Ver
    Microsoft 365 MSO (Version 2211 Build 16.0.15831.20098) 64-bit
    Posts
    8

    Re: Changing website hyperlink data to cell comments

    Title to search for...

    Convert Excel Cell Contents to Comments and vice-versa with VBA Code

    I found this How-To on SumTips.com

    Although it says Comments, it actually turns the cell contents into a Note. I know in your Excel workbook you were using the newer Comments that are more dynamic than the original Note which is just a Call Out style Textbox.

    They have the VBA code that will even turn the Notes (comments) into Cell Contents. I think this is great. I just need to see if I can use it...
    You can select more than one cell to run the code against. Each cell will get turned into a Note (aka comment), and vice-versa.

    I tested it out and it works great if the Notes work for you. Comments are great for collaboration where multiple people are commenting and replying to comments. The Notes may actually be better. Personally, I think leaving those Definitions in a cell without wrapping the text. If you use a column to the right, that will keep it from running wild off screen. Just populate the column with a letter and change the Font Color to White so you don't see it.

    For example,

    Columns: A B C

    A = Term
    B = Definition
    C = that invisible "value"

    Set Column B with a specified Width so you can see just enough to know what to click on to read the entire thing.

  7. #7
    Registered User
    Join Date
    01-07-2023
    Location
    Vancouver
    MS-Off Ver
    MS 365
    Posts
    3

    Re: Changing website hyperlink data to cell comments

    Hi Zero,

    Wow, you are one dogged individual! I will look more into this this afternoon when I get a chance, but it seems like you surely solved most or all of the issues. The reason for all of it, like you may have noticed, is that even though LSS is getting to be quite popular, it still is a mess on the top end where there are no standardized terms, dictionaries, conflicting definitions, and sporadic categorization of definitions. There is no Miriam Websters LSS Dictionary, and since LSS draws on knowledge from accounting, engineering, QC, business, law/ legal, statistics, excel, etc. and the fact that every new author, grad student, or LSS Black Belt wants to add new terms or change existing terms.....it really has made a mess of things which is why new students struggle with it initially. LSS doesn't even have standardized symbols for graphs and charts!!! Haha! My first source dictionary had a paltry 100 terms and acronyms defined while my current running dictionary is up to about 950 terms and counting, so some of your sources are either redundant or possibly even new definitions to add to my running dictionary.

    Even after the definitions get sorted out, then the next phase that I am also working on in tandem, is making a comprehensive flowchart to identify which parts of the LSS process many of the actionable terms fall into. It's a lofty project but one that also does not seem to exist for LSS, or the ones that do exist map out maybe 20 or 30 of the processes leaving somebody with question marks on the other 250 processes or so.

    I've stepped away from Excel for a decade (been using google sheets due to being free) and so just getting back in the saddle with Office 365 and such and apparently haven't found the difference between Notes and Comments, so I greatly appreciate that advice you dropped too.

    My original dictionary did have definitions in cells of adjoining columns, and the visual sheet got really messy and reading the long definitions by scrolling right was just super distracting. I know changing it to text boxes of any kind is blowing up the bloat which has been, and will continue to be, an ongoing challenge with documents of this size.

    Thanks again for your continued dogged interest and help with this topic which I think is quite relevant to lots of others that are doing website scraping projects, which is a bit new for me as well. If the topic of LSS is of interest to you, I will keep you in the loop with the progression of my project.
    Last edited by Xcellentform; 01-12-2023 at 11:46 AM.

+ 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. Hyperlink or fomula to add result in comments of a cell
    By myself4u58 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-10-2022, 05:28 AM
  2. How Download the Data from Website which is inside the hyperlink and no csv extention
    By pwnyadav007 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2017, 03:07 PM
  3. Creating a website hyperlink from a data validation drop down list
    By JJLetz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-14-2015, 10:45 PM
  4. Web Scraping Data From A Website Where Hyperlink Does Not Change
    By NeedForExcel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-01-2015, 02:27 AM
  5. Hyperlink to a website search- inserting code to reference one cell.
    By taidog12 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 09-14-2014, 05:09 PM
  6. Replies: 3
    Last Post: 05-28-2014, 12:01 PM
  7. Replies: 1
    Last Post: 03-30-2013, 10:09 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