
It has been over a year since I started publishing the Thursday Doors Recap page on Sundays, but It’s only been about a year since the process of producing that page has been on autopilot. Several many lots of OK, a few people have shown some interest in the behind-the-scenes story.
That’s your cue to skip to the gallery – it gets geeky beyond this point. Before you go, if you’re a Thursday Doors participant, the Recap Page continues to generate over 100 additional clicks, and people who include ‘tags’ continue to receive the most.
When I first got the idea to create the recap page, I built most of the processing in Excel. It was fast, easy to create, and I could see the results as I built/tweaked the formulas.
I use JavaScript (a programming language) to gather the links on my Thursday Doors post. I fine-tuned that script to target only the Comment area of the post, greatly reducing the number of links. Still, each week, there are upwards of 1,000 links. See the example below.

And no offense to GP Cox, but I don’t want any of those links in the recap. Fortunately, I can filter many of them out. I don’t want links containing “gravatar” and I don’t want any links containing “nofacilities.com.” Filtering out those two strings reduces 10 links to one – “https://pacificparatrooper.wordpress.com/” – I don’t want that one either, but extracting 100 links from my page was manageable, so I continued with that until I found a better way.
Here’s your chance to think like a programmer. I can feel you shudder.
“https://photographias.wordpress.com/” is a link to the parent page of Sofia Alves’s blog.
“https://photographias.wordpress.com/2022/04/21/thursday-doors-lisbon-7/” is the link to Shofia’s Thursday Doors post. How can I teach Excel to know which is which?
If you said “count the number of ‘/’ characters, you get 100 bonus points. Since you’re still here, I’ll explain. The formula below is how Excel counts the ‘/’ characters.
=LEN(B19)-LEN(B19)-LEN(SUBSTITUTE(B19,”/”,””))
LEN(B19) is the length of Sofia’s blog URL
LEN(B19)-LEN(SUBSTITUTE(B19,”/”,””)) is the length of her URL with all the ‘/’ characters removed.
The difference is the number of slashes removed. If it’s greater than three, it’s a link I want to keep. So, I sort the block of links by the column containing the number of slashes and I delete all the rows where the answer is three.

That reduces the number of links from about 100 to about 45. This is a process I can move into my JavaScript script, but I haven’t yet. It only takes a few seconds in Excel, so my motivation is minimal.
If you’re thinking, “the recap page rarely has over 40 links…” Give yourself another 100 bonus points. You’re right. Some of those links are duplicates. Duplicates are caused by people who leave a comment on my blog and include a pingback on their blog. Don’t take this the wrong way – I love the pingbacks – you’re spreading the link to Thursday Doors by including those!
When I run my script against my blog page, I get a table of entries that look like the image below:

I paste this into Excel. Then I can work with it.

- Title
- URL
- Tags
- Order in which the URL was linked to my blog (either by comment or pingback).
Now, back to those duplicates. I sort the data area by the URLs. Then I use Excel’s Cell Highlight feature to highlight the duplicates and then I delete one of the rows of data. Note: I keep the row with the tags, but I give it the lower of the two numbers representing order of arrival.

To get the tags to look nicer, I have a column with the formula below:
=IF(ISNUMBER(SEARCH(“#”,C14)),SUBSTITUTE(SUBSTITUTE(C14,”,”,” “),”#”,” “),” “)
In other words, if the Tags column includes a hash character, I replace the ‘#’ with blank spaces. I do the same for commas. That’s hard to see because the formula parameters are separated by commas.
Once I’ve manually eliminated the duplicates, I sort the remaining 30 or so data rows by the order in which they were posted. Now that the data is formatted and sorted, it’s time to create the table. Actually, since I’m using Excel, the table is constantly being formed and reformed.
If you’ve ever seen the Recap page, you know there are three columns: The URL to the blog post, the location of the blogger, and any tags they included. Here’s how I do that:
=HYPERLINK(G13,L13) – This formula creates a hyper link from the text in L13 and the URL in G13.
=IF(ISERROR(VLOOKUP(J14,BlogNames,3,FALSE)),””,VLOOKUP(J14,BlogNames,3,FALSE))
This function might not be familiar to many Excel users, but it’s one of the most power functions Excel offers. VLookup() and it’s companion HLookup() allow you to look for a string in a table and retrieve something associate with that string. In my case, I am looking for the URL of the blog’s parent page in a table of information provided by the form the bloggers filled out online. This gives me the friendly name of their blog (which I don’t get if they only leave a pingback) and the location they provided.

In layman’s terms, I look for the URL in the table. If I don’t find it (ISERROR), I leave the result blank. If I do find it, I take the result from the third column of that table. Then I copy the tags from the column where the ‘#,” was removed. The result table is shown below:

Next, I open WordPress, edit the Recap Page, delete the old table, copy the result table from Excel and paste it into the WP Editor. Then I set a couple parameters and I’m done.
While it sounds like there’s a lot going on (there is), Excel is doing most of it. Preparing the Recap Page usually take me less than 15 minutes from the time I run the JavaScript script to the time I’m pressing the “Update Page” button in WordPress. If you made it this far, give yourself 1,000 bonus points.
That was a very interesting explanation and merely reinforced my desire to never, ever become a host. However, I am grateful that lots of fellow bloggers are, including yourself, Dan.
LikeLiked by 3 people
Thanks Sheree. Obviously, the recap isn’t required, but since I put up another post while the challenge is still running, I like to give an extra look at the folks who post later. The programming and Excel work was fun – once a geek, always a geek – and now, the process is easy.
LikeLiked by 1 person
No need to apologise for geekiness
LikeLiked by 1 person
🙂
LikeLiked by 1 person
My trouble is, I receive notifications in my email by those that click the Like, Comment or Follow – BUT – now I no longer get a link back to their site. I know I must have people thinking I’m just ignoring them. If I don’t already follow a blogger, I have very little chance of finding them otherwise.
LikeLiked by 1 person
That’s awful, GP. I wish WordPress would get the things we have working well before moving on. And I wish they would stop breaking things. I say that I paste the table from Excel, but WP broke that, I have to paste to Google Sheets, copy that and then paste to WordPress.
LikeLiked by 1 person
Thank goodness you know how to do that.
LikeLiked by 1 person
I know you’ll forgive me skipping to the photos. Nice pileated shots, those boys are pretty hard to find around here though lots knows we hear them. Bunny butt -1. Tulip – 0.
🥴
LikeLiked by 1 person
Absolutely- no required reading today. I’ve been hearing that woodpecker for weeks, but this was the first time I saw him where I could get a picture. Otherwise, he’s a blurry bump in a distant tree. Yeah, bunny visited the salad bar 🙁
LikeLiked by 1 person
Yep, I went straight to the gallery! That I can understand.🤗
Love seeing Maddie stretched out on her deck getting a few 💤💤! And that bunny butt is too cute. Mr. bluejay will soon be hidden. Great shot. Tulips don’t have a chance in your yard! You need to find a less “tasty” flower. Lol!
Old Glory looks beautiful showing off in the breeze.
Happy Monday Dan. Hope today is the start of a great week.
Ginger
LikeLiked by 1 person
I don’t blame you , Ginger. Maddie just plopped as soon as she felt how warm the step, I mean her deck was.
I’m glad we got to see the tulip bloom for two days. Exactly two days, then munch, munch, munch.
It’s less windy, and warmer than most mornings have been. I’ll take that as a good sign. I have to rearrange the shed (put the snowblower away – get the lawn mower out).
I hope you have a great week.
LikeLike
I should never have tried to read all that! I understand only that I enjoy the recap and have a good time going down the chart. So thanks for doing all that! Thanks also for the woodpecker and fading moon — they helped undo the damage to my head. Not to mention “bunny butt.”
LikeLiked by 1 person
I am sorry for the details, Some people did ask (I hope they read this), but I knew the pictures would help. I hope you have a nice week.
LikeLiked by 1 person
Wow.. So much information! Also, I must say that the ‘Moon fading- leaves thickening’ picture, left me mesmerized.
LikeLiked by 1 person
Thanks Damyanti. You can’t keep the geek spirit contained forever. I love it when I see the moon out in the morning. I hope you have.a great week.
LikeLike
I don’t get the bonus points even though I had finished my morning coffee. I applaud your skills and your willingness to share. Do you get blog posts through email? Have you noticed all the ‘white’ background? I don’t like it, but they don’t care. :-)
LikeLiked by 2 people
The white background and the ugly black font titles that no longer look like links. Yep. I don’t like it either, and they do not care. I hope you have a great week!
LikeLiked by 1 person
I am so glad you mentioned about the new white background, Judy. I thought it was only my email–because that’s how I read WP, also. No, I am not a fan. We were told this was coming?? If so, I don’t remember.
LikeLiked by 2 people
I don’t remember anyone saying, “we’re going to introduce a new crummy looking email.”
LikeLiked by 1 person
Exactly!! I was complaining to my husband, and he had no idea how to fix my email. After reading this, I told him, “Nevermind. It’s not email.” So weird.
LikeLiked by 1 person
I don’t remember either. I thought there was something wrong and actually wrote to the Happy Engineers at WordPress. They listened but basically had to comment. :-) There’s so much white with the emails that you almost need sunglasses.
LikeLiked by 2 people
One day, Dan, I may show up again for Thursday doors. I think my post schedule is once every two years, and that’s not for awhile. So, I skipped to the photos.
Are you over-feeding nut-seeking squirrel? He/she looks a little chubby, but perhaps like me, that’s a bit of leftover winter weight. I’m glad it’s looking like spring in your area, with sprouting and flowering vegetation. It’s good for the soul and for Maddie to hang out on the Trex, in the sun. Give all of the fur kids a few skritches from me and have a great week.
LikeLiked by 1 person
Your schedule reflects your priorities, Mary. We can all respect that. The “chubby” squirrels might be the moms-to-be. Several are pregnant. I am enjoying the signs of spring, but now we have to start cleaning up the yard and getting ready for summer. There’s always something. Everyone with four legs is currently napping, although Maddie did go for a walk, and MuMu was scoping out the neighborhood at 5:30 from her perch in the window. Happy Monday, and have a great week.
LikeLiked by 1 person
Baby squirrels? Oh boy, you had better buy more peanuts. ;-)
LikeLiked by 1 person
Momma squirrels tend to be territorial. They send their kids off to find their own peanut man. Of course, there are squirrels and trees all around us, so some babies just move to the next yard.
LikeLiked by 1 person
I read all of that. But I don’t know why. I also don’t know why I went to university for three years. I don’t know what I just read. But in any case, I felt I owed it to you to read it because you wrote it.
LikeLiked by 1 person
Awwww, thank you. I had to get it out of my system, so when someone asked, I complied. I hope it’s after five o’clock where you are and you could at least have a glass of wine with the formulas.
LikeLiked by 1 person
Wine was partaken before reading which is probably the only reason I persisted. It is now bed time and I hope not to dream of Excel formulae…
LikeLiked by 1 person
Oh, I hope not 😴
LikeLiked by 1 person
ZZzz-zzzz, oh, I must have dozed off during this, Dan! 😉 Recap on Sunday. Got it. 😆 I am so thankful for all you do. Enjoy your week. Birdball coming soon??!!! Bring it on!
LikeLiked by 1 person
The birds are warming up, Lois. You got the important part of the message. But, hey, I’m pretty sure you remember Excel…
LikeLiked by 1 person
I love Excel! That was the one program I really enjoy/enjoyed working in. Let me just add the column up for you Oh, that add/sum button–Excel is awesome!
LikeLiked by 1 person
This is all over my head, but I love the photos and great that you have such a handle on the back side of the page. :)
LikeLiked by 1 person
Thanks Jan. Leftover skills from 42 years working with this stuff. At least I can put it to good use. I hope you have a great week.
LikeLiked by 1 person
I love that moon shot. And the woodpecker. They re so crazy cool. Okay, am I understanding that if we have a pingback to your doors post there is no need to leave a link in your comments for that post?
LikeLiked by 1 person
Yes, but you can only leave a pingback from WordPress 🙁
Also, comments let you tell people about your doors.
LikeLike
Another programmer would have asked why excel when you can do everything in shell. But I’m not going to.
LikeLiked by 1 person
Because this is all in the cloud, and I can do it from any device, even if it isn’t mine. I thought about writing program to do the whole thing, but that would have restricted me to my laptop.
LikeLiked by 1 person
Well, your translation of that geek speak made it almost easy for me to understand!! At least it makes a little more sense to me what you’re doing and how you’re doing the recap so nicely.
I am looking forward to Birdball. Spring is looking so lovely there. The Lilies of the Valley are really growing! I’m looking forward to seeing those too. I’d love to see a Pileated Woodpecker! I wonder if it gets a pain in the neck eating that way? 🤣
I hope you have a good week!
LikeLiked by 1 person
I’ve been hearing that woodpecker for weeks, but he’s been high in trees that are far away from the walk. When we turned the corner and I saw him, I was so happy. I didn’t get a great picture of him, he was on near constant motion. I’m hoping he comes back, now that he’s dug a nice picnic spot in that tree..
It’s fun to go out in the morning and see what might be in bloom. I hope you have a great week.
LikeLiked by 1 person
I hope that Woodpecker returns to that tree for you a lot this season! How exciting to see it. I can well imagine how happy you were to finally see it!! I do get it. I am doing my happy dance for you!!! 😀💃
LikeLiked by 1 person
Thank you 😊
LikeLike
The photos of the woodpecker are terrific, Dan. Good to see the park getting some action too. Looks like spring is going to take in your part of the country. Thanks for the discussion on Java and I didn’t get any bonus points. 😁
LikeLiked by 1 person
You have to wait a little longer for that Bentley, John. Maybe one of these Saturdays, you’ll look out your door and see Woody delivering Linda’s prompt. Heh-Heh-Heh-HEHHH-Heh.
LikeLiked by 1 person
I loved the Woody impersonation, Dan. 😊
LikeLiked by 1 person
I used similar functions in the various spreadsheets I’ve used (Excel, Google Sheets, LibreOffic Calc). Nice approach to automating the process for WordPress.
LikeLiked by 1 person
Thanks Frank. I like leaving some of it in Excel so I can tweak things easily as mistakes crop up.
LikeLiked by 1 person
I did try to read the recap, honestly I truly did. But my eyes glazed over and my chin started to fall… I skipped to the pictures. Now I have to make a comment, your pictures seem particularly clear today. Have you switched what you’re using to take the pictures? The bunny butt was hilarious. You must have a great zoom or bunny loves you.
LikeLiked by 1 person
Good eye, Pam. Sometimes, I remember to take my camera outside with me in the morning or when I’m out with Maddie. Usually, I just have my phone. The bunny has been letting us get closer. I guess he knows he’s safe, but that was with the zoom on my camera. I’ll give you 100 bonus points for trying.
LikeLike
I got lost near the beginning. I can barely deal with my own blog, let alone figuring out how to do good links. But I appreciate that you put it all together (applause). (K)
LikeLiked by 1 person
Thanks!
LikeLiked by 1 person
I used to be fairly prolific with Excel but wow, my hats off to you!
LikeLiked by 1 person
I didn’t use Excel a lot in my job, but I supported everyone else when they had special projects, We did a lot of modeling, and I learned to be creative.
LikeLike
I’m in awe of your geekness, but I’m forever lost in that world. I have fun with the artistry of creating a post, but otherwise, I depend on luck. 😊 Beautiful photos, Dan. When we lived in Missouri, the Pileated Woodpeckers were regular visitors. Though they are beautiful, I had to chase them off our shingles almost every day. Stubborn little pests! 😁
LikeLiked by 1 person
When we had wood shingles on our house, they used to dig into one corner of our porch, every year. We replaced the siding with vinyl siding, the kind that looks like shingles. They tried pecking into that one year and then left it alone.
The geeky stuff is fun now. I don’t do much, and I’m not under any pressure to do it, so I can enjoy it.
LikeLike
I found the whole thing fascinating….I admire your ability!!! You took me back a few years when I was working on some programming I was doing for my website…I have since not had the time and left it up to pre-programmed systems!! Also got to say…love the spring captures, especially since I now live somewhere where spring is real!!
LikeLiked by 1 person
Thanks Kirt. I remember the amazing spring in your area. These days, building it myself is my last choice, but sometimes it’s the only option.
LikeLiked by 1 person
Start me off with 1000 negative points and go from there .
LikeLiked by 1 person
Your seat is in the back of the class, Dan. I’ll join you in a few minutes.
LikeLike
Wow…just a wee bit overwhelmed! lol I had no idea you could do this kind of stuff with Excel. That said, I’m sending the link to this article to a friend of mine who’s far better at Excel than I will ever be. Bravo, Dan. :)
LikeLiked by 1 person
Thanks. You can do many things with Excel. Not that you should, but you can.
LikeLiked by 1 person
This looks as if it’s waaaaay beyond the odd macro. ;)
LikeLiked by 1 person
I used Excel a lot at work. I think I get 200 point for understanding what you said. If I go back to read four more times and do a hands-on, I may get some more points. I didn’t do all the programming stuff, one staff entered the formula in each cell of the spread sheet we used for student testing. :-)
LikeLiked by 1 person
You seem to be near the head of the class 😊
LikeLiked by 1 person
I was good at using Access also, Dan. Hubby appreciated that because I understood how he used Access and Excel for his strategic planning business. :-)
LikeLiked by 1 person
The ability to use Access is rare. I didn’t use it much, because we were developing systems against SQL Server, but the concepts are similar.
LikeLiked by 1 person
I scanned the students’ Scantron at the end of the school year, saved as text document, imported to Access, and used Access to join previous year and current years’ testing data by using the same student ID. After joining, deleted the previous year’s data to create a current year’s data, then print new Scantron with some completed (achieved) testing items for the current year’s teachers.
There were so many steps and involved Access, Excel, and Text Document with a lot of importing and exporting. It took about six weeks to process 5,000 student data. I only needed to do it once a year so I wrote down all the steps because by the next year, I might forget certain steps!
LikeLiked by 1 person
I understand that last statement.
LikeLiked by 1 person
Thanks so much for the pictures. The explanation regarding Thursday Doors that preceded it were about as understandable to me as if you had written it all in Latin. I am not Tech Savvy in the least and this reminded me how I am lacking in these skills. In fact, if it weren’t for my tech Savvy son I wouldn’t be here at all. Anyhoo, I’m impressed. I would love to participate but don’t even understand how to do THAT much less how you do what you do. :) Carry on.
LikeLiked by 1 person
All you need to participate is a picture of a door(s). Any week is fine, it’s open to all.
LikeLiked by 1 person
Thanks for the generous bonus points !
And I enjoyed learning a bit about the process for the recap page !
LikeLiked by 1 person
I’m glad you hung around to score the points.
LikeLiked by 1 person
1,000 didn’t water it down eaither – hahaha
And Looking forward to the writing challenge
LikeLiked by 1 person
Yay!
LikeLiked by 1 person
*either
LikeLike
HI Dan, that was a very interesting commentary on how you create the tables. I have never used some of those Excel functions because my spreadsheets are more driven by complex accounting that the type of functions you are using. My son uses this sort of functionality so I will send this post to him to read. He many learn something new. I’ll go back and look at the pictures now, I got distracted by the learning [smile].
LikeLiked by 1 person
I’m glad you enjoyed it, Robbie. Excel is an amazing tool. I think people use it for so many things it was never designed for, but it works. Also, it’s adaptable, and given the way WordPress keeps changing things, that’s a huge benefit.
LikeLiked by 1 person
Yes, it is a great tool. I use it for all my spreadsheets.
LikeLiked by 1 person