Sum if

SPLUCENA

Board Regular
Joined
Feb 24, 2009
Messages
189
Hi All,

Can somebody please assist me with these issue of mine in excel.

I tried using sumif function but it is not working for me.

I have in the cells the following item. I want to add the value of gas only. SumIf function does not work for me. Please help.


Thanks,

splucena



ROW 1 ROW 2 TOTAL QTY
GAS 500
GAS 100
OTHER 800
GAS 200
 
VoG

This returns a zero. Can you see where I am going wrong please?

=SUMPRODUCT(--(Data!$D$2:$D$10=$B$1),--(Data!$R$2:$R$10=$C$3),--(Data!$K$2:$K$10=A5),Data!$S$2:$S$10)

Many Thanks
 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
This has been sorted

vog

this returns a zero. Can you see where i am going wrong please?
=sumproduct(--(data!$d$2:$d$10=$b$1),--(data!$r$2:$r$10=$c$3),--(data!$k$2:$k$10=a5),data!$s$2:$s$10)

many thanks

seem to workl now (?) :)
 
Upvote 0

Forum statistics

Threads
1,215,501
Messages
6,125,169
Members
449,212
Latest member
kenmaldonado

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top