+ Reply to Thread
Results 1 to 10 of 10

What formula/filter/lookup can I use to accomplish this task???

  1. #1
    Registered User
    Join Date
    05-29-2019
    Location
    New York, USA
    MS-Off Ver
    2016
    Posts
    5

    What formula/filter/lookup can I use to accomplish this task???

    Hello guys,

    I need help with a formula or come up with a way for this type of filtering/search I am doing. The business I work for has many different business units under it. Suppose John and Jimmy, etc. are our customers. 90% of all the customers have purchased ABC-1 product. There’s 2 parts to this problem:

    I need to come up with a formula that spits out this data for me: the sum of all products excluding “ABC-1” divided by 2018 total is 30% or higher. I also need to implement a filter in this formula that disregards every 2018 total that is under 100k (we are not worried about tracking that type of scenario).





    Sub-business, 2018 total

    Jimmy, 250000

    ABC-1, 170000

    Apples, 50000

    Oranges, 30000

    In the case of Jimmy: (Apples+oranges)/2018 total = 32% or (50+30)/2018 total=0.32



    Sub-business, 2018 total

    John, 472000

    ABC-1, 262000

    Potatoes, 50000

    Carrots, 40000

    Grapes, 70000

    Strawberries, 50000

    In the case of John: (Potatoes+Carrots+Grapes+Strawberries)/2018 total = 44% or (50+40+70+50)/2018 total = 0.44



    2) As I mentioned 90% of the sub-businesses have purchased “ABC-1” product, but I also need to come up with a formula in a different column that finds me all the customers who have not purchased “ABC-1” product at all, and their 2018 total is greater or equal to 100k.





    Is this doable using filters, lookups, or formulas in Excel? If yes, I would need help with the formula or how to go about doing this type of filtering/search. Just manually checking all the sub-businesses is not feasible in my case, as we have more than 50000 rows. So far I have found a few sub-businesses that are part of the first part of the problem just by manually checking and I have also found a few that fit the second part of the problem. But again, I need to come up with a formula or pivot, or filter on how to do these for all the 50000 rows of data…

    Thank you in advance

  2. #2
    Forum Contributor
    Join Date
    03-28-2018
    Location
    Houston, TX
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    127

    Re: What formula/filter/lookup can I use to accomplish this task???

    Sounds doable. Would be much easier to direct you if you could post a sample workbook with some sample data. The problem I'm having with giving you direct solution is that I need to see how the data is organized in the workbook.

  3. #3
    Registered User
    Join Date
    05-29-2019
    Location
    New York, USA
    MS-Off Ver
    2016
    Posts
    5

    Re: What formula/filter/lookup can I use to accomplish this task???

    I have created the exact setup of my business. Sorry for attaching a picture but I can’t seem to attach the simulated file itself. I need to come up with the formulas for column K-L-M

    Column K & L will have the same formula since the same information is required for both years.

    There are many slicers/fields/pivots in the workbook that I am working with since it is contains all the products that my business sells so I hope that the formulas for columns K-L-M won’t get messed up if different managers filter by different parameters/sub-businesses.


    Thank you.
    Attachment 626449

  4. #4
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: What formula/filter/lookup can I use to accomplish this task???

    I get this message when trying to download your attachment.

    Capture.JPG

    Did you use Go Advanced -> Manage Attachments -> Upload?

  5. #5
    Registered User
    Join Date
    05-29-2019
    Location
    New York, USA
    MS-Off Ver
    2016
    Posts
    5

    Re: What formula/filter/lookup can I use to accomplish this task???

    I uploaded the excel file. Are you able to access it?
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: What formula/filter/lookup can I use to accomplish this task???

    Two observations:

    1. You have not included any sample results data - please add some manually for a couple of customers to show what you want.
    2. Your data layout is not conducive to easy data analysis - you are making the rookie mistake of getting confused between form and function.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    05-29-2019
    Location
    New York, USA
    MS-Off Ver
    2016
    Posts
    5

    Re: What formula/filter/lookup can I use to accomplish this task???

    I have updated the layout and have also included some sample results. The layout mirrors the data I'm working with 100%. Hopefully this will make it more understandable of what I'm trying to achieve.
    Attached Files Attached Files

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: What formula/filter/lookup can I use to accomplish this task???

    Once again, the layout is really not suitable. Are you prepared to change it?

  9. #9
    Registered User
    Join Date
    05-29-2019
    Location
    New York, USA
    MS-Off Ver
    2016
    Posts
    5

    Re: What formula/filter/lookup can I use to accomplish this task???

    Yes, I can change it if that will allow me to get the data I'm looking for. What suggestions do you have to change it?

  10. #10
    Forum Contributor
    Join Date
    03-28-2018
    Location
    Houston, TX
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    127

    Re: What formula/filter/lookup can I use to accomplish this task???

    Ok, I just had some time to come back to your request. I have attached a workbook that accomplishes what you were looking for, but also gives you an idea about how to layout the data in different ways.

    I've included 4 tabs: The first three tabs, "Less Flexible", "More Flexible", and "Most Flexible", show different ways you can layout the data. The last tab "Most Flexible Pivot Examples" shows why the last data layout is superior. It allows you to create quick and simple pivot tables that report exactly what you are wanting and can be changed quickly to give more robust information. I have defaulted the two pivot table examples to demonstrate how they provide the information you were looking for in your original question.

    If you don't know much about pivot tables, there are tons of online videos demonstrating how to create and use them. Even a 15 minute lesson on using pivot tables will open up your mind to the power of Excel and allow you to create some really nice reports very quickly. Enjoy!
    Attached Files Attached Files

+ 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. How to accomplish copying task
    By Sameer_81 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-08-2017, 10:37 AM
  2. Replies: 3
    Last Post: 05-20-2017, 09:58 AM
  3. Need ideas for simple way to Import, Sort, & Calculate data.
    By notoriusjt2 in forum Excel General
    Replies: 1
    Last Post: 01-23-2016, 04:51 PM
  4. The second time around, the macro does not accomplish the same task.
    By etmisztal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-29-2009, 11:00 PM
  5. How would I accomplish this lookup?
    By nuggetz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-16-2007, 02:06 AM
  6. Formula or Function to accomplish this?
    By elcapitan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-12-2006, 05:20 AM
  7. Formula question-what I want to try to accomplish
    By Craig Fletcher in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-24-2005, 12:05 PM

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