Linking tasks (lookup...??)

SilentPirate007

New Member
Joined
Feb 7, 2010
Messages
34
- Hello -

I'm busy with a task, but I am a little stuck...

I've created a table containing information on people. Attached to each person is a unique number, address, postcode etc...On a new sheet, I have a tool which is linked to the unique number (I named the numbers 1001, 1002, 1003... - "numbers"), so when I use a drop down scroller, I see each unique number and I could then select one. The problem is, I would like to link to it with another tool (in the same sheet however), so that when I select one of the unique numbers, it will display the attached credentials (name, address, postcode, etc...). I have attached some images to give you a rough idea of what im trying to do:

First--
http://i893.photobucket.com/albums/ac137/SilentPirate007/GUI_1.jpg

Second--
http://i893.photobucket.com/albums/ac137/SilentPirate007/GUI_2.jpg
<input id="gwProxy" type="hidden"><!--Session data--><input *******="jsCall();" id="jsProxy" type="hidden">
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I am still a little confused I'm afraid. I have linked the information in the table to the Number tool, which displays the unique numbers (I have linked just the unique numbers, which have been assigned a dinamic range name). The only step i'm missing now, is when I select 1002, for example, that the name, address and postcode be displayed on the tool (shown in the 2nd link I posted).

If no number was selected, then the result would look as such:

Number: Name:
Address:
Postcode:

If I were to choose unique number 1002, the result would be:

Number: 1002 Name: Time
Address: Address 2
Postcode: 10

Thanks for you help!
<input id="gwProxy" type="hidden"><!--Session data--><input *******="jsCall();" id="jsProxy" type="hidden">
 
Upvote 0
Assumptions:
  • your drop down value is in Cell D4
  • you have a named range LKPNumbers with the column of unique reference numbers
  • you have a named range LKPNames with the parallel column containing names
  • you have a named range LKPAddresses with the parallel column containing Addresses
  • you have a named range LKPPostCodes with the parallel column containing post codes

This formula could go in H4 (or any cell) - it should return a name or #N/A if the unique reference number does not exist:
=INDEX(LKPNames,MATCH(D4,LKPNumbers,0))

Essentially what the formula does is (starting in the inside nested Match) finds the row number in the LKPNumbers range that matches the value in D4. Then it uses that row number to find the corresponding row in the LKPNames range - the corresponding name. You must be careful that all the ranges have the same dimensions (they should be parallel in height, starting in the same row and ending in the same row)
 
Upvote 0
We are very close! However, you may or may not have noticed that the scrollbar is not linked to D4, so no matter what unique number I select, it returns #N/A - Which is expected...Should I link the scrollbar to D4 and if so how would I do it?

Thanks ever so much for your assistance!
<input id="gwProxy" type="hidden"><!--Session data--><input *******="jsCall();" id="jsProxy" type="hidden">
 
Upvote 0
OK, I figured out how to link it, but it still does not return any result other than #N/A.

When I named the ranges, I simply selected A2:A6, for example, and called it 'Name'...Does this contradict the method you're using?
<input id="gwProxy" type="hidden"><!--Session data--><input *******="jsCall();" id="jsProxy" type="hidden">
 
Upvote 0
The names you use shouldn't matter, as long as you've employed them correctly. I would actually avoid the name *Name* as this is the name of an Excel Name object (though it probably doesn't matter).

A common problem with lookups is values stored as text vs. values stored as numbers. If you can "add up" the values 1001, 1002, 1003 in your data then they are true numbers (i.e., using Sum() formula). Otherwise, they are text. Anyway, it should work ...

here's a sample file with a simple demonstration:
<a href="http://northernocean.net/etc/mrexcel/20100213_samplewithlookups.zip">Sample Lookup Workbook</a>

Hope this helps.
ξ
 
Upvote 0
You'll also have to have your table where you would like your answer set up in the same way as the table your pulling data from, you've got both a vertical and a horizontal table showing, lookups won't cope with that
 
Upvote 0
Excel Workbook
ABCDE
2NameAddress 1postcodeDate
31person1street 1post 101/01/2010
42person2street 2post 202/01/2010
53person3street 3post 303/01/2010
64person4street 4post 404/01/2010
75person5street 5post 505/01/2010
86person6street 6post 606/01/2010
97person7street 7post 707/01/2010
108person8street 8post 808/01/2010
119person9street 9post 909/01/2010
1210person10street 10post 1010/01/2010
Sheet2


this is my table of data, with unique reference for each person details

and on my front page this works with a vlookup.

formula in B2 and dragged acroos

Excel Workbook
ABCDE
24person4street 4post 404/01/2010
Sheet1
 
Upvote 0

Forum statistics

Threads
1,215,042
Messages
6,122,810
Members
449,095
Latest member
m_smith_solihull

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