C
Chuck
I'm attempting to use the MATCH and OFFSET functions (but
certainly open to using others) to return a value based
on a certain condition. An example:
1Q04 2Q04 3Q04E
Revenue 100 110 120
Op. Ex. 90 95 100
Profit 10 15 20
I want to, for example, return 15 (Profit in 2Q04)
subject to the condition that 3Q04 has an E at the end
(thus the need for the OFFSET function) and I am
interested in the Profit row. I have attempted to use
the following formula, but need to pull a value from the
column to the left of 3Q04E. Have tried to use the RIGHT
function in the formula, but no luck so far. Ideas?
Thanks.
=OFFSET(Sheet2!$A$1,MATCH(A1,Sheet2!$A$1:$A$4,0)+1,MATCH
(B1,Sheet2!$A$1:$D$1,0)-2)
certainly open to using others) to return a value based
on a certain condition. An example:
1Q04 2Q04 3Q04E
Revenue 100 110 120
Op. Ex. 90 95 100
Profit 10 15 20
I want to, for example, return 15 (Profit in 2Q04)
subject to the condition that 3Q04 has an E at the end
(thus the need for the OFFSET function) and I am
interested in the Profit row. I have attempted to use
the following formula, but need to pull a value from the
column to the left of 3Q04E. Have tried to use the RIGHT
function in the formula, but no luck so far. Ideas?
Thanks.
=OFFSET(Sheet2!$A$1,MATCH(A1,Sheet2!$A$1:$A$4,0)+1,MATCH
(B1,Sheet2!$A$1:$D$1,0)-2)