+ Reply to Thread
Results 1 to 5 of 5

using drop down lists to show data

Hybrid View

  1. #1
    Registered User
    Join Date
    02-01-2006
    Posts
    60

    using drop down lists to show data

    Hi all,

    I have a spreadsheet with about 10tabs each showing a detailed profit and loss statement for each division of the company.

    I also have a summary sheet the shows a summary of these P&L's with such info as revenue, profit contribution, costs etc.

    Now what I want to do is have a drop down list (on the summary tab) that shows all the divisions. When I select a certain division from the list the summary data should read from that sheet.

    E.G I select Company A from the drop down list. The Revenue and profit contribution etc should then read from the Company A sheet.

    At the moment I have =A1 & "!A40" where A1 contains the list box and A40 is the cell on company A that has the information I want to display.

    Any ideas what im doing wrong?

    Regards
    Gazzr

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    These links may help

    http://www.contextures.com/xlDataVal05.html


    http://www.contextures.com/xlFunctions02.html

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    02-01-2006
    Posts
    60
    Hi VBANoob.

    Thanks for the reply. I have brushed up on lists and named ranges but still cant get it to work.

    For example, I would like to type sheet1 in cell A1. In cell A2 i would have =A1&B1 which would bring back the value in cell B1 in Sheet1.

    Thanks
    Gazzr

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try

    =INDIRECT(A1&"!B1")

    or

    in A1 type Sheet1 A1 (with space)

    =INDIRECT(TRIM(LEFT(A1,FIND(" ",A1)))&"!"&TRIM(RIGHT(A1,LEN(A1)-FIND(" ",A1))))

    more about indirect on attached link

    http://www.bettersolutions.com/excel...T131821001.htm
    HTH

    VBA Noob

  5. #5
    Registered User
    Join Date
    02-01-2006
    Posts
    60
    That is perfect! Thanks. Gazzr

+ 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