I am trying to index/match to find numbers based off of words in an array formula but when I do the match part always returns the first number it sees. So I'm only effectively adding a count multiplier.
My formula is:
{=SUM(IF(B2:J2="",0,INDEX(Food:Calories,MATCH(Calendar!B2:J2,Food,0),2)))}
I'm trying to type in what I eat in a day and have it spit out how many calories I've eaten in a day. But it always pulls from the first thing I've eaten that day and multiplies it by how many entries I put in for the day.
Thank you
My formula is:
{=SUM(IF(B2:J2="",0,INDEX(Food:Calories,MATCH(Calendar!B2:J2,Food,0),2)))}
I'm trying to type in what I eat in a day and have it spit out how many calories I've eaten in a day. But it always pulls from the first thing I've eaten that day and multiplies it by how many entries I put in for the day.
Thank you