+ Reply to Thread
Results 1 to 4 of 4

Fixed reference for column in a table formula, like $ in normal excel

  1. #1
    Registered User
    Join Date
    11-21-2013
    Location
    Bangkok, Thailand
    MS-Off Ver
    2010
    Posts
    2

    Fixed reference for column in a table formula, like $ in normal excel

    Hi all I have the following formula to pull the number of visits from a table (VisitVolume): =INDEX(VisitVolume,MATCH($A45,VisitVolume[OPD Departments],0),MATCH(AdmissionsVolume[[#Headers],[1]],VisitVolume[#Headers],0))

    The table lists hospital departments as rows and years in the columns. So for example in year one visit volume for surgery will be 1000, year two will be 2000 etc. In year one visit volume for pediatrics will be 3000 and in year 2 3500 etc. I use the formula above to pull the visit information I need for a particular department in a particular year to then use in another formula in another table - AdmissionVolume. The actual visit volume for a particular year will be multiplied by a percentage to give me the number of admissions for that department, for that year.

    My problem is fixing the column [OPD Departments] as a permanent reference. I have placed the formula in the first cell of the AdmissionVolume and it works correctly. However when I drag the formula across to year no. 2 the column reference [OPD Departments] in the VisitVolume table is changed in the formula to the next column along: INDEX(VisitVolume,MATCH($A45,VisitVolume[1],0),MATCH(AdmissionsVolume[[#Headers],[2]],VisitVolume[#Headers],0))

    I need VisitVolume[OPD Departments] to always stay as that, however I still need AdmissionsVolume[[#Headers],[1]] - which pulls the visit information from the first year - to change to AdmissionsVolume[[#Headers],[2]] - i.e. now pulling the visit information from the second year. If I drag the formula to fill cells then the AdmissionsVolume[[#Headers],[1]] changes correctly however VisitVolume[OPD Departments] doesn't. If I copy and paste the formula then VisitVolume[OPD Departments] stays the same but then the year doesn't update in AdmissionsVolume[[#Headers],[1]].

    Argh! In normal excel it is easy to just throw a $ in front of the row or column you wish to remain fixed. How can I tell the formula that I want [OPD Departments] to stay fixed but to increment AdmissionsVolume[[#Headers],[1]]?

    Thanks in advance for your help!

  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
    44,424

    Re: Fixed reference for column in a table formula, like $ in normal excel

    See the information in this link:

    http://www.excelcampus.com/tips/abso...uctured-table/


    Regards, TMS
    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
    11-21-2013
    Location
    Bangkok, Thailand
    MS-Off Ver
    2010
    Posts
    2

    Re: Fixed reference for column in a table formula, like $ in normal excel

    This is perfect! Thanks so much Trevor you really have made me happy - I spent so long trying to find the answer.

    How do I mark this as solved?

  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
    44,424

    Re: Fixed reference for column in a table formula, like $ in normal excel

    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] Fixed Reference for a table like $ in normal excel
    By kenny.fsw in forum Excel General
    Replies: 6
    Last Post: 05-04-2012, 03:43 AM
  2. Keeping fixed cell reference in table
    By peterz in forum Excel General
    Replies: 1
    Last Post: 10-20-2007, 09:24 AM
  3. [SOLVED] [SOLVED] Define and Reference fixed data in a table
    By RedHook in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 05-12-2006, 12:00 PM
  4. [SOLVED] reference cell value from fixed column with variable row
    By bob z in forum Excel General
    Replies: 0
    Last Post: 05-24-2005, 06:31 AM
  5. Replies: 0
    Last Post: 05-23-2005, 07:06 PM

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