Forum Discussion

Clint_E_Hill's avatar
Clint_E_Hill
Brass Contributor
Oct 09, 2023
Solved

Calculated Cell and Manual Entry Override

A newbie  asks how to programmatically allow a manual entry as an override in a cell that otherwise contains a XLOOKUP formula that pulls an item cost from another worksheet?   Thanks!  
  • HansVogelaar's avatar
    Oct 09, 2023

    Clint_E_Hill 

    If the worksheet has not been protected, the user can simply enter a value in a cell with a formula. It will overwrite the formula. Once other changes have been applied, the formula cannot be recovered except by entering it again.

    I would prefer to use a separate cell for the manual override:

    Column B contains XLOOKUP formulas to look up the price for each product in a list on another sheet.

    The user can enter a price in column C. If so, that price is used, otherwise the lookup price is used.

    The formula in D2 is =IF(C2="",B2,C2)

Resources