Hello all,
Hope someone can figure this out.I have a2:a11 with dropdown boxsopulated with publican houses names.I2 to r11 have each houses details.when i pick a name in a2 i would like c1:c10 to show the houses details and in b2 when i pick a name c11:c20 will display there details.Please look at attached for details.thank you.
In C1: =INDEX($I$2:$R$11,ROW(),MATCH($A$2,$I$1:$R$1,0))
Copy the formula to C11 and adjust the reference from $A$2 to $A$3 and so on, adjust the ROW() to ROW-10, then ROW-20, etc as you move down the column. Optionally, for each of the ten cells you could use and copy then down, adjusting the $A$2 as noted:
=INDEX($I$2:$R$11,1,MATCH($A$2,$I$1:$R$1,0))
=INDEX($I$2:$R$11,2,MATCH($A$2,$I$1:$R$1,0))
=INDEX($I$2:$R$11,3,MATCH($A$2,$I$1:$R$1,0))
etc.
Last edited by Palmetto; 05-07-2010 at 07:47 PM.
Palmetto
Do you know . . . ?
You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.
Palmetto thanks for your help.
But before i close this i want to try and complicate things a bit.if in a2 i pick a house then c1 will choose a random record from there list.a3 i pick a house c2 will display a random record from there details and so on.And same applies again when i change a2 to a different house.thanks again.
Last edited by aquinlan; 05-08-2010 at 04:37 AM.
You could use the RANDBETWEEN function to randomly select the row from which to pull the record.
However, anytime you make a different selection in any of the drop downs it will trigger the function to generate a new random number. There is no way to avoid the issue other than either using VBA or turning off automatic calculation.
=INDEX($I$2:$R$11,RANDBETWEEN(1,10),MATCH($A$2,$I$1:$R$1,0))
Palmetto
Do you know . . . ?
You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.
The main goal i hoped for would be to pick a selection from 1 dropdown and it would change details but everything else would not.So if vba can do this i would be grateful if you could help make this happen.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks