+ Reply to Thread
Results 1 to 4 of 4

Reference cell from another worksheet if Column and Row headings Match

  1. #1
    Registered User
    Join Date
    04-26-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    1

    Reference cell from another worksheet if Column and Row headings Match

    Hello Excel Forum,

    I'm a new member to the site. Thank you for considering my question.

    I'd like to populate "baby worksheets" from a "master worksheet" as seen in the attached example. I'd like the population to be done by matching the Row and Column headings.

    For example, in the contact worksheet, I'd like the empty cells to automatically update themselves from the master sheet based on the column titles (First Name, Last Name etc) and the Row heading (1, 2, 3, 4 etc.).

    The master sheet will be changed frequently and I'll likely need to add columns as as I go (which is why I'd like population to match by column title). I'm looking for an elegant solution and would prefer a formula because I have no experience with Visual Basic or Macros.

    ~Thank you for the help

    Example.xlsx

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Reference cell from another worksheet if Column and Row headings Match

    In B2 of your contact sheet, put this. Copy down and across. Same way for the other sheet.

    =IFERROR(INDEX('Master Sheet'!G$2:G$1000,MATCH($A2,'Master Sheet'!$A$2:$A$1000,0)),"")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

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

    Re: Reference cell from another worksheet if Column and Row headings Match

    use this same formula in b2 of the speciality and contact sheets
    =INDEX('Master Sheet'!$A$1:$J$500,MATCH($A2,'Master Sheet'!$A$1:$A$500,0),MATCH(B$1,'Master Sheet'!$A$1:$J$1,0))
    fill across and down
    "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

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,695

    Re: Reference cell from another worksheet if Column and Row headings Match

    Put this formula in B2 of the Speciality sheet:

    =INDEX('Master Sheet'!$A:$J,MATCH($A2,'Master Sheet'!$A:$A,0),MATCH(B$1,Table1[#Headers],0))

    It should automatically copy itself down, then you can copy it across. Copy it into B2 of the Contact sheet, and across.

    Hope this helps.

    Pete

+ 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