A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

OFFSET and MATCH functions for cells



 
 
Thread Tools Display Modes
  #1  
Old June 23rd, 2009, 05:06 PM posted to microsoft.public.excel.worksheet.functions
Neecy
external usenet poster
 
Posts: 4
Default OFFSET and MATCH functions for cells

I have a spreadsheet and reference file in which I am attempting to import
the values of a cell from the reference file into the cell of the spreadsheet
template. For testing purposes, I setup the script below on the reference
file and tested.

=OFFSET($A$15,MATCH(P16,$C$16:$C$28,0),MATCH(Q16,$ A$16:$A$28,0),MATCH(T16,$F$16:$F$28,0),1).

Most of the values imported over as should with the exception of a few that
showed #VALUE!
This is the cell/column values from the initial cell showed as followed:

CATEGORY CATEGORY PLANT
TO QUANTITY DATE FROM CODE BUILDER
RUB 4560 6/8/2009 ARB USA8 1
RUB 3154 6/8/2009 ARB USA8 2
ATB 203 6/8/2009 ARB USA8 2
RUB 4218 6/9/2009 ARB USA8 1
RUB 2660 6/9/2009 ARB USA8 2
ATB 106 6/9/2009 ARB USA8 2

This is the value from the cells I am trying to match showed as followed:
DATE CATEGORY CATEGORY
TO QUANTITY FROM BUILDER
6/8/2009 RUB 4560 ARB 1
6/8/2009 RUB 3154 ARB 2
6/8/2009 ATB 203 ARB 2
6/9/2009 RUB 4218 ARB 1
6/9/2009 RUB 2660 ARB 2
6/9/2009 ATB #VALUE! ARB 2

What am I doing wrong? Also, need to be able to use up to 6 MATCH functions
in each script and am only able to use 4 before I receive and error that says
too many arguements are used. From my understanding, I should be able to use
up to 7 MATCH functions in a script. Is this correct, and if so, please tell
me how.

Thanks-

  #2  
Old June 23rd, 2009, 07:55 PM posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
external usenet poster
 
Posts: 2,496
Default OFFSET and MATCH functions for cells

Neecy,

Also, need to be able to use up to 6 MATCH functions
in each script and am only able to use 4 before I receive and error that says
too many arguements are used. From my understanding, I should be able to use
up to 7 MATCH functions in a script. Is this correct, and if so, please tell
me how.


You can use as many MATCH functions as you want, within the limits of formula length and the number
of arguments allowed by the parent function: Offset takes 5 arguments:

OFFSET(reference,rows,cols,height,width)

You will only be able to use 4 MATCH functions - since MATCH returns a number, it would only be
useful for rows, cols, height, and width.

The #VALUE! probably means that your third MATCH function is returning a number greater than 1, in
which case you would need to array enter your formula into multiple cells.

HTH,
Bernie
MS Excel MVP


"Neecy" wrote in message
...
I have a spreadsheet and reference file in which I am attempting to import
the values of a cell from the reference file into the cell of the spreadsheet
template. For testing purposes, I setup the script below on the reference
file and tested.

=OFFSET($A$15,MATCH(P16,$C$16:$C$28,0),MATCH(Q16,$ A$16:$A$28,0),MATCH(T16,$F$16:$F$28,0),1).

Most of the values imported over as should with the exception of a few that
showed #VALUE!
This is the cell/column values from the initial cell showed as followed:

CATEGORY CATEGORY PLANT
TO QUANTITY DATE FROM CODE BUILDER
RUB 4560 6/8/2009 ARB USA8 1
RUB 3154 6/8/2009 ARB USA8 2
ATB 203 6/8/2009 ARB USA8 2
RUB 4218 6/9/2009 ARB USA8 1
RUB 2660 6/9/2009 ARB USA8 2
ATB 106 6/9/2009 ARB USA8 2

This is the value from the cells I am trying to match showed as followed:
DATE CATEGORY CATEGORY
TO QUANTITY FROM BUILDER
6/8/2009 RUB 4560 ARB 1
6/8/2009 RUB 3154 ARB 2
6/8/2009 ATB 203 ARB 2
6/9/2009 RUB 4218 ARB 1
6/9/2009 RUB 2660 ARB 2
6/9/2009 ATB #VALUE! ARB 2

What am I doing wrong? Also, need to be able to use up to 6 MATCH functions
in each script and am only able to use 4 before I receive and error that says
too many arguements are used. From my understanding, I should be able to use
up to 7 MATCH functions in a script. Is this correct, and if so, please tell
me how.

Thanks-



  #3  
Old June 23rd, 2009, 08:25 PM posted to microsoft.public.excel.worksheet.functions
Neecy
external usenet poster
 
Posts: 4
Default OFFSET and MATCH functions for cells

Thanks Bernie-

How do I array enter my formula into multiple cells?

"Bernie Deitrick" wrote:

Neecy,

Also, need to be able to use up to 6 MATCH functions
in each script and am only able to use 4 before I receive and error that says
too many arguements are used. From my understanding, I should be able to use
up to 7 MATCH functions in a script. Is this correct, and if so, please tell
me how.


You can use as many MATCH functions as you want, within the limits of formula length and the number
of arguments allowed by the parent function: Offset takes 5 arguments:

OFFSET(reference,rows,cols,height,width)

You will only be able to use 4 MATCH functions - since MATCH returns a number, it would only be
useful for rows, cols, height, and width.

The #VALUE! probably means that your third MATCH function is returning a number greater than 1, in
which case you would need to array enter your formula into multiple cells.

HTH,
Bernie
MS Excel MVP


"Neecy" wrote in message
...
I have a spreadsheet and reference file in which I am attempting to import
the values of a cell from the reference file into the cell of the spreadsheet
template. For testing purposes, I setup the script below on the reference
file and tested.

=OFFSET($A$15,MATCH(P16,$C$16:$C$28,0),MATCH(Q16,$ A$16:$A$28,0),MATCH(T16,$F$16:$F$28,0),1).

Most of the values imported over as should with the exception of a few that
showed #VALUE!
This is the cell/column values from the initial cell showed as followed:

CATEGORY CATEGORY PLANT
TO QUANTITY DATE FROM CODE BUILDER
RUB 4560 6/8/2009 ARB USA8 1
RUB 3154 6/8/2009 ARB USA8 2
ATB 203 6/8/2009 ARB USA8 2
RUB 4218 6/9/2009 ARB USA8 1
RUB 2660 6/9/2009 ARB USA8 2
ATB 106 6/9/2009 ARB USA8 2

This is the value from the cells I am trying to match showed as followed:
DATE CATEGORY CATEGORY
TO QUANTITY FROM BUILDER
6/8/2009 RUB 4560 ARB 1
6/8/2009 RUB 3154 ARB 2
6/8/2009 ATB 203 ARB 2
6/9/2009 RUB 4218 ARB 1
6/9/2009 RUB 2660 ARB 2
6/9/2009 ATB #VALUE! ARB 2

What am I doing wrong? Also, need to be able to use up to 6 MATCH functions
in each script and am only able to use 4 before I receive and error that says
too many arguements are used. From my understanding, I should be able to use
up to 7 MATCH functions in a script. Is this correct, and if so, please tell
me how.

Thanks-




  #4  
Old June 23rd, 2009, 08:25 PM posted to microsoft.public.excel.worksheet.functions
Neecy
external usenet poster
 
Posts: 4
Default OFFSET and MATCH functions for cells

Thanks Bernie-
How do I array enter my formula into multiple cells?

Neecy

"Bernie Deitrick" wrote:

Neecy,

Also, need to be able to use up to 6 MATCH functions
in each script and am only able to use 4 before I receive and error that says
too many arguements are used. From my understanding, I should be able to use
up to 7 MATCH functions in a script. Is this correct, and if so, please tell
me how.


You can use as many MATCH functions as you want, within the limits of formula length and the number
of arguments allowed by the parent function: Offset takes 5 arguments:

OFFSET(reference,rows,cols,height,width)

You will only be able to use 4 MATCH functions - since MATCH returns a number, it would only be
useful for rows, cols, height, and width.

The #VALUE! probably means that your third MATCH function is returning a number greater than 1, in
which case you would need to array enter your formula into multiple cells.

HTH,
Bernie
MS Excel MVP


"Neecy" wrote in message
...
I have a spreadsheet and reference file in which I am attempting to import
the values of a cell from the reference file into the cell of the spreadsheet
template. For testing purposes, I setup the script below on the reference
file and tested.

=OFFSET($A$15,MATCH(P16,$C$16:$C$28,0),MATCH(Q16,$ A$16:$A$28,0),MATCH(T16,$F$16:$F$28,0),1).

Most of the values imported over as should with the exception of a few that
showed #VALUE!
This is the cell/column values from the initial cell showed as followed:

CATEGORY CATEGORY PLANT
TO QUANTITY DATE FROM CODE BUILDER
RUB 4560 6/8/2009 ARB USA8 1
RUB 3154 6/8/2009 ARB USA8 2
ATB 203 6/8/2009 ARB USA8 2
RUB 4218 6/9/2009 ARB USA8 1
RUB 2660 6/9/2009 ARB USA8 2
ATB 106 6/9/2009 ARB USA8 2

This is the value from the cells I am trying to match showed as followed:
DATE CATEGORY CATEGORY
TO QUANTITY FROM BUILDER
6/8/2009 RUB 4560 ARB 1
6/8/2009 RUB 3154 ARB 2
6/8/2009 ATB 203 ARB 2
6/9/2009 RUB 4218 ARB 1
6/9/2009 RUB 2660 ARB 2
6/9/2009 ATB #VALUE! ARB 2

What am I doing wrong? Also, need to be able to use up to 6 MATCH functions
in each script and am only able to use 4 before I receive and error that says
too many arguements are used. From my understanding, I should be able to use
up to 7 MATCH functions in a script. Is this correct, and if so, please tell
me how.

Thanks-




  #5  
Old June 23rd, 2009, 10:47 PM posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
external usenet poster
 
Posts: 2,496
Default OFFSET and MATCH functions for cells

Neecy,

Select multiple cells - say, 2 or 3 or 4 cells within one column - and then
to enter your formula press Ctrl-Shift-Enter instead of just Enter. If you
do it correctly, Excel will enclose your formula inside curly braces { },
and you will not be able to edit just one cell - you need to edit all four
cells at once.

HTH,
Bernie
MS Excel MVP

"Neecy" wrote in message
news
Thanks Bernie-

How do I array enter my formula into multiple cells?

"Bernie Deitrick" wrote:

Neecy,

Also, need to be able to use up to 6 MATCH functions
in each script and am only able to use 4 before I receive and error
that says
too many arguements are used. From my understanding, I should be able
to use
up to 7 MATCH functions in a script. Is this correct, and if so,
please tell
me how.


You can use as many MATCH functions as you want, within the limits of
formula length and the number
of arguments allowed by the parent function: Offset takes 5 arguments:

OFFSET(reference,rows,cols,height,width)

You will only be able to use 4 MATCH functions - since MATCH returns a
number, it would only be
useful for rows, cols, height, and width.

The #VALUE! probably means that your third MATCH function is returning a
number greater than 1, in
which case you would need to array enter your formula into multiple
cells.

HTH,
Bernie
MS Excel MVP


"Neecy" wrote in message
...
I have a spreadsheet and reference file in which I am attempting to
import
the values of a cell from the reference file into the cell of the
spreadsheet
template. For testing purposes, I setup the script below on the
reference
file and tested.

=OFFSET($A$15,MATCH(P16,$C$16:$C$28,0),MATCH(Q16,$ A$16:$A$28,0),MATCH(T16,$F$16:$F$28,0),1).

Most of the values imported over as should with the exception of a few
that
showed #VALUE!
This is the cell/column values from the initial cell showed as
followed:

CATEGORY CATEGORY PLANT
TO QUANTITY DATE FROM CODE BUILDER
RUB 4560 6/8/2009 ARB USA8 1
RUB 3154 6/8/2009 ARB USA8 2
ATB 203 6/8/2009 ARB USA8 2
RUB 4218 6/9/2009 ARB USA8 1
RUB 2660 6/9/2009 ARB USA8 2
ATB 106 6/9/2009 ARB USA8 2

This is the value from the cells I am trying to match showed as
followed:
DATE CATEGORY CATEGORY
TO QUANTITY FROM BUILDER
6/8/2009 RUB 4560 ARB 1
6/8/2009 RUB 3154 ARB 2
6/8/2009 ATB 203 ARB 2
6/9/2009 RUB 4218 ARB 1
6/9/2009 RUB 2660 ARB 2
6/9/2009 ATB #VALUE! ARB 2

What am I doing wrong? Also, need to be able to use up to 6 MATCH
functions
in each script and am only able to use 4 before I receive and error
that says
too many arguements are used. From my understanding, I should be able
to use
up to 7 MATCH functions in a script. Is this correct, and if so,
please tell
me how.

Thanks-





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:20 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.