Help, Search Box Query

Jay_S1

New Member
Joined
Oct 9, 2018
Messages
5
Hi,


This is probably a basic question but im hoping someone can save me time and explain the best/simplest way to create a search box? Ive been trying to use VBA, with limited knowledge/success, but i was hoping there's a simple standard function that can also work.


Here's the breakdown of what Im trying to do:


Ive one datasheet (Sheet_1) with a list of postcodes in column A and 3 further columns of data in B,C & D. What im looking for is a way to create a search box a another sheet (Sheet_2) where you can type in a postcode which will then bring up the corresponding info in the opposite 3 columns.


This is what I have :


Sheet_2 :


Search [ cell:C3 ]


Office Time Address
(cell:D10) (cell:E10) (cell:F10)




Ive created a vlookup that works but it doesn't automatically change when I add a new post code to the search box (cell c3) - I need to go into each of the 3 result boxes (Office, time & address) and double click to get the formula to recalculate the new search request.


The data sheet (Sheet_1) is in a table form ranging from A2 to F6422


With th 3 vlookups being :


=VLOOKUP(C3,Sheet_1!$A$2:$B$6422,2) - Office box


=VLOOKUP(C3,Sheet_1!$A$2:$C$6422,3) - Time box


=VLOOKUP(C3,Sheet_1!$A$2:$D$6422,4) - Address Box




With my limited knowledge i dont know if im not using the correct function (vlookup) or whether I missing an extra command or detail to switch it on.


Any help would be greatly appreciated as it would know doubt save me a large amount of time/bumbling.




Thanks


Jay
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,214,881
Messages
6,122,074
Members
449,064
Latest member
MattDRT

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