#1   Report Post  
Posted to microsoft.public.excel.misc
ceemo
 
Posts: n/a
Default Offset and Matching


i want to pull some information from a row where two columns meet my
crieria.

If i were doing this where information in just one column matched i
would use a match() to find the data and then an offset to locate the
data i were after.

Im not sure how to do this with two colums

it almost needs to be like this

offset(A$1,match(and(B:B="AM",C:C="Whole"),0),0)


Please can you help?


--
ceemo
------------------------------------------------------------------------
ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650
View this thread: http://www.excelforum.com/showthread...hreadid=552708

  #2   Report Post  
Posted to microsoft.public.excel.misc
Jim Rech
 
Posts: n/a
Default Offset and Matching

With problems like this I sometimes cheat and create a temporary new column
with formulas like this: =B1&"XXXX"&C1, copied down, and search against
that. The "XXXX" in the middle is to prevent rows with say "A1" and "D2"
being found when I'm searching on "A" and "1D2".

--
Jim
"ceemo" wrote in
message ...
|
| i want to pull some information from a row where two columns meet my
| crieria.
|
| If i were doing this where information in just one column matched i
| would use a match() to find the data and then an offset to locate the
| data i were after.
|
| Im not sure how to do this with two colums
|
| it almost needs to be like this
|
| offset(A$1,match(and(B:B="AM",C:C="Whole"),0),0)
|
|
| Please can you help?
|
|
| --
| ceemo
| ------------------------------------------------------------------------
| ceemo's Profile:
http://www.excelforum.com/member.php...o&userid=10650
| View this thread: http://www.excelforum.com/showthread...hreadid=552708
|


  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Offset and Matching

Another way...

=index(othersheet!$c$1:$c$100,
match(1,(a2=othersheet!$a$1:$a$100)*(b2=othersheet !$b$1:$b$100),0))

(all in one cell)

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Adjust the range to match--but you can't use the whole column.

This returns the value in othersheet column C when column A and B (of
othersheet) match A2 and B2 of the sheet with the formula.

And you can add more conditions by just adding more stuff to that product
portion of the formula:

=index(othersheet!$d$1:$d$100,
match(1,(a2=othersheet!$a$1:$a$100)
*(b2=othersheet!$b$1:$b$100)
*(c2=othersheet!$c$1:$c$100),0))

ceemo wrote:

i want to pull some information from a row where two columns meet my
crieria.

If i were doing this where information in just one column matched i
would use a match() to find the data and then an offset to locate the
data i were after.

Im not sure how to do this with two colums

it almost needs to be like this

offset(A$1,match(and(B:B="AM",C:C="Whole"),0),0)

Please can you help?

--
ceemo
------------------------------------------------------------------------
ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650
View this thread: http://www.excelforum.com/showthread...hreadid=552708


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
ceemo
 
Posts: n/a
Default Offset and Matching


top draw thnx


--
ceemo
------------------------------------------------------------------------
ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650
View this thread: http://www.excelforum.com/showthread...hreadid=552708

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
Copy all records matching "Text" criteria to new worksheet StephenS Excel Worksheet Functions 3 May 15th 06 08:46 AM
Matching the min & max values for Primary and Secondary axes Neil Charts and Charting in Excel 2 March 8th 06 06:56 PM
Matching cj21 Excel Discussion (Misc queries) 15 February 9th 06 09:40 PM
Using MAX with OFFSET and MATCH Joe Gieder Excel Worksheet Functions 3 October 12th 05 11:34 PM
VLOOKUP, OFFSET, MATCH PROBLEM, HELP? Steve Excel Worksheet Functions 0 January 30th 05 10:11 PM


All times are GMT +1. The time now is 08:20 AM.

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"