#### NeoSez

##### Board Regular
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.

Sheet1
 Licence No. 123456 009 123457 010 123458 011 123459 012 123460 013 123461 014 123462 015 123463 016 123464 017

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

### Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

#### Dave87

##### Board Regular
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)``

#### NeoSez

##### Board Regular
Thank Dave87 Greatly appreciate the quick response.

Replies
0
Views
34
Replies
5
Views
50
Replies
5
Views
297
Replies
0
Views
106
Replies
5
Views
151

1,127,876
Messages
5,627,421
Members
416,245
Latest member
Xterminat

### 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.

### Which adblocker are you using?

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

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