#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default OFFSET Problems

Here is a formula which returns an error message:

=OFFSET((ADDRESS(ROW(O2),MATCH(O2,A2:K2,0),,false) ,1,2)

I am trying to return the value of a cell two columns over from where it
found the MATCH. The MATCH function works, as does the ROW and ADDRESS
functions. But when I add the OFFSET portion, I get the generic error message.

Any help or alternate approaches appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default OFFSET Problems

Sounds liek you might want

=OFFSET((ADDRESS(ROW(O2),MATCH(O2,A2:K2,0),,false) ,0,2)

Else, you're moving one row down...

"John V" wrote:

Here is a formula which returns an error message:

=OFFSET((ADDRESS(ROW(O2),MATCH(O2,A2:K2,0),,false) ,1,2)

I am trying to return the value of a cell two columns over from where it
found the MATCH. The MATCH function works, as does the ROW and ADDRESS
functions. But when I add the OFFSET portion, I get the generic error message.

Any help or alternate approaches appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default OFFSET Problems

Sean, you are correct. I was thrashing around when I specified 1 for Row.

Sadly, that too generates an error message. The function wizard says the
ADDRESS function evaluates to {$F$2}. Perhaps the problem is that ADDRESS
returns an array??

"Sean Timmons" wrote:

Sounds liek you might want

=OFFSET((ADDRESS(ROW(O2),MATCH(O2,A2:K2,0),,false) ,0,2)

Else, you're moving one row down...

"John V" wrote:

Here is a formula which returns an error message:

=OFFSET((ADDRESS(ROW(O2),MATCH(O2,A2:K2,0),,false) ,1,2)

I am trying to return the value of a cell two columns over from where it
found the MATCH. The MATCH function works, as does the ROW and ADDRESS
functions. But when I add the OFFSET portion, I get the generic error message.

Any help or alternate approaches appreciated.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default OFFSET Problems

It's not real clear what you want...

two columns over from where it found the MATCH.


So, if a MATCH is found in K2 return the value from M2?

If that's the case try this:

=INDEX(A2:M2,MATCH(O2,A2:K2,0)+2)


--
Biff
Microsoft Excel MVP


"John V" wrote in message
...
Here is a formula which returns an error message:

=OFFSET((ADDRESS(ROW(O2),MATCH(O2,A2:K2,0),,false) ,1,2)

I am trying to return the value of a cell two columns over from where it
found the MATCH. The MATCH function works, as does the ROW and ADDRESS
functions. But when I add the OFFSET portion, I get the generic error
message.

Any help or alternate approaches appreciated.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUM & OFFSET KevinE via OfficeKB.com Excel Worksheet Functions 1 February 17th 09 01:10 PM
Offset/COUNTA problems [email protected] Excel Worksheet Functions 4 June 17th 08 03:22 PM
Compare Cell Values, Offset(-1,0), Offset(-1,-1), and xlFillDefaul RyGuy Excel Worksheet Functions 2 September 28th 07 10:54 PM
Problems with offset/average formula GaryC Excel Worksheet Functions 8 March 15th 06 07:14 PM
Problems copying cells using offset and counta hlckom Excel Discussion (Misc queries) 4 January 30th 05 12:49 AM


All times are GMT +1. The time now is 02:38 AM.

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

About Us

"It's about Microsoft Excel"