Hi all,
I'm trying to develop a way of joining 2 diferent spread Sheets.
Here is what i need help with, I want that on Sheet2:
House Number = any number
Lookup ( House Number Value ) on the Sheet1! Table for rows B / C / D / E
Return multiple values and use those values on a dropdown box in B3
So that B4 / B5 / B6 change according to B3
I've attached an example
Last edited by Rage; 03-11-2010 at 11:33 AM.
See attached for an option:
In Bookings!F10 added a helper column with formula:
=COUNTIF(A$10:A10,House!$I$3) copied down to count matches based on entry made in House!I3
In House!N1: =MAX(Bookings!F:F) to show max number of matches
In N2: =IF(ROWS($A$1:$A1)>$N$1,"",INDEX(Bookings!B:B,MATCH(ROWS($A$1:$A1),Bookings!F:F,0)))
copied down as far as you want to extract matches...
Then go to Formulas|Define Name and enter Name: Arrivals with formula:
=OFFSET(House!$N$1,1,0,COUNT(House!$N:$N)-1,1)
Then go to cell B3 and then Data|Validation, choose List and enter: =Arrivals
in B4: =IF($B$3="","",VLOOKUP($B$3,Bookings!$B$10:$E$20,2,0))
in B5: =IF($B$3="","",VLOOKUP($B$3,Bookings!$B$10:$E$20,3,0))
in B6: =IF($B$3="","",VLOOKUP($B$3,Bookings!$B$10:$E$20,4,0))
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Dear NBVC, i just cant thank you enough, it's not the first time you saved my day.
It works like a charm.
YOU RULE :P
Thanks
PS: NBVC is there any way of making it Auto-update the dropdown list ?
Cheers
Not sure what you mean... the list updates based on the entry you make for House No. in I3 of House! Sheet.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Right click the tab name and select View code, past the following:
Then close the Editor and test by changing I3...Private Sub Worksheet_SelectionChange(ByVal Target As Range) Range("b3").Value = Range("N2").Value End Sub
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Woot thanks... again.
What would i do without you![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks