+ Reply to Thread
Results 1 to 5 of 5

Thread: match data

  1. #1
    Registered User
    Join Date
    04-25-2010
    Location
    Tipperary
    MS-Off Ver
    Excel 2007
    Posts
    41

    match data

    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.
    Attached Files Attached Files

  2. #2
    Forum Guru Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007
    Posts
    3,520

    Re: match data

    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.

  3. #3
    Registered User
    Join Date
    04-25-2010
    Location
    Tipperary
    MS-Off Ver
    Excel 2007
    Posts
    41

    Re: match data

    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.
    Attached Files Attached Files
    Last edited by aquinlan; 05-08-2010 at 04:37 AM.

  4. #4
    Forum Guru Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007
    Posts
    3,520

    Re: match data

    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.

  5. #5
    Registered User
    Join Date
    04-25-2010
    Location
    Tipperary
    MS-Off Ver
    Excel 2007
    Posts
    41

    Re: match data

    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0