+ Reply to Thread
Results 1 to 11 of 11

Keep reference to a cell when column is deleted

Hybrid View

maido_11 Keep reference to a cell when... 11-28-2007, 08:57 AM
maido_11 I have found a way to do this... 11-28-2007, 10:17 AM
EdMac Hi You can do it on the... 11-28-2007, 10:41 AM
maido_11 Thanks for the help Have... 11-28-2007, 11:32 AM
arthurbr row() returns the row number... 11-28-2007, 11:39 AM
EdMac This function builds up the... 11-28-2007, 11:41 AM
abeeby Re: Keep reference to a cell... 10-20-2020, 08:36 PM
  1. #1
    Registered User
    Join Date
    11-28-2007
    Posts
    6

    Keep reference to a cell when column is deleted

    This is difficult to explain but is causing me no end of problems!

    I have a spreadsheet in excel with scheduling information, each group of data (job) is made up over 2 columns and 6 rows and is in a block (this is so it is easy to view and manouvre)

    I have a link in another worksheet that extracts information from the cell if a criteria in the group is met!

    At the end of each day I need to delete the columns (B and C, which make up that day) in the schedule.

    When I do this all the references in the other worksheet are messed up, even though the next day is moved to columns B and C.

    I would like the link to the other worksheet to automaticaly recognise the new values in column B and C as the reference.

    Is this Possible?


    Hope that makes sense!

  2. #2
    Registered User
    Join Date
    11-28-2007
    Posts
    6
    I have found a way to do this by using the INDIRECT FUNCTION which works a treat.

    The only thing is pasting the formula is very long winded as it does not automatically update the formula as cell reference has to be in ""

    Eg The formula will be: =INDIRECT("B5")

    if I paste this it will copy the above exactly and not the dynamic formula =INDIRECT("B6") which I need!

    Is this possible or is it a limitation of the function??

  3. #3
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Hi

    You can do it on the basis below but you will need to adjust the ROW statement if the information in the two sheets is not in the same row e.g. ROW()+5

    =INDIRECT("your_sheet!Your-column"&ROW())
    Ed

  4. #4
    Registered User
    Join Date
    11-28-2007
    Posts
    6
    Thanks for the help

    Have tried that but cant quite get it to work.

    What does the &row function do?

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    row() returns the row number of the cell where the function is in

    the "&" concatenates the column letter in th thus obtained row number

    so on row 5 row() will return 5, and if in col A the outcome will be A5

  6. #6
    Registered User
    Join Date
    11-28-2007
    Posts
    6
    Thanks

    I'm starting to understand a bit more now but,

    It appears to be selecting data from my sheet as opposed to the worksheet I am trying to extract the data from!

  7. #7
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    This function builds up the cell address you are going to reference

    your_sheet!Your-column is the sheet name and column e.g. DATA!A

    the &ROW() is to get the row number to complete the cell address

    If you don't add anaything to it, it will taker the row number that you are writing the formula in, say row 2, but the data you are looking to call in may be in row 10. In that case you would need to put +8 after the row reference.

    Ed

  8. #8
    Registered User
    Join Date
    12-14-2017
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    1

    Re: Keep reference to a cell when column is deleted

    Sometimes the old things are the best!

    I have spent the last hour pulling teeth before I found this solution!!

    EdMac you are a legend!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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