Array Formula

WillR

Well-known Member
Joined
Feb 18, 2002
Messages
1,143
Is there any way to have two conditions in an array formula (sorry if this is easy - bit thick today)
I typed in the formula below (which works
with just the one condition) but it doesn't seem to work when I add the AND bit...
can anyone help - I want the sum of array ak2:ak63707 where conditions in both col a & col b are met....

(this is formula that dont work)
=SUM(IF(AND('Jan 2002 Data'!$B$2:$B$63707=$C21,'Jan 2002 Data'!$A$2:$A$63707='GB(1078)'!$B$1),'Jan 2002 Data'!$AK$2:$AK$63707))

cheers,

Will :mad:
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
On 2002-04-16 05:52, WillR wrote:
Is there any way to have two conditions in an array formula (sorry if this is easy - bit thick today)
I typed in the formula below (which works
with just the one condition) but it doesn't seem to work when I add the AND bit...
can anyone help - I want the sum of array ak2:ak63707 where conditions in both col a & col b are met....

(this is formula that dont work)
=SUM(IF(AND('Jan 2002 Data'!$B$2:$B$63707=$C21,'Jan 2002 Data'!$A$2:$A$63707='GB(1078)'!$B$1),'Jan 2002 Data'!$AK$2:$AK$63707))

cheers,

Will :mad:

Not tested:

=SUMPRODUCT(('Jan 2002 Data'!$B$2:$B$63707=$C21)*('Jan 2002 Data'!$A$2:$A$63707='GB(1078)'!$B$1),'Jan 2002 Data'!$AK$2:$AK$63707)

you don't need to array enter this
 
Upvote 0

Forum statistics

Threads
1,214,905
Messages
6,122,172
Members
449,071
Latest member
cdnMech

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