Dear All, how can I use a constant array to make this formula work? basically I need a count of the food that "aida" have between jan1 to jan 4. summing them is working but I have to do one formula for each food, hence my formula gets really long. appreciate the help. thanks. =SUMPRODUCT((F6:O6=B1)*(B8:B24=A1)*(F8:O24="egg","milk,"banana","cookies")) [TABLE="width: 500"]
<tbody>[TR]
[TD]aida [/TD]
[TD]jan 1, 20[/TD]
[TD]jan 4, 2 [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]jan 1, 2018[/TD]
[TD]jan 2, 2018[/TD]
[TD]jan 3, 2018[/TD]
[TD]jan 4, 2018[/TD]
[/TR]
[TR]
[TD]aida[/TD]
[TD]egg[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]almire[/TD]
[TD][/TD]
[TD]milk[/TD]
[TD]banana[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]scott[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]cookies[/TD]
[/TR]
[TR]
[TD]jenn[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
<tbody>[TR]
[TD]aida [/TD]
[TD]jan 1, 20[/TD]
[TD]jan 4, 2 [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]jan 1, 2018[/TD]
[TD]jan 2, 2018[/TD]
[TD]jan 3, 2018[/TD]
[TD]jan 4, 2018[/TD]
[/TR]
[TR]
[TD]aida[/TD]
[TD]egg[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]almire[/TD]
[TD][/TD]
[TD]milk[/TD]
[TD]banana[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]scott[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]cookies[/TD]
[/TR]
[TR]
[TD]jenn[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]