Guild of Project Controls: Compendium | Roles | Assessment | Certifications | Membership

Tips on using this forum..

(1) Explain your problem, don't simply post "This isn't working". What were you doing when you faced the problem? What have you tried to resolve - did you look for a solution using "Search" ? Has it happened just once or several times?

(2) It's also good to get feedback when a solution is found, return to the original post to explain how it was resolved so that more people can also use the results.

Excel Formula

1 reply [Last post]
Oliver Melling
User offline. Last seen 4 years 26 weeks ago. Offline
Joined: 24 Apr 2007
Posts: 595
Groups: The GrapeVine

Can anyone tell me how to make the follwing formula sum "Apples" and "Pears"?

=SUMPRODUCT((Cost!$D$3:$D$126="Apples")*Cost!$P$3:$AG$126)

It would be much appreciated!

Replies

Ahmed KHR
User offline. Last seen 6 years 7 weeks ago. Offline
Joined: 10 Nov 2010
Posts: 65

SUMPRODUCT((Cost!$D$3:$D$126="Apples")*Cost!$P$3:$AG$126)+SUMPRODUCT((Cost!$D$3:$D$126="Pears")*Cost!$P$3:$AG$126)