Combine 2 formulas

G

Guest

Hello from Steved

Please how do I combine the below to give me a total in 1 cell.
=SUMPRODUCT(--('From Charters'!$A$1:$A$898="Papakura"),--('From
Charters'!$B$1:$B$898="Period.4"),'From Charters'!$D$1:$D$898)

=SUMPRODUCT(--('From Charters'!$A$1:$A$898="Wiri"),--('From
Charters'!$B$1:$B$898="Period.4"),'From Charters'!$D$1:$D$898)

Thankyou.
 
G

Guest

Hello from Steved

I've got the result Thankyou.

=SUMPRODUCT(--('From Charters'!$A$1:$A$898="Papakura"),--('From
Charters'!$B$1:$B$898="Period.4"),'From
Charters'!$D$1:$D$898)+SUMPRODUCT(--('From
Charters'!$A$1:$A$898="Wiri"),--('From
Charters'!$B$1:$B$898="Period.4"),'From Charters'!$D$1:$D$898)
 
A

Aladin Akyurek

=SUMPRODUCT(--ISNUMBER(MATCH('From
Charters'!$A$1:$A$898,{"Papakura","Wiri"},0)),--('From
Charters'!$B$1:$B$898="Period.4"),'From
Charters'!$D$1:$D$898)
Hello from Steved

I've got the result Thankyou.

=SUMPRODUCT(--('From Charters'!$A$1:$A$898="Papakura"),--('From
Charters'!$B$1:$B$898="Period.4"),'From
Charters'!$D$1:$D$898)+SUMPRODUCT(--('From
Charters'!$A$1:$A$898="Wiri"),--('From
Charters'!$B$1:$B$898="Period.4"),'From Charters'!$D$1:$D$898)


:

--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.
 
G

Guest

Hello Aladin form Steved

I would like to say thankyou verymuch as I like clean formulas such as yours.

Cheers

Aladin Akyurek said:
=SUMPRODUCT(--ISNUMBER(MATCH('From
Charters'!$A$1:$A$898,{"Papakura","Wiri"},0)),--('From
Charters'!$B$1:$B$898="Period.4"),'From
Charters'!$D$1:$D$898)
Hello from Steved

I've got the result Thankyou.

=SUMPRODUCT(--('From Charters'!$A$1:$A$898="Papakura"),--('From
Charters'!$B$1:$B$898="Period.4"),'From
Charters'!$D$1:$D$898)+SUMPRODUCT(--('From
Charters'!$A$1:$A$898="Wiri"),--('From
Charters'!$B$1:$B$898="Period.4"),'From Charters'!$D$1:$D$898)


:

--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

#VALUE! 8
Needs to Show blank please 2
To Leave Cell blank Please 7
A 13 period exercise 1
Returning a 0 Value 3
I've tried Sumproduct, SumIf, Vlookup and Hlookup. 5
N/A 3
One more Argument. 1

Top