Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ellen G.
 
Posts: n/a
Default find a value at an intersection?

I have the following data:

I need to lookup the part number and trancode in Worksheet2 and return the
quantity to worksheet1.

Worksheet1
A B C D E F G H I J
TraneCodes 2 6 8 12 28 36 54
60........................
1 PART NUMBER
2 003-0623-00
3 005-0030-00
4 005-0168-00
5 005-0320-00
6 005-0420-00
7 005-0539-00
8 005-0798-01
9 005-7013-00


Worksheet2:

A B C D
1 Part# TranCode RecvPlt Qty
2 003-0018-01 28 7 10
3 003-0018-01 40 7 10
4 003-0021-00 8 54 25
5 003-0021-04 4 63
6 003-0021-04 6 11 66
7 003-0021-04 11 1
8 003-0059-00 4 649
9 003-0059-00 22 22


  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default find a value at an intersection?

=IF(ISNA(MATCH(1,(Sheet1!$A2=Sheet2!$A$1:$A$9)*(B$ 1=Sheet2!$B$2:$B$9),0)),""
,INDEX(Sheet2!$B$1:$B$9,MATCH(1,(Sheet1!$A2=Sheet2 !$A$1:$A$9)*(B$1=Sheet2!$B
$2:$B$9),0)))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

copy down and across, but I get no matches with your data.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Ellen G." wrote in message
...
I have the following data:

I need to lookup the part number and trancode in Worksheet2 and return the
quantity to worksheet1.

Worksheet1
A B C D E F G H I

J
TraneCodes 2 6 8 12 28 36 54
60........................
1 PART NUMBER
2 003-0623-00
3 005-0030-00
4 005-0168-00
5 005-0320-00
6 005-0420-00
7 005-0539-00
8 005-0798-01
9 005-7013-00


Worksheet2:

A B C D
1 Part# TranCode RecvPlt Qty
2 003-0018-01 28 7 10
3 003-0018-01 40 7 10
4 003-0021-00 8 54 25
5 003-0021-04 4 63
6 003-0021-04 6 11 66
7 003-0021-04 11 1
8 003-0059-00 4 649
9 003-0059-00 22 22




  #3   Report Post  
Posted to microsoft.public.excel.misc
Ellen G.
 
Posts: n/a
Default find a value at an intersection?

Thank Bob - This doesn't reference my quantity column though?
I need it to return the quantity of parts when both conditions agree.

"Bob Phillips" wrote:

=IF(ISNA(MATCH(1,(Sheet1!$A2=Sheet2!$A$1:$A$9)*(B$ 1=Sheet2!$B$2:$B$9),0)),""
,INDEX(Sheet2!$B$1:$B$9,MATCH(1,(Sheet1!$A2=Sheet2 !$A$1:$A$9)*(B$1=Sheet2!$B
$2:$B$9),0)))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

copy down and across, but I get no matches with your data.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Ellen G." wrote in message
...
I have the following data:

I need to lookup the part number and trancode in Worksheet2 and return the
quantity to worksheet1.

Worksheet1
A B C D E F G H I

J
TraneCodes 2 6 8 12 28 36 54
60........................
1 PART NUMBER
2 003-0623-00
3 005-0030-00
4 005-0168-00
5 005-0320-00
6 005-0420-00
7 005-0539-00
8 005-0798-01
9 005-7013-00


Worksheet2:

A B C D
1 Part# TranCode RecvPlt Qty
2 003-0018-01 28 7 10
3 003-0018-01 40 7 10
4 003-0021-00 8 54 25
5 003-0021-04 4 63
6 003-0021-04 6 11 66
7 003-0021-04 11 1
8 003-0059-00 4 649
9 003-0059-00 22 22





  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default find a value at an intersection?

My mistake

=IF(ISNA(MATCH(1,(Sheet1!$A2=Sheet2!$A$1:$A$9)*(B$ 1=Sheet2!$B$2:$B$9),0)),""
,INDEX(Sheet2!$D$1:$D$9,MATCH(1,(Sheet1!$A2=Sheet2 !$A$1:$A$9)*(B$1=Sheet2!$B
$2:$B$9),0)))


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Ellen G." wrote in message
...
Thank Bob - This doesn't reference my quantity column though?
I need it to return the quantity of parts when both conditions agree.

"Bob Phillips" wrote:


=IF(ISNA(MATCH(1,(Sheet1!$A2=Sheet2!$A$1:$A$9)*(B$ 1=Sheet2!$B$2:$B$9),0)),""

,INDEX(Sheet2!$B$1:$B$9,MATCH(1,(Sheet1!$A2=Sheet2 !$A$1:$A$9)*(B$1=Sheet2!$B
$2:$B$9),0)))

which is an array formula, it should be committed with Ctrl-Shift-Enter,

not
just Enter.

copy down and across, but I get no matches with your data.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Ellen G." wrote in message
...
I have the following data:

I need to lookup the part number and trancode in Worksheet2 and return

the
quantity to worksheet1.

Worksheet1
A B C D E F G H I

J
TraneCodes 2 6 8 12 28 36 54
60........................
1 PART NUMBER
2 003-0623-00
3 005-0030-00
4 005-0168-00
5 005-0320-00
6 005-0420-00
7 005-0539-00
8 005-0798-01
9 005-7013-00


Worksheet2:

A B C D
1 Part# TranCode RecvPlt Qty
2 003-0018-01 28 7 10
3 003-0018-01 40 7 10
4 003-0021-00 8 54 25
5 003-0021-04 4 63
6 003-0021-04 6 11 66
7 003-0021-04 11 1
8 003-0059-00 4 649
9 003-0059-00 22 22







  #5   Report Post  
Posted to microsoft.public.excel.misc
Beat
 
Posts: n/a
Default find a value at an intersection?

Hi Ellen,

I would try hlookup() to search for "TraneCodes",
(add a extra Row below TraneCodes to indicate the row number);
use vlookup() to search for the Partnumber and use the "row-result" from
hlookup() as ofset ...

Clear enough?

"Ellen G." wrote:

I have the following data:

I need to lookup the part number and trancode in Worksheet2 and return the
quantity to worksheet1.

Worksheet1
A B C D E F G H I J
TraneCodes 2 6 8 12 28 36 54
60........................
1 PART NUMBER
2 003-0623-00
3 005-0030-00
4 005-0168-00
5 005-0320-00
6 005-0420-00
7 005-0539-00
8 005-0798-01
9 005-7013-00


Worksheet2:

A B C D
1 Part# TranCode RecvPlt Qty
2 003-0018-01 28 7 10
3 003-0018-01 40 7 10
4 003-0021-00 8 54 25
5 003-0021-04 4 63
6 003-0021-04 6 11 66
7 003-0021-04 11 1
8 003-0059-00 4 649
9 003-0059-00 22 22


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
Intersection of two lines akr Charts and Charting in Excel 3 April 4th 23 12:39 PM
Find and Replace blakrapter Excel Worksheet Functions 3 December 15th 05 12:25 AM
Code needed to find records from bottom up Andy Excel Discussion (Misc queries) 4 December 5th 05 03:27 AM
find a cells from a range of cell kelvintaycc Excel Worksheet Functions 2 April 2nd 05 07:20 PM
Excel has a "Find Next" command but no "Find Previous" command. Michael Fitzpatrick Excel Discussion (Misc queries) 2 January 10th 05 11:45 PM


All times are GMT +1. The time now is 07:30 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"