excel search bar help

Imran Azam

Board Regular
Joined
Mar 15, 2011
Messages
103
Hi Guys

i am creating a application with excel which has a user interface that allows you to search which membership is about to expire within 3 months based in the dd-mm-yyyy typed in the search bar

example if

if you type nov 2022 in search bar and press apply button below comes up

CityAddressmembership JoinedRenewal Date
BBleedsAAA
01/01/2022​
01/01/2023​
AAleedsAAAA
01/01/2022​
01/12/2022​


can this be done? would be grateful for any help ( i dont know how to attach a excel file but i have inserted imagines below, and the data)

below is the data i am working with

CityAddressmembership JoinedRenewal Date
BBleedsAAA
01/01/2022​
01/01/2023​
AAleedsAAAA
01/01/2022​
01/12/2022​
CCleedsFFFF
01/01/2022​
01/01/2024​
DDleeds12
01/01/2022​
01/01/2023​
EEleedsEEE
01/01/2022​
01/02/2025​
FFleeds1233
01/01/2022​
01/08/2023​
GGleeds2132131
01/01/2022​
01/08/2023​
HHleeds1312
01/01/2022​
01/08/2023​
YYleeds1312
01/01/2022​
01/08/2023​
TTleeds133
01/01/2022​
01/08/2023​


from this data i want to create the below front end ( below is based on the example if november 22 is typed in the search box this isnt working at the moment)
front end.PNG
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
there are several ways to do this:
  1. You can create a filter in VBA, or
  2. you can use the advanced filter in Excel.
in the second case your button only needs to copy the entered date +90 days to the criteria range with a '<' in front, then apply the filter.

In the first case the table can be read into an array, then a loop goes through the dates in the array and copies those rows that fulfill the less than 90 days.
 
Upvote 0
there are several ways to do this:
  1. You can create a filter in VBA, or
  2. you can use the advanced filter in Excel.
in the second case your button only needs to copy the entered date +90 days to the criteria range with a '<' in front, then apply the filter.

In the first case the table can be read into an array, then a loop goes through the dates in the array and copies those rows that fulfill the less than 90 days.
Thank you for your reply and help, where can i get more information regarding the vba filter route?
 
Upvote 0
right here. What I would like from you is the name of the sheet with the data and top left cell of the table, the name of the sheet with the output and top left cell of the output table.
 
Upvote 0
right here. What I would like from you is the name of the sheet with the data and top left cell of the table, the name of the sheet with the output and top left cell of the output table.
Thank you so much sheet name with data : Data top left cell A1 ( that is the cell above BB) l, sheet name with output: FrontEnd the top left cell for this is A7 ( this is above BB) . is this the correct info you needed?

how can i attach a full data sheet on here?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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