SOLVED

summing of vlookup values

Copper Contributor

Can I have a better option for

 

ask microsoft NEW.jpg

8 Replies

@eliaskjohn 

=SUMPRODUCT((I3:L3=Sheet1!C:C)*Sheet1!D:D)

 

Maybe with this formula as shown in the attached file.

Thank you. But it doesn't seems to be what my requirement is. I have just updated my query. can you please check it again?
best response confirmed by eliaskjohn (Copper Contributor)
Solution

@eliaskjohn 

=SUMPRODUCT((D2:G2=$A$2:$A$7)*$B$2:$B$7)

 

Maybe with this formula.

@OliverScheurich Thank you so much.
one more query. while copying the formula to another cells, following error is displayed. we can't even save the file without deleting the copied formula.ask microsoft 02.jpg

@eliaskjohn 

That's difficult to say without seeing the file or the formula in column H. Can you communicate the formula you entered in cell H8? Probably too many calculations are required to return the result of the formula. 

Thank you dear. @OliverScheurich. I have sorted it. That error was because the formula was referring to the entire column. I have one more doubt. In the same way can we count the values instead of summing.ASK count.jpg Please see the attached image.

@eliaskjohn 

=SUMPRODUCT(MMULT(($B$2:$B$13=G8)*($C$2:$E$13=$H$7),ROW($1:$3)^0))

You are welcome. Glad you sorted out the error. The above formula seems to count the values as intended.

@OliverScheurich 

Thank you so much for your support. It works perfectly. Though I didn’t get the logic in the formula, it works perfectly for my requirement. Once again, my sincere thanks.

1 best response

Accepted Solutions
best response confirmed by eliaskjohn (Copper Contributor)
Solution

@eliaskjohn 

=SUMPRODUCT((D2:G2=$A$2:$A$7)*$B$2:$B$7)

 

Maybe with this formula.

View solution in original post