make total in one column if marked "X" in other column

Copper Contributor

Hello All,

How can I make a total of some amounts located in Column B if the lines are marked with "X" in column D ?

 

 

5 Replies
You can use this formula:
=SUMPRODUCT(B:B*(D:D="x"))

@Twifoo

Thanks you but it's not working :

 

@valerie21 , second multiplier shall be inside SUMPRODUCT

=SUMPRODUCT( E2:E23*(G2:G23="X")  )

 

@Sergei Baklan Thabnk you very much it's working now