+ Reply to Thread
Results 1 to 4 of 4

How do I keep references to columns in a table fixed?

Hybrid View

  1. #1
    Registered User
    Join Date
    05-01-2021
    Location
    San Diego
    MS-Off Ver
    365
    Posts
    3

    How do I keep references to columns in a table fixed?

    Hi everyone,

    Here's my dilemma. Assume in worksheet#1 (WS1) I have a table labeled as Table9. This table has 3 columns. Column A contains names, column B contains performances, column C contains bonuses. In worksheet#2 (WS2), row 1, I have transposed the names in column A of Table9 from WS1. In A2 of WS2 I have typed the following formula: XLookup(A1,Table9[Names],Table[Perf]). This works like a charm. But when I drag the formula across other cells in its row, the formula adjusts the row references, which I require to stay fixed. For instance for B2 the formula ends up as XLookup(B1,Table9[Perf],Table[Bonus]), which is incorrect. F4 shortcut ($x$n) doesn't work. How can I fix this elementary issue? I hope my explanation is sufficiently clear and coherent. Many thanks in advance.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,246

    Re: How do I keep references to columns in a table fixed?

    Untested, but it would be something like:
    Formula: copy to clipboard
    =XLookup(A1,Table9[[Names]:[Names]],Table[[Perf]:[Perf]])
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    05-01-2021
    Location
    San Diego
    MS-Off Ver
    365
    Posts
    3

    Re: How do I keep references to columns in a table fixed?

    Thank you sir. Worked like a charm.
    Last edited by alphahotel; 05-01-2021 at 02:48 AM.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,246

    Re: How do I keep references to columns in a table fixed?

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Match values from a query table to a table with fixed rows and columns
    By tferreiraqtl in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-15-2019, 07:05 AM
  2. fixed formula and table columns
    By tiger19 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-17-2019, 02:25 AM
  3. Making a pivot table with fixed columns possible?
    By almst791 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-05-2017, 07:10 AM
  4. Replies: 13
    Last Post: 10-13-2015, 04:17 AM
  5. References with top rows fixed. Help please!
    By korone in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-29-2015, 06:14 AM
  6. Reative references with some fixed cells
    By CDNcameron in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-07-2015, 06:55 PM
  7. [SOLVED] Fixed cell references
    By rhythm_man in forum Excel General
    Replies: 2
    Last Post: 07-05-2005, 09:05 AM

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