Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Joe Gieder
 
Posts: n/a
Default Formula Help With MATCH & OFFSET

I'm trying to write a formula using OFFSET & MATCH to fill in another cell.
What I want to do is OFFSET I19, MATCH I8&BM1 to cells I19:I445&AK19:AK445
but if the adjacent cell in column BC says "Yes" don't use it and skip to the
next match (there will be another cell that matches without Yes). I came up
with this formula but it doesn't work, the result is blank.

Quoted = BC1:BC445
Array Entered:
=IF(ISNA(OFFSET($I$19,MATCH($I8&BM$1,$I$19:$I$445& $AK$19:$AK$445&Quoted<"Yes",0)-1,18,-1,-1)),0,OFFSET($I$19,MATCH($I8&BM$1,$I$19:$I$445&$AK $19:$AK$445&Quoted<"Yes",0)-1,18,-1,-1))

If I take out the Quoted<"Yes" it finds the first match but sometimes cell
BCxx says Yes and that's the wrong result.

I hope I wasn't too confussing.
Thanks for your help
Joe
  #2   Report Post  
dave
 
Posts: n/a
Default

It would be easier to understand with a concrete example
in english, but I'll take a guess - I think you're trying
to look up a concatenation of 2 cells (i8 & bm1) on
another list, but you want to look up the individual
pieces of the concatenation on a separate array.

for ex:

look up "a"[i8] concatenated with "b"[bm1], on 2 arrays,
one of which might contain "a" and another of which might
contain "b". A third array will contain either "yes"
or "no". only use reference of match if 3rd array
contains "no"

Then you want to offset from a given cell reference by the
returned match number.

Does this sound right?

I'm not sure if the match can work with the & as you were
using it, but I'd add one more column to your data, which
concatenates all 3 arrays into one.
....


I put these into a1 thru E7:

array 1 array 2 array 3 concatenate start
other other no otherotherno 1 away
look meup Yes lookmeupYes 2 away
other other Yes otherotherYes 3 away
look meup no lookmeupno 4 away
other other Yes otherotherYes 5 away
other other no otherotherno 6 away

=OFFSET(E1,MATCH(M15&M16&"no",$D$2:$D$7,0),0,1,1)
this formula results in offseting from "start" by 4, which
is the row number where "lookmeupno" is found.


hth,
Dave


then this formula will find location(row # in this case)
of match only when there is a no in the same row:





-----Original Message-----
I'm trying to write a formula using OFFSET & MATCH to

fill in another cell.
What I want to do is OFFSET I19, MATCH I8&BM1 to cells

I19:I445&AK19:AK445
but if the adjacent cell in column BC says "Yes" don't

use it and skip to the
next match (there will be another cell that matches

without Yes). I came up
with this formula but it doesn't work, the result is

blank.

Quoted = BC1:BC445
Array Entered:
=IF(ISNA(OFFSET($I$19,MATCH

($I8&BM$1,$I$19:$I$445&$AK$19:$AK$445&Quoted<"Yes ",0)-
1,18,-1,-1)),0,OFFSET($I$19,MATCH
($I8&BM$1,$I$19:$I$445&$AK$19:$AK$445&Quoted<"Yes ",0)-
1,18,-1,-1))

If I take out the Quoted<"Yes" it finds the first match

but sometimes cell
BCxx says Yes and that's the wrong result.

I hope I wasn't too confussing.
Thanks for your help
Joe
.

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
Help! 401k match formula JK New Users to Excel 3 February 8th 05 04:09 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Offset & Match Formula Shows Duplicates Joe Gieder Excel Worksheet Functions 14 December 7th 04 05:35 PM
Offset, indirect, match function limitation on linked worksheets. NewAlgier Excel Worksheet Functions 1 December 6th 04 11:55 PM
how to build a formula to match numbers in 2 columns with the equ. mcdilash Excel Worksheet Functions 1 November 10th 04 05:31 PM


All times are GMT +1. The time now is 07:26 PM.

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

About Us

"It's about Microsoft Excel"