Would like to use formula to extract values in column A, B, D, F and G if the dropdown conditions in J2 and K2 are met (expected outcome is in green color). See sample file.
Thanks.
Would like to use formula to extract values in column A, B, D, F and G if the dropdown conditions in J2 and K2 are met (expected outcome is in green color). See sample file.
Thanks.
I know you mentioned a formula but have you considered using a Pivot Table? And if so why do you want a formula rather than a PT?
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star icon below the post.
Hi bjnockle,
Find the attached that has some VBA code behind the worksheet and in a module. If you change any of the Orange values (using validation) it triggers the event code behind the worksheet. This code calls the "AdvFilter" code that does an Advanced Filter and gives what you have selected in orange. If you want all then select a Blank instead or a word (Dell or Acer).
See if this works for you.
One test is worth a thousand opinions.
Click the * Add Reputation below to say thanks.
Richard Buttrey: Thanks for the response. I would like to accomplish this task by formula.
Like Richard, I am curious why a formulaic solution is needed over a Pivot Table. Once the PT is set up, it is only a case of choosing your criteria and it automatically updates. Help us to understand your thought process on this issue.
See attached for PT results.
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
Marvin: Great! I am trying to stay clear of VBA. I would prefer a formula to accomplish this task in case there is need to modify the data. Not a VBA expert to troubleshoot issues/modifications.
The obvious question is why?
I'm with the others on this. Listing only those items that match the criteria could probably be done with array formulas (I'm not an expert with array formulas so I wouldn't be able to help with that). Alternatively you could get all the data that matches the criteria without an array formula, but you would have to list all the products and then have blank rows for those products that don't meet the criteria. A pivot table will give you what you need quickly and easily.
Please add reputation by clicking on the * if I have helped.
Please mark the thread SOLVED if your issue has been resolved.
Thanks, Glenn.
Hey Alan,
He could even use Slicers to get his answer and not even need dropdowns.
No Formulas needed
Marvin,
I concur. Thanks for adding it.
Alan
MarvinP: Great suggestion. I am familiar with both PT and slicers functionality in Excel. however, would like to pull the values using a formula. Thanks.
Hi,
I don't see where you have enlightened us as to why you prefer a formula other than to say " I would prefer a formula to accomplish this task in case there is need to modify the data."
I can't honestly see why you should consider expanding or modifying data would be a problem for a Pivot Table.
First of all if you are modifying data, (e.g. general layout or relationships) then it's more than likely that any formula would also need modifying itself in any case.
If you're expanding data by adding new records/rows then a dynamic formula that covers the data range will adjust automatically and the PT would then be based on this dynamic range name.
I'm struggling to really understand why you appear fixated on a formula.
Richard Buttrey: Using PT would mean the user will have to manually refresh or use VBA code to auto trigger refresh. Thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks