3 Lookup Formula Challenges + 2 Jokes + 1 Link [VLOOKUP Week]

Share

Facebook
Twitter
LinkedIn
This article is part of our VLOOKUP Week. Read more.

“Start with a joke.” My boss used to say when I am nervous about an upcoming presentation. Although, I am not nervous to post this article, I think a joke will always help.

So here it goes:

Excel Lookup Formula Challenges

[originally posted on 5th May 2008]

Now to more serious matters.

LOOKUP Formula Challenges - Solve these lookup questions & sharpen your skills

VLOOKUP (and other lookup formulas) are very powerful and quite practical. They can fetch you the information you are looking for from a heap of data.

Now that we have seen the power of VLOOKUP thru several posts this week, I want to test your understanding of these formulas by presenting 3 challenges.

Download the excel workbook with these challenges

Click here to download excel workbook with all the data for these challenges.

Challenge # 1: Price After Discount

We come across this problem quite often. You have a list of discount codes and applicable quantity thresholds. For eg. you may sell an item at $50, but if I buy more than 1 item, you will give a 10% discount. The discount goes up as I purchase more quantity.

Now, given a list of item quantities, how do you calculate the amount payable using lookup formulas? That is our first challenge.

What is the amount payable after discount? - LOOKUP FORMULA CHALLENGE #1

Challenge # 2: Price after accumulated quantity discount

This is essentially same as above formula, but the discounts apply on accumulated quantities bought so far. For eg. I will get first item for 0% discount, 2nd and 3rd items for 10% discount, 4th item for 15% discount … 26th item for 50% discount etc.

Now, given a list of customer names and quantities they bought (in the same order), how do you calculate the amount payable for each transaction?

What is the amount payable after accumulated quantity discount? - LOOKUP FORMULA CHALLENGE #2

Challenge # 3: Closest price based on the quantity purchased

This is an interesting challenge. The price after discount is determined based on the quantity bought. For eg. the discount thresholds are 1, 3, 5, 10, 25 etc. Now, given a quantity of items bought, we determine the price by finding the closest threshold to it. So, a quantity of 7 will get the price from threshold 5 as against 10.

What is the closest price - LOOKUP FORMULA CHALLENGE #3

Few guidelines on solving these challenges:

Although the above problem might appear simple, the solution is not so straightforward.

  • Use a variety of formulas: Do not just rely VLOOKUP. Instead experiment with formulas like SUMIF, COUNTIF, INDEX, MATCH etc. to get results
  • Use helper columns: Break down the problem in to several steps and use helper columns to get the results
  • Use pen & paper: Write down the logic first, then simulate it in excel using formulas. It clears your mind fast.
  • Many solutions exist: Each problem can be solved in several different ways. So once you find a solution, feel free to explore other options
  • Share your solutions: Use comments box to share your solutions with us. I am always looking for new ways to solve problems. So teach me…

Solution to the Challenges:

Here is a workbook with one set of solutions  for the problems. As I said, many other solutions do exist. So use this workbook as an indication of what is possible.

Click here to download excel workbook with all the data for these challenges.

One Link to More VLOOKUP Awesomeness:

Debra at Contextures has chipped in with some interesting videos on VLOOKUP formulas. Check them out here.

The 2nd Joke:

It is quite difficult to set an expectation and then meet it. More so with jokes. But do you know that Chandoo.org’s 404 pages show Excel error messages? For example go to http://chandoo.org/wp/missing_file/. Refresh the page to see a different message. 🙂

It is Diwali (the festival of lights) in India this weekend. So I am going to spend time with family, light some fireworks and relax. I wish you a happy Diwali if you celebrate one. Even otherwise, I wish a lot of light and warmth in to your life this year.

VLOOKUP Week @ Chandoo.org - Learn tips on lookup formulas in Excel

Facebook
Twitter
LinkedIn

Share this tip with your colleagues

Excel and Power BI tips - Chandoo.org Newsletter

Get FREE Excel + Power BI Tips

Simple, fun and useful emails, once per week.

Learn & be awesome.

Welcome to Chandoo.org

Thank you so much for visiting. My aim is to make you awesome in Excel & Power BI. I do this by sharing videos, tips, examples and downloads on this website. There are more than 1,000 pages with all things Excel, Power BI, Dashboards & VBA here. Go ahead and spend few minutes to be AWESOME.

Read my storyFREE Excel tips book

Overall I learned a lot and I thought you did a great job of explaining how to do things. This will definitely elevate my reporting in the future.
Rebekah S
Reporting Analyst
Excel formula list - 100+ examples and howto guide for you

From simple to complex, there is a formula for every occasion. Check out the list now.

Calendars, invoices, trackers and much more. All free, fun and fantastic.

Advanced Pivot Table tricks

Power Query, Data model, DAX, Filters, Slicers, Conditional formats and beautiful charts. It's all here.

Still on fence about Power BI? In this getting started guide, learn what is Power BI, how to get it and how to create your first report from scratch.

9 Responses to “CP044: My first dashboard was a failure!!!”

  1. Oz says:

    CONGRATS on the book!

    Thanks for this podcast. It's great to hear about your disaster and recovery. It's a reminder that we're all human. None of this skill came easily.

  2. Din Muhammad Samimi says:

    Hey chandoo
    this really a good lesson learned
    but as I have already stated in one of my previous email that it would be more helpful for us if you could release videos of your classes for us
    thanks

  3. Nafi says:

    The article gave me motivation, especially you describing the terrible disaster that you faced but how to get back from the setbacks. Thanks for that, but with video this will be more fun.

  4. Amankwah says:

    You always motivate me with respect of the tools in excel. How we can really exploit it to the fullest. Thanks very much

  5. Juan says:

    Thank you very much, Chandoo, for your excellent lessons, I am anxious to learn so valuable tips and tricks from you, keep up the great job!
    I truly appreciate the transcripts of the podcasts, because as a speaker of English as a second language, it allows me to fully understand the material. It'd be great if you can add transcripts to your online courses too, I am sure people will welcome this feature.

  6. David Evans says:

    Dashboards for Excel has arrived in Laguna Beach, CA! Thanks!

    Now I need to make time to "learn and inwardly digest" its contents as one of my high school teachers would admonish us!

Leave a Reply