+ Reply to Thread
Results 1 to 24 of 24

How to avoid formula circular references and hiding and locking the formula

  1. #1
    Registered User
    Join Date
    06-07-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    28

    How to avoid formula circular references and hiding and locking the formula

    Dear Friends & Experts,

    If we wanted to hide the formulas and lock the particulars cells ( contained with formula ) how can we do that ?

    Further, how can we avoid the circular reference permanently if an excel sheet contains more formulas , as the same effects to the accurate result .

    Herewith attached the excel sheet for your ready reference. Here I wanted make the salary structure accurately by using formulas as per the company policy and wanted to hide and lock the formulas to avoiding editing.

    Your kind reply in this regard would be highly appreciated.

    Thanks

    Attached Files Attached Files
    Last edited by Venkata Krishna; 06-21-2013 at 06:56 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: How to avoid formula circular references and hiding and locking the formula

    To lock cells and hide formula, you need to select the cell(s) and choose Format | Format cells ... | Protection Tab | tick locked and tick hidden.

    Once all the cells are locked and/or hidden, you then need to Protect the sheet with a password: Format | Protect sheet ... | choose the features you want protected and input a password.

    The circular reference is because cell F11 has the formula: =ROUND(F17*F4,0) but cell F17 has the formula: =SUM(F11:F16)


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to avoid formula circular references and hiding and locking the formula

    Hi Venkat,

    To hide & protect the formulas, format those formula cells as locked & Hidden and protect the sheet.
    For circular reference issue, see Iterative calculation under formula tab in Excel options. thanks.

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to avoid formula circular references and hiding and locking the formula

    In excel 2007, you can go to office button > excel options > formulas > iteration area.

    Maximum iterations<<<Make this from 100 to 1.

    This stop excel to gives you circular references.

    To hide your formula and lock the area.

    Highlight the range. Right cilck>>format cells>protection>check the hide option>>ok

    Then protect your whole sheet.

    (If you need some ranges to be unlocked, then highlight these>right click>protection>UNCHECK the lock option and then protect your whole sheet.)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Registered User
    Join Date
    06-07-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: How to avoid formula circular references and hiding and locking the formula

    Hi All,

    Thank you very much for your views..

    I did the same but not getting the results what I am looking for.

    When I pressed the protect sheet, the entire sheet was protected , here I wanted to protect only the formulas to avoid the editing at the same time when we enter the CTC amount it has to calculate the figures automatically as the same was fixed with Formulas.

    Hence I request you to kindly let me know whether Is there any way where we can protect the particular cells and can work on the sheet?

    If yes kindly help me out.

    Thanks

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to avoid formula circular references and hiding and locking the formula

    You need to unlock the cells which you wish to be available for editing after the protection of sheet.
    So the approach -> select entire worksheet -> format cells -> uncheck "locked"
    now select formula cells (f5-> alt +s -> f -> enter) -> format cells -> check "locked" and "hidden"
    now protect the worksheet. done

    Regards,
    DILIPandey
    <click on below * if this helps>

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to avoid formula circular references and hiding and locking the formula

    ..........................
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-07-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: How to avoid formula circular references and hiding and locking the formula

    Hi Friends,

    Thank for your efforts and time......Sorry to say that it is not working and not able to get the result what I am looking for.

    My intention is not to show the formula when press F2 and the same time no body can change or edit the formulas. But it should work like a normal excel sheet.

    is there any way to do the same in excel ?

    Thanks in advance
    Last edited by Venkata Krishna; 06-21-2013 at 05:11 AM.

  9. #9
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to avoid formula circular references and hiding and locking the formula

    You mean .. lets say you have formula in a1 as =sum(b1:b5) which produces result as 100 but when you select and press F2, you can see 100 but formula should be hidden... correct?


    Regards,
    DILIPandey
    <click on below * if this helps>

  10. #10
    Registered User
    Join Date
    06-07-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: How to avoid formula circular references and hiding and locking the formula

    Dear Dilip,

    Thank you very much for your concern.

    Herewith attached the normal sheet containing the formulas. In cell F 27 if we enter the CTC amount, the sheet will calculate fields automatically based on the percentage. Here I want the same result, though sheet was protected, I mean if we enter the CTC amount, fields should change automatically like a unprotect sheet.

    I just wanted to hide the formulas and editing should not happen for formulas by someone, as I share the same to our HR department. They will keep it as permanent template, merely they will enter the CTC amount and percentage of Bonus (which it top side on sheet) etc.

    If I can do this, that would be very useful.

    I hope you understand.

    Once again thank you very much.
    Attached Files Attached Files

  11. #11
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to avoid formula circular references and hiding and locking the formula

    I am awaiting your response to my query which I asked in post #9.

    Also, regarding
    they will enter the CTC amount and percentage of Bonus
    , I have already shown you a way - refer post #6 above.

    Hope you are not expecting that someone else will do this for you


    Regards,
    DILIPandey
    <click on below * if this helps>

  12. #12
    Registered User
    Join Date
    06-07-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: How to avoid formula circular references and hiding and locking the formula

    Hi,

    Yes, I wanted to hide the formula when press F2.

    Further, i did not get you what you have given the solution in Post 6, hence i could not get the results.

    Anyways thank your very much for you time.

    I think there would be a solution for the same I will try if i can get through friends or experts.

    Thanks a lot for every one.

  13. #13
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to avoid formula circular references and hiding and locking the formula

    sure...

    Please post that solution here as well so that others can also learn who may land up here via internet search. Thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>

  14. #14
    Registered User
    Join Date
    06-07-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: How to avoid formula circular references and hiding and locking the formula

    Hi,

    Surely if i get the solution i will do the same. I am sure our friends will provide the solution for the same here only. I will wait for the same, in mean time if get i will share the same. I am sincerely telling that I am not an expert in excel that is the reason i could not follow what you cited in post No .6.

    Best Regards,
    Venkat

  15. #15
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: How to avoid formula circular references and hiding and locking the formula

    I do not think your problems are difficult to resolve. It seems that you are struggling to effectively apply the advice and guidance that has been offered.

    You may want to consider using the Commercial Services Forum where you can pay for someone to take on the end to end task of setting up your workbook.

    http://www.excelforum.com/commercial-services/

    You will need to pay for points which you can allocate to an individual who agrees to resolve the problem.

    Regards, TMS


    PS: if you are not going to pursue this thread here, you might consider marking it Solved.


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  16. #16
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: How to avoid formula circular references and hiding and locking the formula

    Quote Originally Posted by Venkata Krishna View Post
    ....

    My intention is not to show the formula when press F2 and the same time no body can change or edit the formulas. But it should work like a normal excel sheet.

    is there any way to do the same in excel ?

    Thanks in advance
    yr solution is in post#2 and #3
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  17. #17
    Registered User
    Join Date
    06-07-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: How to avoid formula circular references and hiding and locking the formula

    Dear all,

    I got it, thanks a lot for every one.

    Regards,
    Venkat

  18. #18
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: How to avoid formula circular references and hiding and locking the formula

    how did u got it?

  19. #19
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to avoid formula circular references and hiding and locking the formula

    Quote Originally Posted by john55 View Post
    how did u got it?
    why are you so curious? Don't be..!

  20. #20
    Registered User
    Join Date
    06-07-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: How to avoid formula circular references and hiding and locking the formula

    Hi John,

    I followed the solution mentioned in post 2 & 3 as it is.

    Actually it is a easy logic, somehow i could not follow correctly.

    Thanks to every one.

  21. #21
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: How to avoid formula circular references and hiding and locking the formula

    Quote Originally Posted by Fotis1991 View Post
    why are you so curious? Don't be..!
    )) sorry for being so curious! but I did not like the comment of post#12, is unfair, the OP rcvd solution(s).

  22. #22
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to avoid formula circular references and hiding and locking the formula

    Cheers



    Regards,
    DILIPandey
    <click on below * if this helps>

  23. #23
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to avoid formula circular references and hiding and locking the formula

    ........................

  24. #24
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: How to avoid formula circular references and hiding and locking the formula

    You're welcome. Thanks for the rep.


    I'm glad you were able to work it out. It's always best when you understand how your spreadsheet works.

    Regards, TMS

+ 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