Has Microsoft given us a 'COPY_VALUE_TO' function?
I can't find it (please excuse me, we all have bad days), but I'm not alone.
Googling this problem is a classic nightmare of dead ends for all the poor sods out there that have tried their best to formulate this question.
I've spent an entire evening reading responses that never answered the OP's question.
As a result, I'm just hoping I've done a good enough job on formulating my question.
I'm also thinking about the tags, because this is a question that needs answering.
If the solution can be found, hopefully the tags and the title will help everybody that follows.
Here's the problem:
A Calculation Utility - enter basic data to gain (at least) a two column output
Column 1: 1 - 100 (%)
Column 2: Value per increment
The 100 row sheet has 3 different calculation formulas, that function according to IF OR.
On 'condition met', the final value of the previous phase (around row 36) must(?) be saved to an absolute reference cell.
This so it can be used in the next calculation phase.
Contents of AF (output column)
Current state - this clearly doesn't work, but highlights the problem.
AF35=IF(OR(R35<0),((S35*U35)+AF34),(AB35-(AD35*R35)))
AF36=IF(OR(R36<0),((S36*U36)+AF35),(AB36-(AD36*R36))) Final value
AF37=IF(OR(R37<0),((S37*U37)+AF36),(AB37-(AD37*R37))) Condition met - Correct (adds AF36 value)
AF38=IF(OR(R38<0),((S38*U38)+AF37),(AB38-(AD38*R38))) Condition met - Incorrect (adds AF37 value)
Here is a lovely solution, if the 'COPY VALUE TO' function exists
Using a single repository cell $ZZ$1.
AF35=IF(OR(R35<0),((S35*U35)+$ZZ$1),((AB35-(AD35*R35))COPY_VALUE_TO $ZZ$1))
AF36=IF(OR(R36<0),((S36*U36)+$ZZ$1),((AB36-(AD36*R36))COPY_VALUE_TO $ZZ$1))
AF37=IF(OR(R37<0),((S37*U37)+$ZZ$1),((AB37-(AD37*R37))COPY_VALUE_TO $ZZ$1)) condition met - Correct (adds AF36 value)
AF38=IF(OR(R38<0),((S38*U38)+$ZZ$1),((AB38-(AD38*R38))COPY_VALUE_TO $ZZ$1)) condition met - Correct (adds AF36 value)
Something like this would ensure that the final value in ZZ1 would be always be that of AF36.
It would also ensure that the AF column would advance incrementally at whatever point the calculation changeover occurs.
If this is a neat way of solving this problem, does anybody know a neat way of writing:
((AB37-(AD37*R37))COPY VALUE TO $ZZ$1))
There will be 'one more' similar change around row 75, but primarily I'd like to see how this problem can be fundamentally solved, to provide a definitive solution, both for me, and for everybody else that follows.
We'll deal with any complex nesting required when I've figured out how the 3rd and final set of calculations need to function.
![]()
Bookmarks