Tag: Projects

  • Building a Versatile Variables Container in Excel

    Building a Versatile Variables Container in Excel

    Microsoft 365 (and specifically Microsoft Excel) is my favourite tool when it comes to work, and also really fun to play with in my spare time as a ‘hobby’ that also helps me improve my skills.

    I’ve used probably dozens of different methods of storing ‘sets’ of variables for the tools and mini programs I’ve created in Excel over the years, some very rudimentary, and others more involved but also difficult to maintain or fragile in various ways.

    However, recently while playing around with Power Query and Excel formulas (yes, I do this when I let my mind wander), I came across an idea for a robust variables container stored in an Excel table that can be accessed in several different ways throughout a given tool. You can access or refer to these variables using good old Excel functions (with a LAMBDA, or a UDF if you’re old school), with a simple Power Query function call, or a few lines of VBA in your editor (see the UDF), depending on the needs of your project.

    Getting Started

    Let’s go through the basics of the project’s needs first:

    First, create a basic table called Variables with a set of Name-Value pairs.

    This table will contain all the variables we want to reuse across different places in the tool or want to be user-configurable later on.

    1. The LAMBDA function

    First, we can create the LAMBDA function (if you use Excel 365, which I highly recommend!), by putting the following function in the Name Manager (I used the name getVariable for these functions, and variableName for the name of the variable):

    =LAMBDA(variableName, XLOOKUP(variableName, Variables[Name], Variables[Value], "No matching variable.", 0))

    Using this function elsewhere in the workbook, we get, just like we want:

    2. The Power Query function

    Next up, we will create a Power Query function to be able to refer to a variable from this table and get back the value for it.

    Launching the Power Query Editor (from the Data tab), I will create a function called getVariable (again), and include the following:

    (variableName) =>
    let
        Source = Excel.CurrentWorkbook(){[Name="Variables"]}[Content],
        #"Transposed Table" = Table.Transpose(Source),
        #"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table", [PromoteAllScalars=true]),
        Result = Record.Field(#"Promoted Headers"{0}, variableName)
    in
        Result

    Note that I’m still using variableName for the variable here, and this allows you to invoke the function and get the expected result back if we want to refer to this variable in another function:

    3. The VBA function

    Finally, we can create a quick function in VBA that allows you to use these same variables across your project, making it fast and easy to maintain your code however you have it set up.

    Open the VBA editor, and in a new (or existing) module, I’ll write the getVariable (again!) function:

    Function getVariable(variableName As String)
    
    Dim VariablesTable As ListObject
    
    Set VariablesTable = Main.ListObjects("Variables")
    
    getVariable = WorksheetFunction.XLookup(variableName, VariablesTable.ListColumns(1).DataBodyRange,  VariablesTable.ListColumns(2).DataBodyRange, "No matching variable.", 0)
    
    End Function

    With this function, you can easily get any variable from your table anytime you need it, and you’ll be able to change the parameters in your code without digging in to the developer tools.

    Well, that’s it. With this simple, basic Excel table and three short code snippets, you’re ready to tackle nearly any Excel project imaginable while keeping your data in check and making sure you don’t leave hard-coded values anywhere in your Excel tools.

  • Why Basic Income is so Important

    Canada’s prior experiment with a BIG [(Basic Income Guarantee)], the Mincome experiment in Manitoba in the 1970s, found that a BIG did not cause people to stop working — with two important exceptions. The first was women with infants at home, who effectively used the BIG to purchase maternity leave. We should expect a different response from women in modern-day Canada, where maternity leave benefits are much more extensive. But where child care and other supports for working parents are insufficient, we may see responses to a BIG that will show us those cracks in the system.

    The other group whose employment levels decreased under Mincome was teenage boys. A closer look reveals that with a basic income guarantee, male high school students were more likely to make the decision to stay in school until graduation. Given the Ontario government’s aim of increasing graduation rates and the need for a highly educated population, it will be important to understand how people’s labour market decisions interact with other important decisions, like the decision to improve their skills and buy a better long-term future for themselves and their families.

    > We Should Applaud Ontario’s Plans To Pilot A Basic Income Guarantee | Laura Anderson

  • Making More of 2016 (January 1)

    Making More of 2016 (January 1)

    The last few years of my life have been the best so far by a wide margin. On its own, 2015 was an incredible year for me, and I’m lucky to have been able to ring in the new year with *many* of my very good friends!

    A video posted by Rob Attrell (@robattrell) on Jan 1, 2016 at 1:04pm PST

    I’ve made a lot of different things for the Internet, starting around 2011, but this past year might have been my most prolific. Writing for my own blog, making podcasts with my network, Unwind Media, and videos for Sons of Pluto, and most recently, starting to write for MobileSyrup, has kept me in love with being creative and making things.

    In addition to the things I made this year, I also got married, and I weigh 35 pounds less than I did at the beginning of last year. The first ~6 months of marriage has been a supremely fun and enjoyable time, and I’m reassured every day that I made the right choice.

    My friends are also a huge part of my life, and I’m so thankful that they’re around for all the ups and downs life throws at each of us. I am supremely lucky to have met so many incredible people, and to get the chance to spend as much time with them as I get.

    For 2016, I have been mulling over a goal (as we all do this time of year), and since I’ve had so much success sharing my goals online, I’m going to do the same this year. I considered delaying the start of this challenge until my life stabilized a little bit, but that would defeat the whole purpose.

    Starting today, with this blog post, I am challenging myself to make something EVERY SINGLE DAY, for a year, or for as long as I can or feel I need to. Some days, it will be a video. Others, probably a podcast episode. On a day like today, it will be a written blog entry like this (even though each day’s creation will be logged here on robattrell.com).

    I thought this morning about the arbitrary nature of starting the year on January 1st, and thought that in light of recording an episode of Feedback tomorrow, and Future Chat the day after, and Ottawhat on the 5th, maybe I could just wait and start next week. But this whole project is going to be about not making any excuses.

    There’s always an excuse, and I’ve made a lot of them to myself. Part of this project is also going to be about finding employment. I plan to showcase some of the skills I’ve learned in the last few years, and perhaps even highlight and discuss in more detail why I think I would make a good addition to any company or organization.

    Some days, I may address, answer, or discuss a question or topic, but in general I will just be sharing some of my thoughts and feelings about the world and my place in it. There is a lot of bad and a lot of good in the world, and I want to make the good better, and the bad less so.

    This is going to be all over the place. I’m excited. Follow along on my journey by subscribing to this blog, to any of my podcasts at unwindmedia.com, or just follow me on Twitter @RobAttrell.

  • How to Turn the Page (on Life)

    How to Turn the Page (on Life)

    I’m not sure there is a wrong way.

    This week, I learned that I will be entering a new chapter in my life. For those of you who are following me on social media, you will probably already be aware that I found out that my contract at NSERC, where I’ve been working for the last 11 months or so, will be ending come October 9th. That means that as of right now, I have a little over one week left to find work to replace that job.

    Obviously, there are a number of negative ways I could choose to look at this. It would probably be very easy to sit back and let the bad news occupy my mind and bring down my mood. But I’m not going to do that. I’ve been here before. Since I left school in 2011, I’ve been unemployed 3 times, the longest time for 6 months (most of that by choice). The work I’ve done since I left school only vaguely relates to the work I am doing since I finished my degree.

    Mostly, the reason I’m not worrying about new ventures is that things are going REALLY well in my life overall. Despite this looming potential unemployment, my life is mostly looking way up, which is something I’m really happy about. I just got married to the girl of my friggen dreams, I’ve lost almost 20 pounds since the beginning of July, I’ve got a large number of very satisfying hobby projects, and I have an amazing network of friends who have been incredibly supportive of everything I do.

    I was very briefly hesitant to talk about my soon-to-be unemployment as publicly as I have, but in the many years since I basically became an open book to the world socially, my life has only gotten way better. And the reaction and help I’ve gotten from friends, colleagues, family and many other people is really quite touching. Once you tweet your weight to the world, directing them to a website where anybody can see what you’ve weighed for the last 30 days, there’s really no reason to keep anything too secret.

    Oddly (though maybe I shouldn’t be surprised), the main question I get when people want to help me look for a job is “What kind of work are you looking for?”. I think this is a weird question mainly because I don’t really think too much about it. I want to work, I want to make a living and I want to do something I love. I really like media (video, audio and writing), the internet, technology, and science. I’m getting to the point where work I do in those fields can be put on my resume as real experience, something I definitely didn’t see happening just a couple of years ago.

    I’ve talked before about how wonderful if would be if Canada instituted a basic income for its citizens, because more than anything what I want to be able to do is to be creative. I want to share my experiences and knowledge with people who want to learn and try new things. I want to open minds. I’ve been thinking for a very long time about doing a big project where I get to do things like this on a regular basis, but for that today I really do need a day job where I make enough to support what I’d like to do for the other big part of my life.

    However, even considering all of this, the biggest priority for me, and the reason why I’m so keen to get a new job as soon as possible, is that I want to start a family. I’m not in a rush to do that, but I do want to start sooner rather than later. And, seeing as how my wife and I are responsible and financially prudent, we’d rather wait until there are two sources of secure income in our lives before moving forward with that. And that is the most frustrating part of all of this. I just want to express my ideas and thoughts in a positive, constructive way and make the world a better place, and pass those traits along to the next generation of humans. But first, I need someone to take a chance on me.

    It’s worth it.

    If you know of any job openings or places that might be hiring, especially those looking for young people who are ready to learn and looking to make a difference in the world, please let me know. You can send me email at [email protected].

  • What’s my weight again?

    What’s my weight again?

    Future Chat is on hiatus this week, while Mike schmoozes with Disney characters in Orlando, but that doesn’t mean there isn’t a lot to announce this week!

    I’ve decided to take my health changes even more seriously, and give you real-time (daily) access to how my health changes are impacting my weight. I’ve never done anything like this before, and it might go terribly, but here we go…

    Click through the image (or here) to get straight to the live version!

    I’ve created a special page so if you’re interested in my weight loss progress, you can follow along. Feel free to leave best wishes, or heckle me if I eat way too much on a given weekend. Go check it out!

    It’s a big week for me and my friends, Ottawhat is launching a brand new initiative! We’re calling it Ottawhat News, and it involves us taking a look at the lighter side of news in and around Ottawa. I really hope you like it, and you can learn more here. You can also check out the first story, by our own Keegan On, below:

    Deer Shot in Greenbelt, Refuses to Cooperate with Police

    Also, don’t miss the new episode of Ottawhat:

    This week on the show, we spoke to Jessica Heuther from Ottawa Geek Market. She told us all about the event, going on during October 3rd and 4th at the Nepean Sportsplex. Jessica also works with Carnival Diablo, Canada’s only* carnival sideshow…
    RSS |
  • Milestones! Gains! Losses!

    Milestones! Gains! Losses!

    That’s a lot of views (I’m just one man)!

    It’s been far too long since I last wrote something on here, and given that a whole heck of a lot has happened in the last month! First up, around the time of the writing of this post, my blog is going to pass another base 10 milestone, racking up a total of 50000 views! This isn’t a big milestone, but I still consider myself as just getting started, so I’m pretty pleased with it.

    As well, in a follow up to my piece about weight loss/overall health, I’m pleased to announce that although my wedding and three-week vacation caused me to gain back a significant amount of the weight I had lost, as of today I will get back to a new all-time** low weight (**least I’ve weighed in over 2 years). I have been working really hard, and I wouldn’t have been able to get to where I am now without my bike, my Soylent, and the willpower to not go nuts eating snack foods. I’ve also effectively eliminated traditional meals from my diet, relying on snacking and smaller portions throughout the day, which has also been nice for me.

    During your wedding/honeymoon, you may experience mysterious weight gain paired with a complete loss of data.

    Finally, I went almost a month without recording a single podcast, but I’ve been back at work on them now (Ottawhat did have an episode every week while I was on my honeymoon though, so you’ll have to go and catch up on those). Last week on Ottawhat, we interviewed my beautiful new wife, Julia, and Mike and I have been getting into some great conversations on Future Chat. On Ottawhat this week, we talked to the owner and manager (2 people) of a local 1-screen cinema, the Mayfair. It was a really great conversation and you should go and check out their podcast too! Links to the episodes can be found below:

    This week on the show, we met with Josh and Mel from the Mayfair Theatre. These diehard movie buffs told us all about the origins of the theatre, why they…
    RSS |
    On this week’s show, we agree non-Celiac gluten sensitivity probably isn’t a real thing, electric, self-driving cars will be all over our roads soon, and…
    RSS |
  • New Polished Chrome

    New Polished Chrome

    That’s fancy!

    Well, it’s finally here. The new look for UnwindMedia.com is ready to go, and you can go and take a look now! I am really happy with how it’s turned out, and it is now quite a bit easier to see information about the shows on the network.

    I’m getting married this weekend, and going on a honeymoon the week after, so if this blog goes dark for a few weeks, please don’t be surprised. Episode 67 of Future Chat is the last one until I get back in late August, but we are doing our best the next few days to prepare new episodes of Ottawhat? to come out while I’m gone. Hope you’re having a great summer!

    We spoke to fire dancer and actor Zoe Georgaras this week on the show. We learned how she got introduced to fire dancing, how fire safety and good insurance…
    RSS |
    In this episode, we discuss the possible coming shortage of medical isotopes and decay rates, we learn a little about Nick’s work with gold, and we can’t…
    RSS |
  • Website 2.0 is in Private Beta!

    Website 2.0 is in Private Beta!

    Unwindmedia.com 2.0 is almost upon us!

    As I mentioned yesterday on Facebook and Twitter, there’s a medium/big re-skin of UnwindMedia.com coming very soon. I’ve been researching podcast network websites and taking cues from some of my favourites, and there’s also some brand new custom code pulling strings behind the scene to make adding new shows and hosts much easier should that ever be a thing that needs to happen. These changes would also make moving websites much more straightforward, in case THAT is a thing that ever needs to happen.

    Below, you’ll find links to Future Chat and Ottawhat as always, and if you’ve been waiting patiently for Feedback: The Music (I know I have), we want to take some time to really get it right. Hopefully there will be more to share soon!

    On this episode, we sat down with Megan Honey, an up-and-coming standup comedian who will be competing this summer in a couple of comedy contests at Absol…
    RSS |
    In this episode, we discussed T-Mobile’s new Uncarrier US-Canada-Mexico roaming plans, Sweden buying trash from Norway, and Mike doesn’t believe you could…
    RSS |
  • Taylorette1989 is Over, and What is a Podcast?

    Taylorette1989 is Over, and What is a Podcast?

    #Taylorette1989 is done. No, we weren’t able to get Julia into Taylor’s inner circle (although this did happen), but I think both Julia and myself learned a lot about life, love, and what’s important to us in the last 6 months or so of trying. I’ll be writing a bit in the near future about my experiences trying to capture the attention of probably the most widely recognizable entity in the world at the moment.

    Pictured: 6 months of hard work and dedication, and we get some pixels hosted on taylorswift.com!

    There are a couple of really interesting secret things I had been doing for Taylorette that I’m excited to share in the coming weeks, but for now, I’m looking to the future. I have some big plans once the summer is done and all the wedding and honeymoon craziness is behind us. I miss making videos every week, and it’s obvious to me that I haven’t done enough to let my friends in on what I’m working on these days, so I’ll be trying to do more of that too.

    Another fun project that I think it might help me to talk about is sharing some of the things on the internet that entertain me on a regular basis. Most people I talk to bounce around viral videos and things that pop into their Facebook feeds, whereas I tend to follow the work of individuals and groups of creative people on the Internet, keeping track of what they’re up to on a regular basis. I’m excited to talk about those people and what I’m able to learn from them, and I hope you’ll enjoy it.

    I’m still going through my week’s supply of Soylent. As expected, it isn’t something I think I can realistically have to replace ALL of my meals. That being said, I do like it (minus the artificial sweetener) and I have been able to not bring lunch to work for the last 2 weeks and get along just fine.

    In the meantime, Ottawhat? and Future Chat continue to soldier on with their usual episodes, you can subscribe to them and listen to the latest episodes down below. It has come to my attention that even people who are close to me are not aware that Future Chat is a podcast. First of all, it seems like those people probably just don’t actually know what a podcast is (really any episodic video or audio conversation or documentary could be considered a podcast). Second of all, if it’s been a while, I would encourage you to check out one of these two shows, we have a lot of fun making them and really try hard to put together something anybody can enjoy.

    This week, we sat down with training librarian and new mom Jessica Dubois. She told us all about her experiences with part-time online learning, her…
    RSS |
    This week on the show, we discuss all the latest goings on around Pluto, the ramifications of the leap second, and how you might not get Windows 10 for a…
    RSS |