How to add an AND condition in array formula

Terry P

Active Member
Joined
Nov 28, 2002
Messages
256
I have a formula
{=SUM(IF(Payments!$I$4:$I$998=B16,IF(Payments!$D$4:$D$998="Restricted",Payments!$E$4:$E$998,0),0))}

but want to add in an AND statement
Payments!$D$4:$D$998="Restricted" AND Payments!$D$4:$D$998=A6
Brain gone dead!
Please help
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Terry P said:
I have a formula
{=SUM(IF(Payments!$I$4:$I$998=B16,IF(Payments!$D$4:$D$998="Restricted",Payments!$E$4:$E$998,0),0))}

but want to add in an AND statement
Payments!$D$4:$D$998="Restricted" AND Payments!$D$4:$D$998=A6
Brain gone dead!
Please help

Looks like you're using the Conditional Sum Wizard. You could continue to use it...
 
Upvote 0
Sorry Mark just can't get my head around it


Sorry Juan
Payments!$D$4:$D$998="Restricted" AND Payments!$H$4:$H$998=A6
Brain totally dead!

Thanks both
 
Upvote 0
The wizard should give you a version like

{=SUM(IF(Payments!$I$4:$I$998=B16,IF(Payments!$D$4:$D$998="Restricted",IF(Payments!$H$4:$H$998=A6,Payments!$E$4:$E$998,0),0),0))}
 
Upvote 0
Terry P said:
Sorry Mark just can't get my head around it


Sorry Juan
Payments!$D$4:$D$998="Restricted" AND Payments!$H$4:$H$998=A6
Brain totally dead!

Thanks both

If the "it" above refers to the Conditional Sum wizard you ought to give it a 2nd look. It takes you by the hand when constructing such formulas.
 
Upvote 0
What's there to "figure out". You simply follow the guide provided by the wizard. Have you not worked with a wizard (i.e., Chart Wizard, Text to Columns Wizard, PivotTable Wizard) before?
 
Upvote 0
Thanks Juan. I thought I had tried that one but just not on my toes today.

Mark I have used the formula wizard before but only for rudementary formulae.

Thanks both
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,835
Members
449,051
Latest member
excelquestion515

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