Hey guys, I'm sure this is possible, but I've had quite a time trying to figure out how to do it. Any help would be awesome. Currently this is basically done manually and it's very time consuming: I know there is a better way.
I'll describe a simplified version of what I need below, and then adapt the answer to my purposes.
Table X
[TABLE="width: 500"]
<tbody>[TR]
[TD]Material Type[/TD]
[TD]M[/TD]
[TD]T[/TD]
[TD]W[/TD]
[TD]R[/TD]
[TD]F[/TD]
[TD]Work Center[/TD]
[/TR]
[TR]
[TD]abc1[/TD]
[TD]1000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]abc2[/TD]
[TD][/TD]
[TD]1500[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]abc3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]abc4[/TD]
[TD][/TD]
[TD][/TD]
[TD]2000[/TD]
[TD][/TD]
[TD][/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]abc5[/TD]
[TD][/TD]
[TD][/TD]
[TD]2500[/TD]
[TD][/TD]
[TD][/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]abc6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3000[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]abc7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3500[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
First Formula I need: pull data from table X into table Y
I was thinking it would be easiest to modify 5 different formulas (rather than an additional step in the formula to match which day it's on, but if you want bonus points, write me a formula that I can drag both ways to accomplish all this
here's what I had in mind though: 1 formula for each day, M-F, drag down in respective columns.
ie: for monday, it might look something like: index($a$2:$a$8,small(if($b$2:$b$8>0,"",...
I have seen similar array formulas with "row", and I'm not very comfortable working with that yet but I do generally understand what it does, and how it works in an array.
I am comfortable with index(match,(match), and I think match will be needed to get the work center, but there could be multiple materials on the same work center, and match will only return the first it finds. (I also know you can match based on multiple criteria, but I'm not quite sure how to put it all together).
If there are multiple results for one cell (see Wed, work center 3), i think it would be sufficient to show in same cell, separated by a comma & space: (result)&", "&(result). It would also be ok for now to just show the first result and not the others for a particular cell.
Table Y: material by day
[TABLE="width: 500"]
<tbody>[TR]
[TD]Work Center[/TD]
[TD]M[/TD]
[TD]T[/TD]
[TD]W[/TD]
[TD]R[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]abc1[/TD]
[TD]abc2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]abc7[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD]abc4, abc5[/TD]
[TD][/TD]
[TD]abc6[/TD]
[/TR]
</tbody>[/TABLE]
Table Z: Lbs by day
I want to do a very similar formula next, to pull the amount ordered, instead of the name of the material.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Work Center[/TD]
[TD]M[/TD]
[TD]T[/TD]
[TD]W[/TD]
[TD]R[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1000[/TD]
[TD]1500[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3500[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD]2000, 2500[/TD]
[TD][/TD]
[TD]3000[/TD]
[/TR]
</tbody>[/TABLE]
*Would it be easier to do this with some kind of pivot table instead? I realize that's basically what pivot tables are for... data transformations like like this. Can a pivot table be set to refresh / re-calc every time data is changed in it's source table? Also, as far as I know, pivot tables don't play nice with text, only numbers...So table Z could probably be done with a pivot, but I'm not so sure about table Y.
Either way, I'd love to hear some feedback so I can learn more about this type or formula, because I think it'll be helpful in my work regardless to know how to accomplish this.
Thanks everyone!
I'll describe a simplified version of what I need below, and then adapt the answer to my purposes.
Table X
[TABLE="width: 500"]
<tbody>[TR]
[TD]Material Type[/TD]
[TD]M[/TD]
[TD]T[/TD]
[TD]W[/TD]
[TD]R[/TD]
[TD]F[/TD]
[TD]Work Center[/TD]
[/TR]
[TR]
[TD]abc1[/TD]
[TD]1000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]abc2[/TD]
[TD][/TD]
[TD]1500[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]abc3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]abc4[/TD]
[TD][/TD]
[TD][/TD]
[TD]2000[/TD]
[TD][/TD]
[TD][/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]abc5[/TD]
[TD][/TD]
[TD][/TD]
[TD]2500[/TD]
[TD][/TD]
[TD][/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]abc6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3000[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]abc7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3500[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
First Formula I need: pull data from table X into table Y
I was thinking it would be easiest to modify 5 different formulas (rather than an additional step in the formula to match which day it's on, but if you want bonus points, write me a formula that I can drag both ways to accomplish all this

here's what I had in mind though: 1 formula for each day, M-F, drag down in respective columns.
ie: for monday, it might look something like: index($a$2:$a$8,small(if($b$2:$b$8>0,"",...
I have seen similar array formulas with "row", and I'm not very comfortable working with that yet but I do generally understand what it does, and how it works in an array.
I am comfortable with index(match,(match), and I think match will be needed to get the work center, but there could be multiple materials on the same work center, and match will only return the first it finds. (I also know you can match based on multiple criteria, but I'm not quite sure how to put it all together).
If there are multiple results for one cell (see Wed, work center 3), i think it would be sufficient to show in same cell, separated by a comma & space: (result)&", "&(result). It would also be ok for now to just show the first result and not the others for a particular cell.
Table Y: material by day
[TABLE="width: 500"]
<tbody>[TR]
[TD]Work Center[/TD]
[TD]M[/TD]
[TD]T[/TD]
[TD]W[/TD]
[TD]R[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]abc1[/TD]
[TD]abc2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]abc7[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD]abc4, abc5[/TD]
[TD][/TD]
[TD]abc6[/TD]
[/TR]
</tbody>[/TABLE]
Table Z: Lbs by day
I want to do a very similar formula next, to pull the amount ordered, instead of the name of the material.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Work Center[/TD]
[TD]M[/TD]
[TD]T[/TD]
[TD]W[/TD]
[TD]R[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1000[/TD]
[TD]1500[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3500[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD]2000, 2500[/TD]
[TD][/TD]
[TD]3000[/TD]
[/TR]
</tbody>[/TABLE]
*Would it be easier to do this with some kind of pivot table instead? I realize that's basically what pivot tables are for... data transformations like like this. Can a pivot table be set to refresh / re-calc every time data is changed in it's source table? Also, as far as I know, pivot tables don't play nice with text, only numbers...So table Z could probably be done with a pivot, but I'm not so sure about table Y.
Either way, I'd love to hear some feedback so I can learn more about this type or formula, because I think it'll be helpful in my work regardless to know how to accomplish this.
Thanks everyone!