R
Rich
=OFFSET(MATCH(i2,sheet2!$i:$i,0),1,-3)
is giving me an error... I cant see why..
is giving me an error... I cant see why..
Bob Phillips said:Rich,
Look up OFFSET in help, you seem to be using it incorrectly. The arguments
are
OFFSET(reference,rows,cols,height,width)
Reference is the reference from which you want to base the offset.
Reference must be a reference to a cell or range of adjacent cells;
otherwise, OFFSET returns the #VALUE! error value.
Rows is the number of rows, up or down, that you want the upper-left cell
to refer to. Using 5 as the rows argument specifies that the upper-left cell
in the reference is five rows below reference. Rows can be positive (which
means below the starting reference) or negative (which means above the
starting reference).
Cols is the number of columns, to the left or right, that you want the
upper-left cell of the result to refer to. Using 5 as the cols argument
specifies that the upper-left cell in the reference is five columns to the
right of reference. Cols can be positive (which means to the right of the
starting reference) or negative (which means to the left of the starting
reference).
If rows and cols offset reference over the edge of the worksheet, OFFSET
returns the #REF! error value.
Height is the height, in number of rows, that you want the returned
reference to be. Height must be a positive number.
Width is the width, in number of columns, that you want the returned
reference to be. Width must be a positive number.
--
HTH
Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
Rich said:I'm trying to use the MATCH function to find the cell I wish to reference
from. I had looked at the help on both. I'm comfortable with OFFSET, it
works perfectly when I give it a cell to reference, but I need to find a
customer number from a list, then use OFFSET to find the sales for that
customer.
I was adapting an answer given to me yesterday by Max...
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.