3 things weβre covering today:
Here's a common Excel problem you'll run into at some point:
You have a range of numeric values and you need to categorize them based on specific boundaries or "buckets". This example uses grades but you can use the same solution for anything that has a similar setup, from salaries, revenue, performance metrics or credit scores - this scenario is a frequent one in the corporate world.
How would you go about it now? Manually?
Nah, that would take ages. You're in Excel, you're going to use a formula.
The first function that might come to mind is the IF function. It works, but you'll have to account for several conditions - this means multiple nesting levels.
It would go something like this:
"IF the Score is lower than or equal to 55, then the Grade is F; if not, then we have to check the next condition. If it's lower than or equal to 69, then the grade is D... and so on and so on"
...you see where this is going right? Stepping away from the screen π
Let's say you decide to go through with it and also use cell references for the conditions. You'll add a new column beside the buckets and type the upper bound. Then you power through your IF function.
=IF(C2<=$G$2,$H$2,IF(C2<=$G$3,$H$3,
IF(C2<=$G$4,$H$4,IF(C2<=$G$5,$H$5,$H$6))))
It works, but it's long and complicated. Imagine how you'll feel if you need to add new buckets in the middle π
There is a much simpler solution:
Just use the good old VLOOKUP.
Just like before, you'll need the lower bound of the score ranges. Here's a cool tip. You don't need to type these out manually. The quickest way is to use Flash Fill. Just populate the first number, then press the shortcut key Ctrl + E (or use the fill handle and select Flash Fill). All the lower bounds will be populated automatically.
You can now start writing the VLOOKUP formula.
=VLOOKUP(C2,$G$2:$H$6,2)
Yep. That's all you need to write π
Then simply copy the formula down. All the grades are assigned in a matter of seconds.
Important: Make sure the numbers in your bucket list go from small to big. If they don't, VLOOKUP won't work right. Good news is, with XLOOKUP you don't have to worry about this!
=XLOOKUP(C2,$G$2:$G$6,$H$2:$H$6,,-1)
where -1 stands for "exact match or next smaller item".
So, at least in this scenario, the trusty VLOOKUP is the winner when it comes to formula efficiency.
Try it next time you have a similar situation. I recorded a shorts for it.
π΅οΈ Challenge time: There's an unintentional oversight in the data setup. Can you spot it?
If you do, you can call yourself the "Excel Sherlock" of the day! (scroll to the bottom to find the answer)
β
Get ready for an epic Excel journey! The Global Excel Summit is back and better than ever, and I'm excited to announce that I'm your ambassador for the third time!
π Save the Date: February 6-8, 2024
π Location: Vue Cinemas, Angel Central, London, UK
Here's the Scoop:
π€ In-Person & Online: Join us in London (6-7 Feb) or virtually (6-8 Feb).
π€ 30+ Speakers: Dive deep into AI Exceleration sessions.
π CPD Credits: Awarded accreditation by the CPD Standards Office in 2022 and 2023.
π° Exclusive Discount: Use code LEILA for 20% off Early Bird prices (until Nov 27).
Ready to Excel? Don't wait too long - in-person seats are limited. Secure your tickets on the official website.
Let's geek out over Excel & AI, connect with pros, and make memories!
β
I made a video a while ago showing how you can use this feature to allow leading zeros when writing IDs or product codes.
It's finally moving into general availability, and will hopefully continue to roll out to more and more Microsoft 365 users. You can check if you have it by going to File > Options > Data > Automatic Data Conversion.
OpenAI is rolling out new voice and image capabilities for ChatGPT to Plus and Enterprise users.
This means you'll be able to speak to ChatGPT and hear its reply in one of five voice options (on Android and iOS mobile devices). Future applications can include voice translation of podcasts.
You'll also be able to upload and discuss images, including photos and screenshots. It can be used to troubleshoot technical problems or analyze complex data, among other applications.
ChatGPT is also adding a 'Browse with Bing' feature which allows it to access real-time web search (allowing you to get the most current info as well as double-check its sources and ensure that it's not another case of AI hallucinations π).
Cool updates! I published a video last week on ways you can optimize your prompts for better outcomes - if you missed it, you can watch it here.
β
π§βπ³ Have you tried Emoji Kitchen yet? It's been around for a while (in the Gboard app for Android), but now you can create your own emoji mashups on any device by typing "Emoji Kitchen" into Google Search in any browser and then clicking on Get Cooking.
You can achieve the exact expression you want to evoke or get crazy creative with your combinations.
You can also leave it to fate by using the randomizer.
If you want to share the end result, simply click on it to copy and paste it as a sticker.
Have fun with it!
β
Congratulations, Melody, on completing Excel Essentials for the Real World! Thank you for sharing your story on LinkedIn.
I'm sure a strong foundation in Excel will prove beneficial in your new job (congrats on that as well π).
I applaud your instinct to follow it up with Power Query. It is THE tool for anyone who works with data and mastering it will make your working life a breeze.
Happy learning and all the best in your career!
Got a success story about using your XelPlus skills? Iβd love to hear it! Hit reply to share the details, and inspire other students π
See you next week,
LeilaοΈ
π΅οΈSolution to the oversight in data setup: Our first bucket ranges from 0-55, and our second bucket is 55-69. The correct range for the second bucket should actually be 56-69.
β
βΆοΈ Subscribe on YouTubeβ
ποΈ Follow me on LinkedInβ
π₯ Join 400,000+ students in our coursesβ
π£ Want to sponsor XelPlus Weekly? Get in touch here.
This newsletter contains affiliate links, which give us a small commission on any purchase made at no cost to you. This helps us run XelPlus Weekly and bring you updates like this. Thank you for your support!
XelPlus is a leading online education company, providing training courses for Excel, Power BI, Finance, and Google Sheets. XelPlusβ bestselling courses are popular among financial analysts, CFOβs, and business owners. Technology is changing fast. We help our members turn confusion into confidence with every skill learnt.
We've had an eventful year - and an even busier week! Four of us on the team got together in Vienna to help me record the hardest video I've ever done. It's something I always wanted to be able to do (not just record the video but actually do the thing I show in it). I didn't expect it to be this difficult. But I'm excited to share it with you soon. Hopefully in the first half of the new year once it's edited. As we wrap up 2024, I wanted to share some highlights - many of which came straight...
When you open a new workbook in Excel, whatβs the first thing you adjust? Maybe the font? or you add 5 more sheets because who uses Excel with just one sheet?! Hereβs the thing - Excel doesnβt have to stick to its defaults. You can make it work the way YOU want. This week in Between the Sheets we're looking at small but useful enhancements you can make to your future workbooks. As well as: introducing the Core Visuals vision board in Power BI catching up on new developments in AI tools...
Do you hate reading instructions? Frustrated when teammates ask questions they could easily find the answer to? Well, then Copilot in OneDrive might be just what you need. Also in Between the Sheets today: Python Editor in Excel for user-friendly coding Excel compatibility (using the latest functions in shared workbooks) Practice creating interactive dashboards using pivot tables π¬ Copilot in OneDrive Recently, I shared a video about the potential of Copilot in Excel. One cool feature was the...