Hi all,
I’m trying to find data in several sheets using INDEX / MATCH. I get the first value right but all the others are “#N/A”.
The data is in different arrays, each array in a different worksheet. So, the LOOKUP_ARRAY for the MATCH varies.
For example, on Worksheet “BOQ” below, I want to retrieve the Cost/Unit for Item1. The information of Item1 is on another worksheet called “PART”
On cell C2 of the worksheet “BOQ” I am using the following expression
Which gives me the value of $500. Which is right.
PART_COST is a dynamic range (with 1 only column) on WORKSHEET “PART”. PART_COST is an offset of PART_ID, as follows:
THE PROBLEM I HAVE IS: the first value found ($500) below is ok but as I drag the formula down all I get is “#N/A”
WORKSHEET “BOQ” (headers of the following table are A1 to C1… so table range A1:C10):
[TABLE="width: 213"]
<tbody>[TR]
[TD]Section
[/TD]
[TD]Designation
[/TD]
[TD]Cost/Unit
[/TD]
[/TR]
[TR]
[TD]Part
[/TD]
[TD]Item1
[/TD]
[TD]$500
[/TD]
[/TR]
[TR]
[TD]Part
[/TD]
[TD]Item2
[/TD]
[TD]#N/A
[/TD]
[/TR]
[TR]
[TD]Part
[/TD]
[TD]Item3
[/TD]
[TD]#N/A
[/TD]
[/TR]
[TR]
[TD]Part
[/TD]
[TD]Item4
[/TD]
[TD]#N/A
[/TD]
[/TR]
[TR]
[TD]Part
[/TD]
[TD]Item5
[/TD]
[TD]#N/A
[/TD]
[/TR]
[TR]
[TD]Part
[/TD]
[TD]Item6
[/TD]
[TD]#N/A
[/TD]
[/TR]
[TR]
[TD]Part
[/TD]
[TD]Item7
[/TD]
[TD]#N/A
[/TD]
[/TR]
[TR]
[TD]Part
[/TD]
[TD]Item8
[/TD]
[TD]#N/A
[/TD]
[/TR]
[TR]
[TD]Part
[/TD]
[TD]Item9
[/TD]
[TD]#N/A
[/TD]
[/TR]
</tbody>[/TABLE]
WORKSHEET “PART” (headers of the following table are A1 to E1… so table range A1:E10):
[TABLE="width: 369"]
<tbody>[TR]
[TD]Designation
[/TD]
[TD]Colour
[/TD]
[TD]Size
[/TD]
[TD]Unit
[/TD]
[TD]Mat cost/unit
[/TD]
[/TR]
[TR]
[TD]Item1
[/TD]
[TD]red
[/TD]
[TD]large
[/TD]
[TD]ea
[/TD]
[TD] $ 500.00
[/TD]
[/TR]
[TR]
[TD]Item2
[/TD]
[TD]blue
[/TD]
[TD]smal
[/TD]
[TD]ea
[/TD]
[TD] $ 2,000.00
[/TD]
[/TR]
[TR]
[TD]Item3
[/TD]
[TD]green
[/TD]
[TD]medium
[/TD]
[TD]ea
[/TD]
[TD] $ 3,500.00
[/TD]
[/TR]
[TR]
[TD]Item4
[/TD]
[TD]red
[/TD]
[TD]large
[/TD]
[TD]ea
[/TD]
[TD] $ 5,000.00
[/TD]
[/TR]
[TR]
[TD]Item5
[/TD]
[TD]black
[/TD]
[TD]medium
[/TD]
[TD]ea
[/TD]
[TD] $ 3,400.00
[/TD]
[/TR]
[TR]
[TD]Item6
[/TD]
[TD]black
[/TD]
[TD]small
[/TD]
[TD]ea
[/TD]
[TD] $ 4,322.00
[/TD]
[/TR]
[TR]
[TD]Item7
[/TD]
[TD]blue
[/TD]
[TD]large
[/TD]
[TD]ea
[/TD]
[TD] $ 2,345.00
[/TD]
[/TR]
[TR]
[TD]Item8
[/TD]
[TD]white
[/TD]
[TD]medium
[/TD]
[TD]ea
[/TD]
[TD] $ 3,300.00
[/TD]
[/TR]
[TR]
[TD]Item9
[/TD]
[TD]purple
[/TD]
[TD]standard
[/TD]
[TD]ea
[/TD]
[TD] $ 1,234.00
[/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance for your kind assistance.
Regards,
Juan
I’m trying to find data in several sheets using INDEX / MATCH. I get the first value right but all the others are “#N/A”.
The data is in different arrays, each array in a different worksheet. So, the LOOKUP_ARRAY for the MATCH varies.
For example, on Worksheet “BOQ” below, I want to retrieve the Cost/Unit for Item1. The information of Item1 is on another worksheet called “PART”
On cell C2 of the worksheet “BOQ” I am using the following expression
Code:
=INDEX(PART_COST,(MATCH(B2,OFFSET(INDIRECT(A2&"!$A$1"),1,0,COUNTA(INDIRECT(A2&"!&$A:$A")),1),0)))
Which gives me the value of $500. Which is right.
PART_COST is a dynamic range (with 1 only column) on WORKSHEET “PART”. PART_COST is an offset of PART_ID, as follows:
Code:
=OFFSET(Part!$A$1,1,0,COUNTA(Part!$A:$A),1)
Code:
=OFFSET(PART_ID,0,4)
THE PROBLEM I HAVE IS: the first value found ($500) below is ok but as I drag the formula down all I get is “#N/A”
WORKSHEET “BOQ” (headers of the following table are A1 to C1… so table range A1:C10):
[TABLE="width: 213"]
<tbody>[TR]
[TD]Section
[/TD]
[TD]Designation
[/TD]
[TD]Cost/Unit
[/TD]
[/TR]
[TR]
[TD]Part
[/TD]
[TD]Item1
[/TD]
[TD]$500
[/TD]
[/TR]
[TR]
[TD]Part
[/TD]
[TD]Item2
[/TD]
[TD]#N/A
[/TD]
[/TR]
[TR]
[TD]Part
[/TD]
[TD]Item3
[/TD]
[TD]#N/A
[/TD]
[/TR]
[TR]
[TD]Part
[/TD]
[TD]Item4
[/TD]
[TD]#N/A
[/TD]
[/TR]
[TR]
[TD]Part
[/TD]
[TD]Item5
[/TD]
[TD]#N/A
[/TD]
[/TR]
[TR]
[TD]Part
[/TD]
[TD]Item6
[/TD]
[TD]#N/A
[/TD]
[/TR]
[TR]
[TD]Part
[/TD]
[TD]Item7
[/TD]
[TD]#N/A
[/TD]
[/TR]
[TR]
[TD]Part
[/TD]
[TD]Item8
[/TD]
[TD]#N/A
[/TD]
[/TR]
[TR]
[TD]Part
[/TD]
[TD]Item9
[/TD]
[TD]#N/A
[/TD]
[/TR]
</tbody>[/TABLE]
WORKSHEET “PART” (headers of the following table are A1 to E1… so table range A1:E10):
[TABLE="width: 369"]
<tbody>[TR]
[TD]Designation
[/TD]
[TD]Colour
[/TD]
[TD]Size
[/TD]
[TD]Unit
[/TD]
[TD]Mat cost/unit
[/TD]
[/TR]
[TR]
[TD]Item1
[/TD]
[TD]red
[/TD]
[TD]large
[/TD]
[TD]ea
[/TD]
[TD] $ 500.00
[/TD]
[/TR]
[TR]
[TD]Item2
[/TD]
[TD]blue
[/TD]
[TD]smal
[/TD]
[TD]ea
[/TD]
[TD] $ 2,000.00
[/TD]
[/TR]
[TR]
[TD]Item3
[/TD]
[TD]green
[/TD]
[TD]medium
[/TD]
[TD]ea
[/TD]
[TD] $ 3,500.00
[/TD]
[/TR]
[TR]
[TD]Item4
[/TD]
[TD]red
[/TD]
[TD]large
[/TD]
[TD]ea
[/TD]
[TD] $ 5,000.00
[/TD]
[/TR]
[TR]
[TD]Item5
[/TD]
[TD]black
[/TD]
[TD]medium
[/TD]
[TD]ea
[/TD]
[TD] $ 3,400.00
[/TD]
[/TR]
[TR]
[TD]Item6
[/TD]
[TD]black
[/TD]
[TD]small
[/TD]
[TD]ea
[/TD]
[TD] $ 4,322.00
[/TD]
[/TR]
[TR]
[TD]Item7
[/TD]
[TD]blue
[/TD]
[TD]large
[/TD]
[TD]ea
[/TD]
[TD] $ 2,345.00
[/TD]
[/TR]
[TR]
[TD]Item8
[/TD]
[TD]white
[/TD]
[TD]medium
[/TD]
[TD]ea
[/TD]
[TD] $ 3,300.00
[/TD]
[/TR]
[TR]
[TD]Item9
[/TD]
[TD]purple
[/TD]
[TD]standard
[/TD]
[TD]ea
[/TD]
[TD] $ 1,234.00
[/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance for your kind assistance.
Regards,
Juan