ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Countif & Sumif fx ref data in multiple columns (https://www.excelbanter.com/excel-worksheet-functions/226650-countif-sumif-fx-ref-data-multiple-columns.html)

hal1011

Countif & Sumif fx ref data in multiple columns
 
I am using the following formulas which work fine.

=SUMIF(B2:B145,"AER*",I2:I145)

=COUNTIF(B2:B145,"AER*")

I would like to use similar formula to sum values in Column I, if Column A
contains FPG and Column B does not contain AER*.

Also would like to use a similar formula to count values in Column B if
Column A contains FPG and Column B does not contain AER*.

Can someone help?


Luke M

Countif & Sumif fx ref data in multiple columns
 
Summation scenario:
=SUMPRODUCT((A2:A145="FPG")*("B2:B145<"AER*")*(I2 :I145))

Counting scenario:
=SUMPRODUCT((A2:A145="FPG")*(B2:B145<"AER*"))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"hal1011" wrote:

I am using the following formulas which work fine.

=SUMIF(B2:B145,"AER*",I2:I145)

=COUNTIF(B2:B145,"AER*")

I would like to use similar formula to sum values in Column I, if Column A
contains FPG and Column B does not contain AER*.

Also would like to use a similar formula to count values in Column B if
Column A contains FPG and Column B does not contain AER*.

Can someone help?


Domenic[_2_]

Countif & Sumif fx ref data in multiple columns
 
Try...

=SUMPRODUCT(--(A2:A100="FPG"),--(B2:B100<"AER"),I2:I100)

and

=SUMPRODUCT(--(A2:A100="FPG"),--(B2:B100<"AER"))

Hope this helps!

http://www.xl-central.com

In article ,
hal1011 wrote:

I am using the following formulas which work fine.

=SUMIF(B2:B145,"AER*",I2:I145)

=COUNTIF(B2:B145,"AER*")

I would like to use similar formula to sum values in Column I, if Column A
contains FPG and Column B does not contain AER*.

Also would like to use a similar formula to count values in Column B if
Column A contains FPG and Column B does not contain AER*.

Can someone help?


hal1011

Countif & Sumif fx ref data in multiple columns
 
Thanks for the advice. I tried the formulas and the result is taking into
account the "FPG" part of the formulas, but not the "does not contain AER"
part of the formulas. Do you have any suggestions how to fix that?

"Luke M" wrote:

Summation scenario:
=SUMPRODUCT((A2:A145="FPG")*("B2:B145<"AER*")*(I2 :I145))

Counting scenario:
=SUMPRODUCT((A2:A145="FPG")*(B2:B145<"AER*"))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"hal1011" wrote:

I am using the following formulas which work fine.

=SUMIF(B2:B145,"AER*",I2:I145)

=COUNTIF(B2:B145,"AER*")

I would like to use similar formula to sum values in Column I, if Column A
contains FPG and Column B does not contain AER*.

Also would like to use a similar formula to count values in Column B if
Column A contains FPG and Column B does not contain AER*.

Can someone help?


Luke M

Countif & Sumif fx ref data in multiple columns
 
Change to:

Summation scenario:
=SUMPRODUCT((A2:A145="FPG")*(ISERROR(FIND("AER",B2 :B145)))*(I2:I145))

Counting scenario:
=SUMPRODUCT((A2:A145="FPG")*(ISERROR(FIND("AER",B2 :B145))))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"hal1011" wrote:

Thanks for the advice. I tried the formulas and the result is taking into
account the "FPG" part of the formulas, but not the "does not contain AER"
part of the formulas. Do you have any suggestions how to fix that?

"Luke M" wrote:

Summation scenario:
=SUMPRODUCT((A2:A145="FPG")*("B2:B145<"AER*")*(I2 :I145))

Counting scenario:
=SUMPRODUCT((A2:A145="FPG")*(B2:B145<"AER*"))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"hal1011" wrote:

I am using the following formulas which work fine.

=SUMIF(B2:B145,"AER*",I2:I145)

=COUNTIF(B2:B145,"AER*")

I would like to use similar formula to sum values in Column I, if Column A
contains FPG and Column B does not contain AER*.

Also would like to use a similar formula to count values in Column B if
Column A contains FPG and Column B does not contain AER*.

Can someone help?


hal1011

Countif & Sumif fx ref data in multiple columns
 
The results of these formulas are still only taking into account the first
set of critiera (FPG) and not the second. I am basically trying to apply the
same logic of a custom filter on the data in column B to include anything
that does not begin with AER. Any other advice?

"Domenic" wrote:

Try...

=SUMPRODUCT(--(A2:A100="FPG"),--(B2:B100<"AER"),I2:I100)

and

=SUMPRODUCT(--(A2:A100="FPG"),--(B2:B100<"AER"))

Hope this helps!

http://www.xl-central.com

In article ,
hal1011 wrote:

I am using the following formulas which work fine.

=SUMIF(B2:B145,"AER*",I2:I145)

=COUNTIF(B2:B145,"AER*")

I would like to use similar formula to sum values in Column I, if Column A
contains âœFPG❠and Column B does not contain âœAER*â.

Also would like to use a similar formula to count values in Column B if
Column A contains âœFPG❠and Column B does not contain âœAER*â.

Can someone help?



hal1011

Countif & Sumif fx ref data in multiple columns
 
The results of these formulas are still only taking into account the first
set of critiera (FPG) and not the second. I am basically trying to apply the
same logic of a custom filter on the data in column B to include anything
that does not begin with AER. Any other advice?

"Luke M" wrote:

Change to:

Summation scenario:
=SUMPRODUCT((A2:A145="FPG")*(ISERROR(FIND("AER",B2 :B145)))*(I2:I145))

Counting scenario:
=SUMPRODUCT((A2:A145="FPG")*(ISERROR(FIND("AER",B2 :B145))))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"hal1011" wrote:

Thanks for the advice. I tried the formulas and the result is taking into
account the "FPG" part of the formulas, but not the "does not contain AER"
part of the formulas. Do you have any suggestions how to fix that?

"Luke M" wrote:

Summation scenario:
=SUMPRODUCT((A2:A145="FPG")*("B2:B145<"AER*")*(I2 :I145))

Counting scenario:
=SUMPRODUCT((A2:A145="FPG")*(B2:B145<"AER*"))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"hal1011" wrote:

I am using the following formulas which work fine.

=SUMIF(B2:B145,"AER*",I2:I145)

=COUNTIF(B2:B145,"AER*")

I would like to use similar formula to sum values in Column I, if Column A
contains FPG and Column B does not contain AER*.

Also would like to use a similar formula to count values in Column B if
Column A contains FPG and Column B does not contain AER*.

Can someone help?


Domenic[_2_]

Countif & Sumif fx ref data in multiple columns
 
In that case, try the following instead...

=SUMPRODUCT(--(A2:A100="FPG"),--(LEFT(B2:B100,3)<"AER"),I2:I100)

and

=SUMPRODUCT(--(A2:A100="FPG"),--(LEFT(B2:B100,3)<"AER"))

Hope this helps!

http://www.xl-central.com

In article ,
hal1011 wrote:

The results of these formulas are still only taking into account the first
set of critiera (FPG) and not the second. I am basically trying to apply the
same logic of a custom filter on the data in column B to include anything
that does not begin with AER. Any other advice?

"Domenic" wrote:

Try...

=SUMPRODUCT(--(A2:A100="FPG"),--(B2:B100<"AER"),I2:I100)

and

=SUMPRODUCT(--(A2:A100="FPG"),--(B2:B100<"AER"))

Hope this helps!

http://www.xl-central.com

In article ,
hal1011 wrote:

I am using the following formulas which work fine.

=SUMIF(B2:B145,"AER*",I2:I145)

=COUNTIF(B2:B145,"AER*")

I would like to use similar formula to sum values in Column I, if Column
A
contains ‰裉FPG‰� and Column B does not contain ‰裉AER*‰�.

Also would like to use a similar formula to count values in Column B if
Column A contains ‰裉FPG‰� and Column B does not contain ‰裉AER*‰�.

Can someone help?




All times are GMT +1. The time now is 10:26 PM.

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