Search, filter and populate spreadsheet

Bevilready

New Member
Joined
Mar 2, 2022
Messages
15
Office Version
  1. 2016
Platform
  1. Windows
Hello, I have a spreadsheet in which I would like to be able to use a search box to filter through a list of products and add a quantity to each item I search for. After which I'm would like the items I have put quantities against to appear in a separate list, which would become an order to send to my supplier. I have been able to create a search, but am not able to put a quantity in the cell which remains once the search is cleared.
Can anyone help me please?
Thanks,
Bevilready

1646230822703.png
 
That works well...
The only changes I would make would be to move the Re-Set button on to the Order tab, so that the order can be cleared after sending and then having another button on the Products tab which clears the filter on the 'Tender Item & Specification column.
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Right click on the Re-Set button. Then right click again on the border of the button while the cursor looks like a cross and click 'Cut". Go to the Order sheet. Click on cell K2. Hold down the CRTL and press the letter "v". This will paste the button. You actually don't need a button on the Products tab to clear the filter. Just click on the Data tab in the top menu and click the "Autofilter" button.
Replace the current ReSet macro with this one:
VBA Code:
Sub ReSet()
    Range("A3", Range("I" & Rows.Count).End(xlUp)).ClearContents
    Sheets("Products").Range("E5:G" & Sheets("Products").Range("A" & Rows.Count).End(xlUp).Row).ClearContents
End Sub
 
Upvote 0
Fantastic, thanks ever so much for your help. I'll leave you alone now......... until I break it again.
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,370
Members
449,080
Latest member
Armadillos

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