ADVICE: Simple Lookup Tool

NeoSez

Board Regular
Joined
Aug 14, 2020
Messages
210
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Can someone recommend if VBA is the way to go or if using this Dropdown list to look up numbers is better? I am a newbie so don't want anything so complicated that I will not understand. It's my first time using a combo box.
I created this simple lookup, but it's out of whack. I can not understand why the formula is in D14 and brought over the entire column from Sheet1. It will not allow me to move it back to B4 and gave me an ARRAY error. Did I write it incorrectly? I just want to search from rows 2-15, not insert it all. So this should be a simple exercise for pros, but I am a beginner, so I am stumped on how to fix this.
Excel Formula:
=IF(ISNUMBER(SEARCH($B$4,Sheet1!B2:B15)),Sheet1!A2:A15,"")

So I tried to use this formula instead, but it returns an #N/A error.
Excel Formula:
=VLOOKUP(B4,Sheet1!A2:B171,2,0)

So in short,
Enter number or select from dropdown
Returns the Licence from Sheet 1.

Thank you for your help.

Sheet1
LicenceNo.
123456009
123457010
123458011
123459012
123460013
123461014
123462015
123463016
123464017


Sheet2
Sample Lookup.xlsm
ABC
1Enter No.
2
3
4010
5
6
7Your Licence is:
8#N/A
9
10
Sheet2
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Excel Formula:
=LOOKUP(B4,Sheet1!$B$1:$B$10,Sheet1!$A$1:$A$10)

or if you dont have the Lookup function use

Excel Formula:
=INDEX(Sheet1!$A$1:$B$10,MATCH(Sheet2!B4,Sheet1!$B$1:$B$10,0),1)
 
Upvote 0
Solution

Forum statistics

Threads
1,213,526
Messages
6,114,136
Members
448,551
Latest member
Sienna de Souza

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