As you can see in the picture above, I want to take Table 1 and, using formulas that can auto-populate, turn it into Table 2.
I tried using VLOOKUP
and INDEX
, but I'm not 100% sure on how to use the latter and the former allows you to only use one lookup value - I need it to be able to match up both the date and the product.
This needs to be formula-based because table 1 automatically updates based on a data feed.
The following formula will do it (array formula which has to be entered using Ctrl + Shift + Enter):
=INDEX($C$5:$C$9,MATCH(1,($B$5:$B$9=$E5)*($A$5:$A$9=F$4),0))
I assume that:
This array formula should be entered in F5.