No output (while expected)

Yoeri

New Member
Joined
Jun 19, 2018
Messages
2
Hello all,

I hope someone can help me with the following issue:

I have 2 tabs in Excel:

1. Product Line Attributes
2. Data Sheet

In tab 1 (Product Line Attributes) I have a list of product lines (1 column for the product line ID's and 1 for the product line names) with the attributes that are linked to it in the next column. These are all in Table1
In tab 2 (Data Sheet) I have a list of products in a column with behind it the product line ID and the product line name in separate columns (like in Table1) but here there is no table format used.

Below an example:

Tab 1 called "Product Line Attributes" with "Table1":



Product Line IDProduct Line nameAttribute ID
970731Scrapersned_application_lov
970731Scraperstype_lov
970731Scraperscontent_lov

<tbody>
</tbody>







Tab 2 called "Data Sheet" where the following is shown:


Column AColumn LColumn MColumn SColumn VColumn Y
Product no.Product Line IDProduct Line NameAtt 1Att 2Att 3
Row 884123970731Scrapersned_application_lov
Row 885456970731Scrapersned_application_lov

<tbody>
</tbody>












Based on the formula that I am using I would expect that Att 2 and Att 3 are also being filled in with type_lov and content_lov. But that is not the case. The remain blank.



I am using the following formula in cell S884:

{=IFERROR(INDEX(Table1[AttributeID];SMALL(IF(Table1[Product Line ID]=$L884;ROW(Table1[AttributeID])-MIN(ROW(Table1[AttributeID]))+1);COLUMNS($S$2:S884)));"")}

For cell S885 I use this formula:

{=IFERROR(INDEX(Table1[AttributeID];SMALL(IF(Table1[Product Line ID]=$L885;ROW(Table1[AttributeID])-MIN(ROW(Table1[AttributeID]))+1);COLUMNS($S$2:S885)));"")}


I am using the following formula in cell V884:

{=IFERROR(INDEX(Table1[AttributeID];SMALL(IF(Table1[Product Line ID]=$L884;ROW(Table1[AttributeID])-MIN(ROW(Table1[AttributeID]))+1);COLUMNS($S$2:V885)));"")}


I am using the following formula in cell V885:

{=IFERROR(INDEX(Table1[AttributeID];SMALL(IF(Table1[Product Line ID]=$L885;ROW(Table1[AttributeID])-MIN(ROW(Table1[AttributeID]))+1);COLUMNS($S$2:V885)));"")}


For the Y cells same story:

{=IFERROR(INDEX(Table1[AttributeID];SMALL(IF(Table1[Product Line ID]=$L884;ROW(Table1[AttributeID])-MIN(ROW(Table1[AttributeID]))+1);COLUMNS($S$2:Y884)));"")}

and

{=IFERROR(INDEX(Table1[AttributeID];SMALL(IF(Table1[Product Line ID]=$L885;ROW(Table1[AttributeID])-MIN(ROW(Table1[AttributeID]))+1);COLUMNS($S$2:Y885)));"")}


I Have found the original formula here where also the explanation is:
https://exceljet.net/formula/extract-multiple-matches-into-separate-columns


Just to be sure:
What I would like is that the where in "Table1" the product lines with the attributes in the next column are shown in vertical order, to have them shown horizontally in the "Data Sheet" as shown in the example. I would expect that where Att 2 and Att 3 are now empty, that those are filled. This is the case with other items that I have in this "Data Sheet". And since we are talking about hundreds of items there is no way t do it by hand. Therefore this formula, but somehow it does either not work and/or give me the result that I am expecting.

Can somebody please help me with this?

Thanks a lot already in advance,
Yoeri
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
COLUMNS($S$2:V885) is going to return 4; not 2 as you would need. Try this in S884 and then copy it across to columns V and Y (references should adjust automatically)

Code:
{=IFERROR(INDEX(Table1[AttributeID];SMALL(IF(Table1[Product Line ID]=$L884;ROW(Table1[AttributeID])-MIN(ROW(Table1[AttributeID]))+1);(COLUMNS($S884:S884)-1)/3+1));"")}

If all is well you'll get the following in V and Y:

Code:
{=IFERROR(INDEX(Table1[AttributeID];SMALL(IF(Table1[Product Line ID]=$L884;ROW(Table1[AttributeID])-MIN(ROW(Table1[AttributeID]))+1);(COLUMNS($S884:V884)-1)/3+1));"")}
{=IFERROR(INDEX(Table1[AttributeID];SMALL(IF(Table1[Product Line ID]=$L884;ROW(Table1[AttributeID])-MIN(ROW(Table1[AttributeID]))+1);(COLUMNS($S884:Y884)-1)/3+1));"")}

WBD
 
Upvote 0
COLUMNS($S$2:V885) is going to return 4; not 2 as you would need. Try this in S884 and then copy it across to columns V and Y (references should adjust automatically)

Code:
{=IFERROR(INDEX(Table1[AttributeID];SMALL(IF(Table1[Product Line ID]=$L884;ROW(Table1[AttributeID])-MIN(ROW(Table1[AttributeID]))+1);(COLUMNS($S884:S884)-1)/3+1));"")}

If all is well you'll get the following in V and Y:

Code:
{=IFERROR(INDEX(Table1[AttributeID];SMALL(IF(Table1[Product Line ID]=$L884;ROW(Table1[AttributeID])-MIN(ROW(Table1[AttributeID]))+1);(COLUMNS($S884:V884)-1)/3+1));"")}
{=IFERROR(INDEX(Table1[AttributeID];SMALL(IF(Table1[Product Line ID]=$L884;ROW(Table1[AttributeID])-MIN(ROW(Table1[AttributeID]))+1);(COLUMNS($S884:Y884)-1)/3+1));"")}

WBD


Very very nice. Thank you very much. It is working now.

Thank you for your time and effort that you have spend to look at it, really appreciated.
 
Upvote 0

Forum statistics

Threads
1,214,984
Messages
6,122,601
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top