I *think* I understand. How about entering the store name in E1 and using a little "helper" in E2 like this:
| A | B | C | D | E |
---|
Store 1 | | | | | |
Fruit | Store 1 | Store 2 | Store 3 | | |
Apple | | | | | |
Orange | ERROR | | | | |
Apple | | | | | |
Orange | | | | | |
Orange | ERROR | | | | |
Banana | | | | | |
<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]1[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]$2.00[/TD]
[TD="align: right"]$2.00[/TD]
[TD="align: right"]$2.00[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]$3.00[/TD]
[TD="align: right"]$3.00[/TD]
[TD="align: right"]$9.00[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]$2.00[/TD]
[TD="align: right"]$2.00[/TD]
[TD="align: right"]$7.00[/TD]
[TD="align: center"]6[/TD]
[TD="align: right"][/TD]
[TD="align: right"]$4.00[/TD]
[TD="align: right"][/TD]
[TD="align: center"]7[/TD]
[TD="align: right"]$2.00[/TD]
[TD="align: right"]$5.00[/TD]
[TD="align: right"][/TD]
[TD="align: center"]8[/TD]
[TD="align: right"]$4.00[/TD]
[TD="align: right"]$6.00[/TD]
[TD="align: right"]$4.00[/TD]
</tbody>
Sheet1
[TABLE="width: 85%"]
<tbody>[TR]
[TD]
Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]E2[/TH]
[TD="align: left"]=MATCH(
$E1,$B$2:$D$2,0)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]E3[/TH]
[TD="align: left"]=IF(
INDEX($B3:$D3,$E$2)="","",IF(SUMPRODUCT(($A$3:$A$8=$A3)*(INDEX($B$3:$D$8,,$E$2)=INDEX($B3:$D3,$E$2)))=COUNTIFS($A$3:$A$8,$A3,INDEX($B$3:$D$8,,$E$2),"<>"),"","ERROR"))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
WBD