+ Reply to Thread
Results 1 to 2 of 2

index Reference letter change when i insert a column in refrence sheet

  1. #1
    Registered User
    Join Date
    11-16-2018
    Location
    Saudi Arabia
    MS-Off Ver
    2016
    Posts
    4

    Talking index Reference letter change when i insert a column in refrence sheet

    hi guys,

    i have an issue where the following index letter $E7$:$E$100000 changes whenever i enter a call to refrence sheet "Raw Data for PR Dist"

    Code:
    =IF(INDEX('Raw Data for PR Dist'!$E$7:$E$100000,MATCH(1,(A3='Raw Data for PR Dist'!$A$7:$A$100000)*(B3='Raw Data for PR Dist'!$B$7:$B$100000),0))="","",INDEX('Raw Data for PR Dist'!$E$7:$E$100000,MATCH(1,(A3='Raw Data for PR Dist'!$A$7:$A$100000)*(B3='Raw Data for PR Dist'!$B$7:$B$100000),0)))

    such as when i run the vba the first time it will insert a column in the refrence sheet.

    every time i run the Macro the same thing happen, thus $E7$:$E$100000 becomes $F7$:$F$100000 then $G7$:$G$100000...etc

    how can i lock $E7$:$E$100000 to NOT change whenever i run the Macro ?

    i saw something about indirect but am not sure if it will work or if there is a better solution.

    THank you

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,998

    Re: index Reference letter change when i insert a column in refrence sheet

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).

    1. It does NOT have to be your real sheet - mock up a SAMPLE if you need to. But not 1000's of rows!!! It makes manual checking so tedious. Whatever you do... make sure that all confidential information is removed first!!

    2. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    3. Make sure that your desired solution is also shown (mock up the results manually).

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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] Change sheet name to cell refrence
    By Excelski in forum Excel General
    Replies: 7
    Last Post: 12-31-2017, 09:54 AM
  2. [SOLVED] Using a letter in one cell to reference to a column in the sheet
    By SEANLIPINSKI in forum Excel General
    Replies: 5
    Last Post: 06-23-2014, 02:41 PM
  3. reference will not change after insert column
    By emina002 in forum Excel General
    Replies: 4
    Last Post: 01-08-2012, 10:30 PM
  4. Reference a Column letter from a number
    By duckboy1981 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2008, 12:23 PM
  5. Getting a column reference as a letter
    By Conor in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-01-2008, 12:29 PM
  6. Reference drive letter that can change
    By Rob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2005, 05:05 PM
  7. [SOLVED] Change cell refrence names for whole column/row
    By Mikus in forum Excel General
    Replies: 1
    Last Post: 08-13-2005, 10: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