Share via

EXCEL for MAC v.16, Microsoft 365. How to populate cells in a Table based on the values entered into Entry cells using a reference table.

McCaleb5635 20 Reputation points
2026-04-26T19:24:16.5166667+00:00

I want to populate several cells in a Table (Table B) based on the values entered into Entry cells. Table A , with 37 different options, will serve as a Reference for the values to be populated.

More specifically:

  1. By entry of a value (0-36) into a Entry cell, I want to fill a 4-cell set of cells with values
  2. The values of the 4-set cells are determined based on the separate Table A
  3. Then I want to be able to copy the formula into other rows to create a Table B with 10 rows
  4. Then copy Table B layout, with formulas, to other locations on the sheet or on new sheets or tabs. Hence, no matter where I locate the Table B on the sheet the Entry cells will refer to the reference Table A.

User's image

User's image

Microsoft 365 and Office | Excel | For business | MacOS
0 comments No comments

Answer accepted by question author

  1. Q&A Assist
    2026-04-26T19:24:38.4766667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Use a lookup formula that always points to Table A, then copy it through Table B.

    Assume:

    • Table A is an Excel table named TableA.
    • TableA has columns [1], [2], [3 or 4], [5], [6].
    • In each row of Table B, the yellow “Entry” cell contains a value from 0–36.

    1. Turn Table A into an Excel table

    1. Select the range that contains Table A.
    2. Press Ctrl+T (or use Home > Format as Table).
    3. Confirm My table has headers.
    4. In Table Design, rename it to TableA.

    This enables structured references that stay valid when Table B is moved or copied.

    2. Add the formulas in Table B

    Suppose in Table B:

    • The Entry cell in the first data row is E2.
    • The four output cells in that row are C2, D2, F2, G2.

    Use INDEX with MATCH to pull the 4 values from Table A based on the Entry value.

    In C2 (first output cell):

    =INDEX(TableA[1], MATCH($E2, TableA[3 or 4], 0))
    

    In D2 (second output cell):

    =INDEX(TableA[2], MATCH($E2, TableA[3 or 4], 0))
    

    In F2 (third output cell):

    =INDEX(TableA[5], MATCH($E2, TableA[3 or 4], 0))
    

    In G2 (fourth output cell):

    =INDEX(TableA[6], MATCH($E2, TableA[3 or 4], 0))
    

    Explanation:

    • MATCH($E2, TableA[3 or 4], 0) finds the row in Table A whose “3 or 4” value equals the Entry value.
    • INDEX(TableA[1], …) (or [2], [5], [6]) returns the corresponding value from the desired column.
    • The $ in $E2 fixes the column so the formulas can be filled sideways.

    3. Fill down to create 10 rows

    1. Select C2:G2.
    2. Drag the fill handle down to row 11 (or double‑click it if the Entry column is filled). Each row of Table B now returns the 4‑cell set from Table A for its Entry value.

    4. Copy Table B anywhere

    Because the formulas use structured references to TableA, Table B can be:

    • Copied to other locations on the same sheet.
    • Copied to other sheets.

    The formulas will still refer to TableA and will continue to populate the 4 cells based on the Entry value.

    If Table B is also converted to an Excel table, the structured references will automatically adjust per row, and copying the entire table (including formulas) to other sheets will preserve the behavior.


    References:

    Was this answer helpful?

1 additional answer

Sort by: Most helpful
  1. Ian-Ng 12,860 Reputation points Microsoft External Staff Moderator
    2026-04-26T22:39:42.36+00:00

    Hi @McCaleb5635,

    Thank you for reaching out regarding your query for Excel for Mac v.16.

    Based on your description, I understand that you intend to automate the population of Table B by referencing data from a primary Table A. Specifically, you want to enter a value between 0 and 36 into an entry cell to trigger the automatic distribution of values into a designated four-cell set. Furthermore, you require a solution that remains fully functional and maintains its reference to Table A even when the layout of Table B is copied to different rows, sheets, or entirely new tabs.

    To ensure I provide the most effective and accurate solution tailored to your specific workbook structure, I would appreciate it if you could provide a sample file. Having access to a file allows me to better understand your data layout and test the formulaic references in real-time. This step is crucial to ensure the solution is robust enough to handle relocation across your workbook without any degradation in performance or technical accuracy.

    For your privacy and convenience, I have initiated a private message where you can securely share this information. This will enable me to assist you more comprehensively and provide a verified solution. Kindly click on "View messages" to open the private message.

    User's image

    I look forward to your reply.


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.