+ Reply to Thread
Results 1 to 18 of 18

how to fix the cell reference in excel when column insert or delete it needs to refer

  1. #1
    Registered User
    Join Date
    12-15-2017
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    14

    how to fix the cell reference in excel when column insert or delete it needs to refer

    how to fix the cell reference in excel when column insert or delete it needs to refer same cell when we apply formula

  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,842

    Re: how to fix the cell reference in excel when column insert or delete it needs to refer

    What's the formula that you are using? Explain what you mean by "when column insert or delete it needs to refer same cell".
    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
    Registered User
    Join Date
    12-15-2017
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    14

    Re: how to fix the cell reference in excel when column insert or delete it needs to refer

    I applied formula that=if(A2="F","ESCORT","") but after applying this formula if delete or insert Row it is not referring same cell.

  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,842

    Re: how to fix the cell reference in excel when column insert or delete it needs to refer

    OK - so A2 will change if you insert or delete cells. Change it to this:

    =IF($A$2="F","ESCORT","")

  5. #5
    Registered User
    Join Date
    12-15-2017
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    14

    Re: how to fix the cell reference in excel when column insert or delete it needs to refer

    If I insert one A2 row before formula needs to refer inserted cell number A2 because if I do with above formula it is jumping to locked cell I think u got my question

  6. #6
    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,842

    Re: how to fix the cell reference in excel when column insert or delete it needs to refer

    Have you tried my suggestion in post #4? If so, why does it not work for you? Please attach a sample workbook.

    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.

  7. #7
    Registered User
    Join Date
    12-15-2017
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    14

    Re: how to fix the cell reference in excel when column insert or delete it needs to refer

    I Applied formula below
    C1.PNG

    If I insert row the formula referring previous cell but it suppose to refer added cell, please suggest,
    c2.PNG

  8. #8
    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,842

    Re: how to fix the cell reference in excel when column insert or delete it needs to refer

    Pictures are of no use. Attach the workbook itself.

    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.

  9. #9
    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
    44,053

    Re: how to fix the cell reference in excel when column insert or delete it needs to refer

    I can't follow what you are doing. Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. 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.

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

    3. Make sure that all confidential information is removed first!!

    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

  10. #10
    Registered User
    Join Date
    12-15-2017
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    14

    Re: how to fix the cell reference in excel when column insert or delete it needs to refer

    DATA1.xlsx DATA1.xlsx

    i have attached excel and i have applied formula in cell # C17

  11. #11
    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
    44,053

    Re: how to fix the cell reference in excel when column insert or delete it needs to refer

    That still doesn't make it clear. What do you expect the formula to be able to do??

  12. #12
    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,842

    Re: how to fix the cell reference in excel when column insert or delete it needs to refer

    There is no formula in C17. In fact, I can't see any formulae anywhere in that workbook.
    Last edited by AliGW; 01-01-2018 at 06:20 AM.

  13. #13
    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
    44,053

    Re: how to fix the cell reference in excel when column insert or delete it needs to refer

    F17... referring back to C17.

  14. #14
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: how to fix the cell reference in excel when column insert or delete it needs to refer

    I don't understand what you're trying to do. I see you have this formula in every blue-shaded row in column F:
    =IF($C$17="F","ESCORT","")

    What result is it that you want, and where? Please attach another file showing the results you want to get - enter them manually if necessary. Please also be careful with all the information on the other sheets - there seems to be a lot there which may be confidential. If the data isn't needed to get the results you want, then remove it.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  15. #15
    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,842

    Re: how to fix the cell reference in excel when column insert or delete it needs to refer

    Ah, yes - I see. No idea what the OP is trying to do!

  16. #16
    Registered User
    Join Date
    12-15-2017
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    14

    Re: how to fix the cell reference in excel when column insert or delete it needs to refer

    there is a formula in Cell F2 referring C17, when i insert copied rows before C17 it is not referring added row and formula going down u can see in the screen shot above attached in previous post.

  17. #17
    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,842

    Re: how to fix the cell reference in excel when column insert or delete it needs to refer

    The problem is, you aren't giving enough detail. Explain WHY cell F2 needs to refer to C17 as opposed to any other cell - what is it meant to be doing? No pictures, please - explain in words what you expect to happen.

  18. #18
    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,842

    Re: how to fix the cell reference in excel when column insert or delete it needs to refer

    You will get help faster if you respond quickly to the questions asked.

+ 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] insert a hyperlink into an excel cell to refer to a specific email in outlook
    By Joe McLoughlin in forum Excel General
    Replies: 3
    Last Post: 08-03-2012, 05:25 PM
  2. [SOLVED] Stop cell reference changing when insert column
    By freud1 in forum Excel General
    Replies: 3
    Last Post: 07-27-2012, 10:44 AM
  3. Need to refer to value of cell reference
    By rf23338 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-27-2011, 12:08 PM
  4. Insert/delete column based on cell value
    By herwin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-28-2011, 05:45 AM
  5. Insert/Delete a Row/a Column in Excel 2007
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 11-19-2007, 12:09 PM
  6. Insert a formula with relative cell reference based on a number in a column
    By Dcritelli in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-16-2007, 05:54 PM
  7. Excel: can I refer to cell reference in page setup header
    By nikos in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-21-2006, 02:25 PM
  8. How to Track Column Insert/Delete Event in Excel
    By mac_excel in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 07-07-2005, 08:05 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