network_engineer
New Member
- Joined
- May 14, 2011
- Messages
- 37
Hello all,
This is related to an earlier post here; however, I now wish more changes, and wondered if should create a new post...!
The previous one was solved by using:
=(SUMPRODUCT(--(D27:D65536="High");--(G27:G65536="Non-Veg");((E27:E65536)))); I tried modifying it but failed to get the output that I wanted.
How would I calculate the sum in a cell, if I want the value to be calculated ONLY if two values in the respective rows are matching; however, one multiple values from one of the columns should be taken into account? E.g.
E.g.
D27="High"; G27="Non-Veg"; E27=2
D28="Low"; G28="Non-Veg"; E28=2
D29="High"; G29="Veg"; E29=2
D30="Per"; G30="Non-Veg"; E30=2
D31="High"; G31="Non-Veg"; E31=2
D32="Per"; G32="Veg"; E32=2
__________________________________E32=6
So, in other words, the values in rows 28, 29 & 32 are ignored, because of columns D and G.
Thanks a lot for any help.
Kind regards.
Ben
This is related to an earlier post here; however, I now wish more changes, and wondered if should create a new post...!
The previous one was solved by using:
=(SUMPRODUCT(--(D27:D65536="High");--(G27:G65536="Non-Veg");((E27:E65536)))); I tried modifying it but failed to get the output that I wanted.
How would I calculate the sum in a cell, if I want the value to be calculated ONLY if two values in the respective rows are matching; however, one multiple values from one of the columns should be taken into account? E.g.
E.g.
D27="High"; G27="Non-Veg"; E27=2
D28="Low"; G28="Non-Veg"; E28=2
D29="High"; G29="Veg"; E29=2
D30="Per"; G30="Non-Veg"; E30=2
D31="High"; G31="Non-Veg"; E31=2
D32="Per"; G32="Veg"; E32=2
__________________________________E32=6
So, in other words, the values in rows 28, 29 & 32 are ignored, because of columns D and G.
Thanks a lot for any help.
Kind regards.
Ben