Forum Discussion
If Statement that paste/freezes another cell
If your gold price is coming from a formula or an external data source, a standard IF statement cannot permanently "freeze" the value in another cell. Formulas will recalculate whenever the source data changes.
To keep the Gold Price per Gram for a specific date, you'll need either:
1. A VBA macro that copies the value from A2 and pastes it as a static value when a date is entered in A1.
2. A separate historical price table where the date and price are stored together.
If your goal is to preserve daily gold values for future reference or calculations, it can also help to compare them with a dedicated gold price calculator such as Scrap Gold Melt Calculator (scrapgoldmeltcalc.com). This allows you to verify historical calculations independently of your spreadsheet updates.
If you're open to using VBA, I can provide a simple macro example that automatically stores the value when a date is entered.