+ Reply to Thread
Results 1 to 9 of 9

Cell reference using INDEX

  1. #1
    Forum Contributor
    Join Date
    08-20-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2010, 2016, 2019
    Posts
    110

    Cell reference using INDEX

    Hi All,

    Is there a quick way that I can use the INDEX formula on the attached workbook or do I have to manually edit each of the positions in the range?
    Attached Files Attached Files
    Last edited by Jacolene; 10-19-2020 at 05:48 AM. Reason: Title update

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: INDEX Formula

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

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

    Re: INDEX Formula

    Oops, moderator's intervention beat me.

    Pete

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Cell reference using INDEX

    It's OK now - will accept, although it could be more descriptive.

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

    Re: Cell reference using INDEX

    This is what I posted before:

    This is the formula that you have in D10:

    =IF(ISBLANK(Project_Data!$E10),"",INDEX(Project_Data!$G$9:$G$250,2,1))

    You can simplify this to:

    =IF(Project_Data!$E10="","",INDEX(Project_Data!$G$9:$G$250,2))

    and then you want the 2 to increment as you copy the formula down, so you could change that to:

    =IF(Project_Data!$E10="","",INDEX(Project_Data!$G$9:$G$250,ROWS($1:2))

    and then you will be able to copy it down.

    In terms of copying across, the $G will remain fixed unless you change it to just G, but then the columns that you want to get data from are not contiguous so you would have to edit them anyway (and you have slightly different requirements, like dividing by 100 in column F). You could use MATCH to determine the column number if the headings are the same.

    Hope this helps.

    Pete

  6. #6
    Forum Contributor
    Join Date
    08-20-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2010, 2016, 2019
    Posts
    110

    Re: Cell reference using INDEX

    Thanks, Pete! Works perfectly. Don't mind editing the few columns, beats editing every cell.

    Just to understand better, please explain why using "ROWS($1:2))" is working? Can't get my head around why it's working. As I copy it down it changes to ROWS($1:3)), ROWS($1:4)) on the Project_Plan tab.

    Thanks for the extra tip on using MATCH. The reason I used /100, is because I changed the format to percentage on Project_Plan, as the Project_Data tab only shows a number.

  7. #7
    Forum Contributor
    Join Date
    08-20-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2010, 2016, 2019
    Posts
    110

    Re: Cell reference using INDEX

    The other issue also now is, when I delete a row the Project_Data tab, it shows #REF! error on the Project_Plan.

    Whereas if I use
    =IF(ISBLANK(Project_Data!$E10),"",INDEX(Project_Data!$G$9:$G$249,2,1))

    when I delete a row, it automatically update on the Project_Plan tab

  8. #8
    Forum Contributor
    Join Date
    08-20-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2010, 2016, 2019
    Posts
    110

    Re: Cell reference using INDEX

    This seems to do the trick that works when a delete or add a row.

    In D10

    =IF(ISBLANK(Project_Data!$E10),"",INDEX(Project_Data!$G$10:$G$249,ROWS($A$10:A10)))

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

    Re: Cell reference using INDEX

    Glad you got it working. Thanks for the rep.

    Pete

+ 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] Index Match not cycling through entire index. Formula not updating when values change...
    By nordxnortheast in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-07-2020, 10:44 AM
  2. [SOLVED] Index/Aggregate formula calculates correct row but does not yield name from Index array
    By FivestarMac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-17-2019, 05:07 PM
  3. Replies: 1
    Last Post: 08-17-2019, 01:11 PM
  4. Index Match formula changing my Index daily
    By vitt4300 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2017, 02:19 PM
  5. [SOLVED] This formula works but I donīt understand why Index(Index) match
    By campelliann in forum Excel General
    Replies: 2
    Last Post: 01-25-2016, 05:55 PM
  6. Index Match Formula, can index be fixed?
    By herschen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-02-2015, 08:28 PM
  7. Index Match Index Formula work slow
    By avk in forum Excel General
    Replies: 9
    Last Post: 03-07-2012, 02:19 PM

Tags for this Thread

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