+ Reply to Thread
Results 1 to 13 of 13

Show information from database in a list

  1. #1
    Forum Contributor
    Join Date
    08-04-2008
    Location
    West Calder, Scotland
    MS-Off Ver
    365
    Posts
    418

    Show information from database in a list

    Good Morning

    I have a database which shows a list of names and training documents each person requires. I am looking for a way where I can select a name and it will automatically show me the documents that person requires in a list

    the attachment shows a small example of what I am looking for

    List Training Docs.xls

    Cheers

    Jim
    Last edited by JamesT1; 04-10-2011 at 03:55 PM.

  2. #2
    Forum Contributor Charlie_Howell's Avatar
    Join Date
    09-27-2010
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2007
    Posts
    218

    Re: Show information from database in a list

    Is this what you are looking for?
    Attached Files Attached Files
    Last edited by Charlie_Howell; 04-10-2011 at 05:57 AM.

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Show information from database in a list

    Here's another way using one helper column (AH) and an array formula in Column AI.
    I hve added two dynamic named ranges, they are linked, so you can "grow" your table.

    Hope this helps
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Forum Contributor Charlie_Howell's Avatar
    Join Date
    09-27-2010
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2007
    Posts
    218

    Re: Show information from database in a list

    that is a fabulous example of great array knowledge Marcol, Bravo! You have used all the functions that I am weak in. I can get to the solution most times, however, I use more Real estate to accomplish my goal, I'm saving this sheet to my collection for later studies.

  5. #5
    Forum Contributor
    Join Date
    08-04-2008
    Location
    West Calder, Scotland
    MS-Off Ver
    365
    Posts
    418

    Re: Show information from database in a list

    Guys

    Both of these will work for me,, in your debt forever,,, many thanks for your help....

    Jim

  6. #6
    Forum Contributor Charlie_Howell's Avatar
    Join Date
    09-27-2010
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2007
    Posts
    218

    Re: Show information from database in a list

    Its important to always clean up after oneself,so, I did some cleaning up of my own.
    Attached Files Attached Files

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Show information from database in a list

    non array method still uses a helper row tho, probably a tad more efficient and easier to reproduce!
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  8. #8
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Show information from database in a list

    @ martindwilson nice one!
    Probably a combination of your workbook and this will be best

    @ JamesT1
    Try this

    I have changed the layout of your sheet to make it easier to maintain

    In Row 1
    in D1
    Please Login or Register  to view this content.
    Drag Right for 80 columns

    This will now be used to dynamically resize the width of your table

    In the names manager
    "Names" remains unchanged
    Refers to:=
    Please Login or Register  to view this content.

    "ReqdDocs" becomes
    Refers to:=
    Please Login or Register  to view this content.
    Match refers to the length (Last Row) of the named list "Names" this keeps both lists the same length.
    The Max function (Table Width) now makes the width of the table dynamic, delete from the end of row 1 and the table width will decrease, drag it further and the width will grow.

    You could of course just put a value in a fixed cell and achieve the same, I just thought column numbers might be handy.

    The Helper column formula becomes (Now Column A)
    In A6
    Please Login or Register  to view this content.
    This is the same as before but nested in an IF statement to avoid the #REF! error if the formula is dragged past the length that coresponds to the width of the main table.

    I have changed your conditional formatting to use a formula
    Please Login or Register  to view this content.
    and added
    Please Login or Register  to view this content.
    Both apply to
    Please Login or Register  to view this content.
    That will allow your table to format as it grows in length up to 1000 rows, and the width up to 200 columns.

    Hope this helps.
    Attached Files Attached Files
    Last edited by Marcol; 04-10-2011 at 02:35 PM.

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Show information from database in a list

    blimey id just use my method and change the range sizes it already caters for c.200 rows

  10. #10
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Show information from database in a list

    @ martindwilson
    When I mentioned
    .....1000 rows, and the width up to 200 columns....
    I meant the C/F, the rest is now wholly dynamic, including the drop-down list.

    And, hey I like your method, I'll definitely look at that approach in the future.

    Cheers
    Alistair

  11. #11
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Show information from database in a list

    hey i didnt even notice the cf part lol

  12. #12
    Forum Contributor
    Join Date
    08-04-2008
    Location
    West Calder, Scotland
    MS-Off Ver
    365
    Posts
    418

    Re: Show information from database in a list

    Hi Guys

    Many thanks for all you help,,, all these solutions will do what I need to do....

    Marcol, thanks for explaining how and what you changed,,, helps me understand it a lot easier,,,,

    many thanks guys



    Jim

  13. #13
    Forum Contributor Charlie_Howell's Avatar
    Join Date
    09-27-2010
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2007
    Posts
    218

    Re: Show information from database in a list

    this has been one of the best threads ive been involved with...thanks.

+ 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.6.0 RC 1