+ Reply to Thread
Results 1 to 7 of 7

Need one sheet to reference another in an advanced way.

  1. #1
    Registered User
    Join Date
    05-25-2012
    Location
    New Hampshire
    MS-Off Ver
    Excel 2010
    Posts
    2

    Need one sheet to reference another in an advanced way.

    Hello and thanks in advance if this is even possible.

    I have two Excel worksheets within the same workbook.

    One, "Database" and two "Floor Plan".

    I am looking to have the Floor Plan populate itself based on the Database sheet.

    test1.xlsx

    I attached a sample workbook to illustrate what I am going for. I am not sure exactly how to go about doing this.


    Thanks for your time.
    James
    Last edited by JimmyHuss; 05-25-2012 at 09:51 PM. Reason: Making an appropriately long title

  2. #2
    Forum Contributor
    Join Date
    12-04-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    127

    Re: Long-ish question

    I'm concerned that Joe Black and Joe Brown are sharing the same room..........................

  3. #3
    Forum Contributor
    Join Date
    12-04-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    127

    Re: Long-ish question

    Why would you delete my comment?

    stop being so over zealous. There is no need for it.

    "hidden till OP changes title" <<<< lol.


    Why dont you change the title for him? Rather than making him look stupid. You can read... you know what his question is........

    nazi fundamentals.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Need one sheet to reference another in an advanced way.

    Robotacha,

    Your post does not comply with Rule 6 of our Forum RULES. Common courtesy is the order of the day. Avoid coarse language, provide feedback to suggested solutions, and take the time to thank those who took their time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  5. #5
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Need one sheet to reference another in an advanced way.

    Hi James, and sorry about your introduction to the forum.

    The point of the title change isn't to make the title long, it's just that without some policing we'd end up with all of the posts on here sharing about 6 titles ... which would get too confusing for us regulars here (we're not a terribly bright bunch)

    On with your problem - the format of your two sheets doesn't make it easy to get data from one to the other, but I think the following little formula should work OK:

    =IF((ROW()-MAX(INDEX(ROW(A$1:A1)*(A$1:A1<>""),0))+1)>COUNTIF(Database!$E:$E,INDEX(A:A,MAX(INDEX(ROW(A$1:A1)*(A$1:A1<>""),0)))),"",INDEX(Database!$B:$B,LARGE(INDEX(ROW(Database!$A$1:$A$1000)*(Database!$E$1:$E$1000=INDEX(A:A,MAX(INDEX(ROW(A$1:A1)*(A$1:A1<>""),0)))),0),COUNTIF(Database!$E:$E,INDEX(A:A,MAX(INDEX(ROW(A$1:A1)*(A$1:A1<>""),0))))-(ROW()-MAX(INDEX(ROW(A$1:A1)*(A$1:A1<>""),0))))) & " " & INDEX(Database!$A:$A,LARGE(INDEX(ROW(Database!$A$1:$A$1000)*(Database!$E$1:$E$1000=INDEX(A:A,MAX(INDEX(ROW(A$1:A1)*(A$1:A1<>""),0)))),0),COUNTIF(Database!$E:$E,INDEX(A:A,MAX(INDEX(ROW(A$1:A1)*(A$1:A1<>""),0))))-(ROW()-MAX(INDEX(ROW(A$1:A1)*(A$1:A1<>""),0))))))

    I've added it to your sample sheet (attached).

    Hope this is helpful.
    Attached Files Attached Files

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Need one sheet to reference another in an advanced way.

    lol Andrew, thats scarey to even just look at )
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Need one sheet to reference another in an advanced way.

    The following assumes that you will have no more than 2 names per room (as implied by your sample):
    In B1:
    Please Login or Register  to view this content.
    In B2:
    Please Login or Register  to view this content.
    Copy B1:B2 and paste in each cell to right of a room # (ie B3, B5, B7, E1, E3, E5, E7)

+ 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