+ Reply to Thread
Results 1 to 5 of 5

Auto populate data from another table

  1. #1
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    Auto populate data from another table

    Hi guys

    Hope u can help me with the attached spreadsheet. I have a summary sheet and need to autopopulate the data to the table from another cell. Please refer to the attached file im working on.


    Many thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Auto populate data from another table

    Hello
    Take a look at the attached reply. It uses the VLOOKUP and INDIRECT functions to return the values. For convenience of reference, I've renamed your sheets: 'Hotel 1'; 'Hotel 2'. This is a 2007 file format as your original attachment but if you have any problems, as you state you're using 2003, then I can attach a 2003 version.

    Hope this helps.
    DBY
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: Auto populate data from another table

    Hi!

    Thanks for the help, just wondering, What if I need to modify the name of the Hotel, what changes should I make to the fomula? Sorry, fairly new to this

    E.g. HOTEL 1 - Shangrila Hotel

    Thanks

    Quote Originally Posted by DBY View Post
    Hello
    Take a look at the attached reply. It uses the VLOOKUP and INDIRECT functions to return the values. For convenience of reference, I've renamed your sheets: 'Hotel 1'; 'Hotel 2'. This is a 2007 file format as your original attachment but if you have any problems, as you state you're using 2003, then I can attach a 2003 version.

    Hope this helps.
    DBY

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Auto populate data from another table

    You could populate your list in Column T based on Cell A1(say) of each sheet name. The Vlookup & INDIRECT combo suggested by DBY in Post #2 will then work seamlessly.

    In Cell A1 of each sheet use the below to get sheet name
    =MID(CELL("filename"),FIND("]",CELL("filename"))+1,32)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Auto populate data from another table

    Hello

    If you can do as Ace_Xl suggests, that would be a very good way to go. Wished I'd known that myself! We all learn here.

    As long as your Data Validation drop down list matches your sheet names then the formula needs no amendment. Be aware however, that within the 'Table Array' that the VLOOKUP function references, the range of cells:

    =VLOOKUP($B7,INDIRECT("'"&$B$3&"'!B6:N7"),COLUMN(B1),0)

    in this example , B6:N7, is not dynamic, so your data must remain within these ranges on each sheet. If those change then you would have to amend the formulas.

    Hope that's clear.
    DBY

+ 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