That layout should work fine for me but the formulas are not working for me. First one doesn't give me anything and the second one just starts listing sheet2 PO Line column after confirming Customer Order I believe:
I changed reference to "7" to "194" as those are the number of rows on sheet 2
Here, the last formula work with the range until row 194. Look at this:
[TABLE="width: 504"]
<tbody>[TR]
[TD="class: xl63, width: 82, bgcolor: transparent"]
Customer Order
[/TD]
[TD="class: xl63, width: 27, bgcolor: transparent"]
Qty
[/TD]
[TD="class: xl63, width: 67, bgcolor: transparent"]
Part Number
[/TD]
[TD="class: xl63, width: 62, bgcolor: transparent"]
Due Date
[/TD]
[TD="class: xl63, width: 77, bgcolor: transparent"]
PO Line Item 1
[/TD]
[TD="class: xl63, width: 77, bgcolor: transparent"]
PO Line Item 2
[/TD]
[TD="class: xl63, width: 77, bgcolor: transparent"]
PO Line Item 3
[/TD]
[TD="class: xl63, width: 77, bgcolor: transparent"]
PO Line Item 4
[/TD]
[TD="class: xl63, width: 77, bgcolor: transparent"]
PO Line Item 5
[/TD]
[TD="class: xl65, width: 47, bgcolor: transparent"]
Sheet1
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]
CH34567
[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
14
[/TD]
[TD="class: xl63, bgcolor: transparent"]
H778400
[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]
nov/04
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
131,00
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
155,00
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
156,00
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
157,00
[/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl63, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]
CH34895
[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
15
[/TD]
[TD="class: xl63, bgcolor: transparent"]
H363839
[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]
dez/04
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
225,00
[/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl63, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]
CH07478
[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
16
[/TD]
[TD="class: xl63, bgcolor: transparent"]
SR73738
[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]
jan/05
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
145,00
[/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl63, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]
CH34567
[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
17
[/TD]
[TD="class: xl63, bgcolor: transparent"]
B56378
[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]
fev/05
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
155,00
[/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl63, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]
CH32000
[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
11
[/TD]
[TD="class: xl63, bgcolor: transparent"]
A40000
[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]
mar/05
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
150,22
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
114,02
[/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl63, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]
CH38000
[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
21
[/TD]
[TD="class: xl63, bgcolor: transparent"]
SR10000
[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]
abr/05
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
127,18
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
111,29
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
111,29
[/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl63, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]
CH20000
[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
28
[/TD]
[TD="class: xl63, bgcolor: transparent"]
A10000
[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]
mai/05
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
186,47
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
171,33
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
171,33
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
196,41
[/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl63, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]
CH55000
[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
18
[/TD]
[TD="class: xl63, bgcolor: transparent"]
H90000
[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]
jun/05
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
157,46
[/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl63, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]
CH80000
[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
21
[/TD]
[TD="class: xl63, bgcolor: transparent"]
H90000
[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]
jul/05
[/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl63, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]
CH63000
[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
11
[/TD]
[TD="class: xl63, bgcolor: transparent"]
H20000
[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]
ago/05
[/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl63, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]
CH49000
[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
23
[/TD]
[TD="class: xl63, bgcolor: transparent"]
SR40000
[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]
set/05
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
195,34
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
188,12
[/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl63, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]
CH43000
[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
27
[/TD]
[TD="class: xl63, bgcolor: transparent"]
SR30000
[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]
out/05
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
102,96
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
140,07
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
126,94
[/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl63, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]
CH42000
[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
19
[/TD]
[TD="class: xl63, bgcolor: transparent"]
B20000
[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]
nov/05
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
185,81
[/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl63, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]
CH23000
[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
18
[/TD]
[TD="class: xl63, bgcolor: transparent"]
B80000
[/TD]
[TD="class: xl64, bgcolor: transparent, align: right"]
dez/05
[/TD]
[TD="class: xl66, bgcolor: yellow, align: right"]
133,03
[/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl66, bgcolor: yellow"][/TD]
[TD="class: xl63, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]
***************
[/TD]
[TD="class: xl63, bgcolor: transparent"]
****
[/TD]
[TD="class: xl63, bgcolor: transparent"]
************
[/TD]
[TD="class: xl64, bgcolor: transparent"]
**********
[/TD]
[TD="class: xl67, bgcolor: transparent"]
**************
[/TD]
[TD="class: xl67, bgcolor: transparent"]
**************
[/TD]
[TD="class: xl67, bgcolor: transparent"]
**************
[/TD]
[TD="class: xl67, bgcolor: transparent"]
**************
[/TD]
[TD="class: xl67, bgcolor: transparent"]
**************
[/TD]
[TD="class: xl67, bgcolor: transparent"]
******
[/TD]
[/TR]
</tbody>[/TABLE]
Array formula - use Ctrl+Shift+Enter and not only Enter to enter the formula
Code:
In E2 of the Sheet1
=IFERROR(INDEX(Sheet2!$B$2:$B$194,SMALL(IF(Sheet2!$A$2:$A$194&Sheet2!$C$2:$F$194=$A2&$C2,
ROW(Sheet2!$A$2:$A$194)-ROW(Sheet2!$A$2)+1),COLUMNS($E2:E2))),"")
[COLOR=#ff0000]After that, copy E2 to the right until cell I2,
then copy the range E2:I2 down until the last row with data in column A of the Sheet1 (in my example until row 15).[/COLOR]
Did you press Ctrl+Shift+Enter to enter the formula?
Could you post the formula that you used with your data?
Markmzz