Extract Data Based on a Drop Down List - Deselect Option

researchguru

New Member
Joined
Jun 18, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi there,

I found this spreadsheet containing a drop-down list that extracts data based on the selection in Cell H4 and H6

However, say you selected both filters, is it possible to 'deselect' one over the other and have the data shown based on this. (Example: Have Alabama selected, but I want cell H6 deselected to just show all 'Alabama' results) Ex. You want to filter the table to just 'branch', without removing the 'products' drop down menu cell.

Additionally, is there a way to deselect both 'Branch' and 'Products' drop down at the same time to show all the data.

Image provided. Many thanks!
 

Attachments

  • Image 3.PNG
    Image 3.PNG
    54.8 KB · Views: 20

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Let say Branch cell is G4 and Products is G6. First sales row (D5 I guess) formula will be

Excel Formula:
=IF($G$6="",SUMIF($B$10:$B$20,$G$3,$E$10:$E$20),"rest of your old D5 formula")

Other cells will be relatively similar. I hope you can manage.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top