+ Reply to Thread
Results 1 to 9 of 9

How Do I Override a Value In the Following Situation

  1. #1
    Registered User
    Join Date
    10-01-2019
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    73

    How Do I Override a Value In the Following Situation

    I don't know how to give a proper description to this problem. Attached is a workbook I created. The ask is when the client receives the workbook, they need to be able to enter in a hardcoded number in sheet "Client" cells B2:B3. When they enter a number into B2:B3, the values on sheet "Employee" cells B2:B3 need to update to these hardcoded values. The issue is that cells B2:B3 in "Client" rely on cells B2:B3 in "Employee." The client cannot touch the "Employee" sheet whatsoever. I was also told I am not allowed to create another sheet that will be hidden and it all needs to come from these two sheets. Any idea?
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: How Do I Override a Value In the Following Situation

    Suppose you allow the client to put an over-riding value in cells H2 or H3 of the client sheet. Then you can use this formula in B2:

    =IF(H2="",Employee!B2,H2)

    so that if the override is empty then B2 will show the value from B2 in the Employee sheet, otherwise it will show the value from H2. The cells where the formulae exist (i.e. columns A and B), can be protected so that they can't be changed, and the cells H2 and H3 can be unprotected to allow a user to enter values in them.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    10-01-2019
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    73

    Re: How Do I Override a Value In the Following Situation

    I appreciate it, however, the overriding value needs to be in B2. There is no way around it based on my supervisor's ask. Do you have an alternative to enable this to work?

  4. #4
    Registered User
    Join Date
    10-01-2019
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    73

    Re: How Do I Override a Value In the Following Situation

    Also, how would this change the Employee sheet?

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: How Do I Override a Value In the Following Situation

    You can't have both a formula and a value in a cell.

    Pete

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How Do I Override a Value In the Following Situation

    The only way to do this is with macros. Will your supervisor allow that? Incidentally, how do the values in Employee get entered in the first place?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  7. #7
    Registered User
    Join Date
    10-01-2019
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    73

    Re: How Do I Override a Value In the Following Situation

    My supervisor will allow macros. The values in Employee get entered by the analysts. The point of the Client tab is to allow clients to enter in different scenarios.

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How Do I Override a Value In the Following Situation

    This version will keep the two values in sync. If you update a value on either sheet, it will be updated on the other sheet.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    10-01-2019
    Location
    Miami, Florida
    MS-Off Ver
    2016
    Posts
    73

    Re: How Do I Override a Value In the Following Situation

    Thank you so much! This worked splendidly. Just to learn, is there a way to do this if the target addresses weren't the same? Like, if you index the unique key and it pulls the address somehow? Also, thanks for teaching me the workbook change event method! Looked through the code and it is very informative.

+ 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. Help with an if/then situation
    By Lamont15 in forum Excel General
    Replies: 3
    Last Post: 07-15-2018, 04:59 PM
  2. Need Help in this situation
    By AOG_excel in forum Excel General
    Replies: 4
    Last Post: 07-26-2016, 03:49 AM
  3. Using EVALUATE - is this the right situation?
    By m1notaur in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2016, 04:18 PM
  4. #N/A situation
    By bnwash in forum Excel General
    Replies: 5
    Last Post: 07-18-2007, 04:03 AM
  5. Can I use this situation?
    By tonyrice in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-22-2007, 12:57 PM
  6. Nested IF in this situation
    By Cossminnn in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-20-2006, 06:50 AM
  7. [SOLVED] need help with a If=then situation.
    By FireBrick in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-02-2005, 11:06 AM

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