[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 179
  • Last Modified:

Syntax, sumif

Hi, i get a syntax in the below.  I added iif(A2 = "","", and not sure where I need the parenthesis.  Thank you.  The sumif works fine without the addition.  


=iif(A2 = "","",(SUMIF(Magal!$F$2:$F$200,Summary!A2,Magal!$D$2:$D$200)+SUMIF(Jack!$F$2:$F$201,Summary!A2,Jack!$D$2:$D$201)+SUMIF(Tony!$F$2:$F$200,Summary!A2,Tony!$D$2:$D$200))
0
pdvsa
Asked:
pdvsa
1 Solution
 
barry houdiniCommented:
Surely just IF.....?

=IF(A2="","",SUMIF(Magal!$F$2:$F$200,Summary!A2,Magal!$D$2:$D$200)+SUMIF(Jack!$F$2:$F$201,Summary!A2,Jack!$D$2:$D$201)+SUMIF(Tony!$F$2:$F$200,Summary!A2,Tony!$D$2:$D$200))

and perhaps the first A2 should be Summary!A2?

regards, barry
0
 
pdvsaAuthor Commented:
Perfect.  thank you barry!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now