ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Adds Extra Condition (https://www.excelbanter.com/excel-programming/315227-adds-extra-condition.html)

Michael168[_120_]

Adds Extra Condition
 

Hi!,

In cell K56 has below array formula
=SUM(IF(Full!$AJ$9:$AJ$2038=1,IF(Full!$AC$9:$AC$20 38=1,1,0)))

to

cell Q62
=SUM(IF(Full!$AP$9:$AP$2038=1,IF(Full!$AI$9:$AI$20 38=1,1,0)))

I like to add in another condition to the all the array formulas in
cell K56:Q62.

e.g. the new formula in Cell K56 becomes
=SUM(IF(Full!$K$9:$K$2038=4,IF(Full!$AJ$9:$AJ$2038 =1,IF(Full!$AC$9:$AC$2038=1,1,0))))

How to use vba to add in the extra condition to the existing array
formula?

Regards
Michael


--
Michael168
------------------------------------------------------------------------
Michael168's Profile: http://www.excelforum.com/member.php...nfo&userid=605
View this thread: http://www.excelforum.com/showthread...hreadid=273640


Frank Kabel

Adds Extra Condition
 
Hi
you may consider using SUMPRODUCT. See:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--
Regards
Frank Kabel
Frankfurt, Germany


Michael168 wrote:
Hi!,

In cell K56 has below array formula
=SUM(IF(Full!$AJ$9:$AJ$2038=1,IF(Full!$AC$9:$AC$20 38=1,1,0)))

to

cell Q62
=SUM(IF(Full!$AP$9:$AP$2038=1,IF(Full!$AI$9:$AI$20 38=1,1,0)))

I like to add in another condition to the all the array formulas in
cell K56:Q62.

e.g. the new formula in Cell K56 becomes

=SUM(IF(Full!$K$9:$K$2038=4,IF(Full!$AJ$9:$AJ$2038 =1,IF(Full!$AC$9:$AC$
2038=1,1,0))))

How to use vba to add in the extra condition to the existing array
formula?

Regards
Michael




All times are GMT +1. The time now is 03:40 PM.

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