+ Reply to Thread
Results 1 to 14 of 14

Non-adjusting cell references

  1. #1
    Registered User
    Join Date
    06-05-2019
    Location
    Newcastle, Australia
    MS-Off Ver
    365-ProPlus 1902
    Posts
    9

    Question Non-adjusting cell references

    Hello,

    This is a question I've seen asked in a lot of different places, but for slightly different use cases than my own.

    I'm hoping to avoid using INDIRECT or other solutions, as I would have to edit 400+ formulas to cope with this - and it seems ridiculous that Excel doesn't have another way of preventing this..

    Allow me to explain:

    In sheet "Foo" there are ~40 columns that a user will need to enter data into, in the sheet "Bar" there are a series of checks to make sure the data is valid. Each row in the sheet is considered a separate record.

    If I place something in Foo!B2, and realize that I needed to put the data into Foo!A2 I can use either cut+paste or drag the data to the correct spot. This causes the formulas depending on this data in "Bar" to also adjust to match the new location of the data.

    There in lies, the problem, even with absolute referencing the formulas in "Bar" are changing, which is causing issues with the other formulas on the sheet as some of the cell references are defaulting to #REF.

    Telling users just not to move data around the sheet, is not really a sufficient solution..

    Keeping in mind, I need to be able to preserve the relative referencing of the row number, is there anyway to achieve this without INDIRECT? It just seems weirdly limiting that excel doesn't have a feature that allows you to do this.

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

    Re: Non-adjusting cell references

    The problem is less with Excel and more with the way you have chosen to set up your workbook, from what I have read so far.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are 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 results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as 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.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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
    06-05-2019
    Location
    Newcastle, Australia
    MS-Off Ver
    365-ProPlus 1902
    Posts
    9

    Re: Non-adjusting cell references

    Okay here you go. I've attached a document that isn't as large as the original, but has the same basic principles. I've tried to make things as concise as possible, but please let me know if I can clarify.
    Attached Files Attached Files

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

    Re: Non-adjusting cell references

    Have you asked this question anywhere else? I only ask because of the name of the sample file. If you have, the forum rules require you to provide cross-post links, please.

    I will take a look.

  5. #5
    Registered User
    Join Date
    06-05-2019
    Location
    Newcastle, Australia
    MS-Off Ver
    365-ProPlus 1902
    Posts
    9

    Re: Non-adjusting cell references

    Nope, I have only posted this question here.

    Thankyou

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

    Re: Non-adjusting cell references

    As I suspected, your design is not going to work. Why does the validation need to be on a separate tab at all? What is the purpose of the validation? There will be better ways of achieving what you want rather than trying to work around what is Excel's default and perfectly logical behaviour.

    PS Why are you not using Excel tables?
    Last edited by AliGW; 07-16-2019 at 02:55 AM.

  7. #7
    Registered User
    Join Date
    06-05-2019
    Location
    Newcastle, Australia
    MS-Off Ver
    365-ProPlus 1902
    Posts
    9

    Re: Non-adjusting cell references

    Validation is required to be another sheet, because that portion of the workbook should not be customer/user facing. The purpose of the validation is to validate data before it is migrated into our system. Using something such as Conditional Formatting to pick up errors in the data could work, but limits what we can do in other ways.

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

    Re: Non-adjusting cell references

    Why can't it be in hidden columns?

    The problem is the way you are allowing your people to work.

    This is at best haphazard and is just asking for problems:

    Telling users just not to move data around the sheet, is not really a sufficient solution.
    Any solution you get here based on your current set-up will be no more than a sticking plaster solution. I would seriously urge you to reconsider your layout. What about using data validation on the first sheet? As I implied in my previous post, using tables might mitigate some (but not all) potential issues.

    This is an accident waiting to happen - sorry.

  9. #9
    Registered User
    Join Date
    06-05-2019
    Location
    Newcastle, Australia
    MS-Off Ver
    365-ProPlus 1902
    Posts
    9

    Re: Non-adjusting cell references

    Not trying to argue the point, but just curious what you meant by

    This is an accident waiting to happen

  10. #10
    Registered User
    Join Date
    06-05-2019
    Location
    Newcastle, Australia
    MS-Off Ver
    365-ProPlus 1902
    Posts
    9

    Re: Non-adjusting cell references

    Also FWIW, Excel tables weren't something I've played around with before. So might be worth checking. Not sure if itll be the difference maker, but always worth exploring for future projects / potential rewrite.

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

    Re: Non-adjusting cell references

    Simply this: you are not going to find a way to reliably prevent the type of issues you are describing with the layout as it is and wanting to allow your workers to continue adding and pasting data in such a haphazard fashion. Wonky brickwork!

    Also FWIW, Excel tables weren't something I've played around with before.
    You seem to be where I was about ten years ago in your understanding of how best to arrange data. Been there, done that and got all the blooper medals!

    If you can provide a slightly more detailed, desensitised workbook showing the structure of the data and explaining the validation checks you need to do, someone can advise you how best to structure this. You need a root and branch rethink. Unfortunately, I'm just off to my dental check-up, so can't help you right now.
    Last edited by AliGW; 07-16-2019 at 03:16 AM.

  12. #12
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Non-adjusting cell references

    Use below formula in Records Check Sheet
    A2=IFERROR(IF(1/INDEX(Records!$1:$1048576,ROW(),MATCH(A$1,Records!$1:$1,0)),"VALID"),"INVALID")
    B2=IFERROR(IF(1/(INDEX(Records!$1:$1048576,ROW(),MATCH(B$1,Records!$1:$1,0))+1),"INVALID"),"VALID")
    C2=IFERROR(IF(1/(INDEX(Records!$1:$1048576,ROW(),MATCH(C$1,Records!$1:$1,0))+1),"INVALID"),"VALID")
    D2=IFERROR(IF(1/INDEX(Records!$1:$1048576,ROW(),MATCH(D$1,Records!$1:$1,0)),"VALID"),"INVALID")
    E2=IF(AND(INDEX(Records!$1:$1048576,ROW(),MATCH(E$1,Records!$1:$1,0))<>"",ISNUMBER(INDEX(Records!$1:$1048576,ROW(),MATCH(E$1,Records!$1:$1,0)))),"VALID","INVALID")

    Try the above, Copy and paste towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  13. #13
    Registered User
    Join Date
    06-05-2019
    Location
    Newcastle, Australia
    MS-Off Ver
    365-ProPlus 1902
    Posts
    9

    Re: Non-adjusting cell references

    No, that's okay - thankyou for your help. I'm going to rethink the restructure, and see if the current one will be fit for purpose or need a total redo.

  14. #14
    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,798

    Re: Non-adjusting cell references

    Feel free to take advice here - there is a wealth of experience here, so you might as well use it rather than change things and then find you've driven yourself up another blind alley.

+ 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] Adjusting a formula based on another cell value
    By nickpavlov in forum Excel General
    Replies: 8
    Last Post: 05-30-2019, 02:24 PM
  2. [SOLVED] Adjusting Auto-Fill Formulas by Varying References
    By meseleto in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 05-16-2019, 05:12 PM
  3. Non-adjusting References in Formulas
    By jlyh11 in forum Excel General
    Replies: 6
    Last Post: 11-11-2015, 02:57 AM
  4. Replies: 0
    Last Post: 02-11-2013, 08:12 AM
  5. Adjusting a formula based on a value of another cell...
    By Finalfrontier1976 in forum Excel General
    Replies: 9
    Last Post: 05-28-2010, 07:47 AM
  6. Adjusting a formula cell range
    By Jamie in forum Excel General
    Replies: 1
    Last Post: 05-26-2006, 12:10 PM
  7. Replies: 1
    Last Post: 05-24-2006, 01:25 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