ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How can I do SUMIF AND OR (https://www.excelbanter.com/excel-worksheet-functions/96948-how-can-i-do-sumif.html)

Gazzr

How can I do SUMIF AND OR
 

Hi There,

Can anyone help me put the below into a formula?

What I want to do is:

If ColA = "LN" and Col B = "75" OR "76" OR "712" then SUM ColC

Thanks all.
Garry


--
Gazzr
------------------------------------------------------------------------
Gazzr's Profile: http://www.excelforum.com/member.php...o&userid=31075
View this thread: http://www.excelforum.com/showthread...hreadid=557168


Ragdyer

How can I do SUMIF AND OR
 
Try this:

=SUMPRODUCT((A1:A100="LN")*(B1:B100={75,76,712})*C 1:C100)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Gazzr" wrote in
message ...

Hi There,

Can anyone help me put the below into a formula?

What I want to do is:

If ColA = "LN" and Col B = "75" OR "76" OR "712" then SUM ColC

Thanks all.
Garry


--
Gazzr
------------------------------------------------------------------------
Gazzr's Profile:
http://www.excelforum.com/member.php...o&userid=31075
View this thread: http://www.excelforum.com/showthread...hreadid=557168



Gazzr

How can I do SUMIF AND OR
 

Hi Ragdyer,

It worked perfectly!

Regards
Garry


--
Gazzr
------------------------------------------------------------------------
Gazzr's Profile: http://www.excelforum.com/member.php...o&userid=31075
View this thread: http://www.excelforum.com/showthread...hreadid=557168


RagDyeR

How can I do SUMIF AND OR
 
Appreciate the feed-back.
--

Regards,

RD
----------------------------------------------------------------------------
-------------------
Please keep all correspondence within the Group, so all may benefit !
----------------------------------------------------------------------------
-------------------

"Gazzr" wrote in
message ...

Hi Ragdyer,

It worked perfectly!

Regards
Garry


--
Gazzr
------------------------------------------------------------------------
Gazzr's Profile:
http://www.excelforum.com/member.php...o&userid=31075
View this thread: http://www.excelforum.com/showthread...hreadid=557168




All times are GMT +1. The time now is 04:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com