+ Reply to Thread
Results 1 to 17 of 17

Excel formula keep fixed

  1. #1
    Registered User
    Join Date
    09-22-2015
    Location
    New Jersey
    MS-Off Ver
    Microsoft Excel 2019 (Windows 11 64-bit).
    Posts
    41

    Excel formula keep fixed

    Hello I attached a sample Spreadsheet. It has 2 worksheets (Sheet1 and Sheet2).
    In Sheet2 It has 3 columns and 3 rows of numbers. On Sheet1 there are formulas that reference the numbers in Sheet2 and add them up. However, I want to know if there is a way that formulas in Sheet1 will not change, even if I delete a column in Sheet2. I need to delete columns in Sheet2 and then I add in another Column later. However, once I delete a column in Sheet2, even if I add a column back in later, the formulas in Sheet1 are showing the Sheet2!#REF error.
    The actual sheet I am working on is much more involved then the sample I provided, so when I need to fix the #REF error it is very time consuming process. Thanks for any suggestions on this.
    Attached Files Attached Files

  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
    81,223

    Re: Excel formula keep fixed

    Are you still using Excel 2016?
    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
    09-22-2015
    Location
    New Jersey
    MS-Off Ver
    Microsoft Excel 2019 (Windows 11 64-bit).
    Posts
    41

    Re: Excel formula keep fixed

    sorry I forgot to put the version, it is Excel 2019.

  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
    81,223

    Re: Excel formula keep fixed

    Please update your forum profile. Thanks.

    I don't believe there's a way to fix your issue. Why not just delete the CONTENTS of columns or hide them instead of deleting them? This would circumvent the problem.

  5. #5
    Registered User
    Join Date
    09-22-2015
    Location
    New Jersey
    MS-Off Ver
    Microsoft Excel 2019 (Windows 11 64-bit).
    Posts
    41

    Re: Excel formula keep fixed

    I read the forum rules. however, I am not sure what I need to update in my profile (please let me know what is Required info I need to provide in my profile). Thank you. As for hiding the columns, it would take me too long to explain why I that wouldn't work. If there isn't a way to do this, then I will just have to update all the formulas whenever i need to update the sheet, its just very time consuming that is why I thought perhaps there might be another way to do this. Thanks.

  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
    81,223

    Re: Excel formula keep fixed

    There might be a way with VBA - shall I move the thread for you?

    You need your profile to show your current version of Excel. It says 2016 at the moment.
    Attached Images Attached Images

  7. #7
    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
    81,223

    Re: Excel formula keep fixed

    Oh, you have 365, NOT 2019? In that case, it might be possible to do what you want with a formula.

    I'll have another look.

  8. #8
    Registered User
    Join Date
    09-22-2015
    Location
    New Jersey
    MS-Off Ver
    Microsoft Excel 2019 (Windows 11 64-bit).
    Posts
    41

    Re: Excel formula keep fixed

    Thanks. I updated the Excel version in Profile. As for Microsoft VBA, thanks for mentioning it, but I don't want to do a Macro for this worksheet. If that is the only option, I will just live with it as is and then update the formulas as needed.

  9. #9
    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
    81,223

    Re: Excel formula keep fixed

    Did you read post #7???

    Try this dynamic array formula:

    =LET(a,FILTER(Sheet2!A2:B4,Sheet2!A2:A4<>""),b,DROP(a,2),c,SEQUENCE(2,COLUMNS(a),0,0),d,VSTACK(b,c),VSTACK(FILTER("TOTAL "&Sheet2!A1:B1,Sheet2!A1:B1<>""),a+d))

    If it does what you want in the sample, we can look at making it deal with larger datasets.
    Attached Files Attached Files
    Last edited by AliGW; 09-22-2023 at 03:36 AM. Reason: Workbook updated.

  10. #10
    Registered User
    Join Date
    09-22-2015
    Location
    New Jersey
    MS-Off Ver
    Microsoft Excel 2019 (Windows 11 64-bit).
    Posts
    41

    Re: Excel formula keep fixed

    Sorry for the slow reply, I am in a different time zone and had to rest. Thanks very much! That is quite an impressive formula, I never worked with =LET before. I am using Excel 2019 to work with the Excel spreadsheet on a different computer. The Excel Version I have saved in my profile is the computer I am using currently on home computer. (I had just copied the Excel version when verifying). I think I will just save a copy of the Excel sheet1 as a backup copy (saving the formulas as text, by adding a special character in front like >=. When I need to use the Sheet1. I will copy it back to the Spreadsheet file and find/replace >= with =.

  11. #11
    Registered User
    Join Date
    09-17-2023
    Location
    Suffolk,UK
    MS-Off Ver
    Home and Office 2019
    Posts
    5

    Re: Excel formula keep fixed

    If you want you can use this formula in sheet 1 A2
    and then drag it to your other cells

    =IF(Sheet2!A2="",Sheet1!A2, IF(Sheet2!A4="", Sheet1!A2,Sheet2!A2+Sheet2!A4))

    it should work only if both cells are used in sheet 2 , but not update if 1 or both are empty cells.

  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
    81,223

    Re: Excel formula keep fixed

    I am using Excel 2019 to work with the Excel spreadsheet on a different computer.
    Then it won't work for you in Excel 2019 - sorry. Your profile whould show the version of Excel that solutions need to work for - please change it now.

  13. #13
    Registered User
    Join Date
    09-22-2015
    Location
    New Jersey
    MS-Off Ver
    Microsoft Excel 2019 (Windows 11 64-bit).
    Posts
    41

    Re: Excel formula keep fixed

    Thanks very much.

  14. #14
    Registered User
    Join Date
    09-22-2015
    Location
    New Jersey
    MS-Off Ver
    Microsoft Excel 2019 (Windows 11 64-bit).
    Posts
    41

    Re: Excel formula keep fixed

    Thanks again. I did update my profile (Excel version). I use both versions of Excel, it is good to know about newer functions like LET that i am not familiar with yet. I really appreciate all the help/effort.

  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
    81,223

    Re: Excel formula keep fixed

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  16. #16
    Registered User
    Join Date
    09-22-2015
    Location
    New Jersey
    MS-Off Ver
    Microsoft Excel 2019 (Windows 11 64-bit).
    Posts
    41

    Re: Excel formula keep fixed

    thanks I did mark as SOLVED now, and I did already click on ADD TO REPUTATION a few days agao.

  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
    81,223

    Re: Excel formula keep fixed

    So you did - thanks.

+ 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] How do i fixed the second to 00 using an excel formula?
    By lmvelasco in forum Excel General
    Replies: 8
    Last Post: 08-10-2021, 04:31 AM
  2. [SOLVED] Excel formula for yesterday and a fixed time of 22:00
    By spittingfire in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-11-2017, 06:25 PM
  3. Replies: 3
    Last Post: 08-28-2015, 11:11 AM
  4. [SOLVED] Fixed reference for column in a table formula, like $ in normal excel
    By taranaki88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-22-2013, 03:47 AM
  5. Fixed Width Text to Excel with fixed break lines.
    By jameel30 in forum Word Formatting & General
    Replies: 1
    Last Post: 08-10-2012, 08:57 PM
  6. [SOLVED] Is there any formula to calculate a fixed increase with a fixed price?
    By ec4excel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-09-2012, 12:15 PM
  7. Replies: 2
    Last Post: 11-22-2011, 12:33 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