[Solved] Need help with SUMPRODUCT() and/or SUMIFS()

Discuss the spreadsheet application
Post Reply
go2visions
Posts: 37
Joined: Fri Oct 21, 2016 11:30 pm

[Solved] Need help with SUMPRODUCT() and/or SUMIFS()

Post by go2visions »

The problem is outlined in the attachment
Untitled 1.ods
(13.88 KiB) Downloaded 105 times
Any help will be appreciated.

Thank you!!
Last edited by go2visions on Fri Nov 25, 2016 9:52 pm, edited 3 times in total.
Open Office Version 4.1.2
Windows 10
FJCC
Moderator
Posts: 9619
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Need help with VLOOKUP

Post by FJCC »

If I understand what you want, here is one possible approach which uses the fact that a comparison that is False returns a zero.
 Edit: By the way, I removed the leading spaces from the text in G5:P5. That is an illustration of how error prone this kind of thing is. 
Attachments
VLOOKUP.ods
(14.2 KiB) Downloaded 96 times
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
User avatar
robleyd
Moderator
Posts: 5500
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Need help with VLOOKUP

Post by robleyd »

You have exactly the same formulae in all of G6:P6 including absolute references; is this really what you want?

If not, perhaps you could describe what you are trying to achieve.
Slackware 15 (current) 64 bit
Apache OpenOffice 4.1.16
LibreOffice 26.2.2.2; SlackBuild for 26.2.2 by Eric Hameleers
---------------
I hate this damn computer, I wish that I could sell it.
It won't do what I want it to, Only what I tell it.
go2visions
Posts: 37
Joined: Fri Oct 21, 2016 11:30 pm

Re: Need help with SUMPRODUCT() and/or SUMIFS()

Post by go2visions »

Sorry for not explaining exactly what I need before.

Please look at the revised attachment.
Untitled 1.ods
Updated file with better explanation of problem
(13.88 KiB) Downloaded 116 times
Open Office Version 4.1.2
Windows 10
FJCC
Moderator
Posts: 9619
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Need help with SUMPRODUCT() and/or SUMIFS()

Post by FJCC »

This formula should be entered in G6

Code: Select all

=SUMIFS($D1:$D$100;$B$1:$B$100;".*"&$G$4&".*";$C$1:$C$100;G5)
It can then be copied to the other cells in row 6. You have to remove the leading space from G5:P6 for the formula to work. The formula returns a zero and not a blank when there are no items matching the requirements. There are ways to avoid that if it is truly necessary.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
go2visions
Posts: 37
Joined: Fri Oct 21, 2016 11:30 pm

Re: Need help with SUMPRODUCT() and/or SUMIFS()

Post by go2visions »

Excellent solution, as usual!!

Thank you VERY much!!
Open Office Version 4.1.2
Windows 10
Post Reply