Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SUM with Nested IF and using OR 1

Status
Not open for further replies.

planopeets

IS-IT--Management
Jul 20, 2003
16
US
I have the below statement to sum the number of FTE's for a Job Function. I want to add an OR type condition to the below statement, so it is adding 2 or more Job Functions, for example Job_Function = "Business Consultant" or Job_Function = "Programmer".

Thoughts on how to do this?

=SUM(IF(Job_Function=&quot;Business Consultant&quot;,IF(Start_Date<=$A21,IF(End_Date>=$A21,(1*Allocated)))))
 
=SUM(IF(Job_Function={&quot;Business Consultant&quot;,&quot;Programmer&quot;},IF(Start_Date<=$A21,IF(End_Date>=$A21,(1*Allocated)))))

Array entered - CTRL+ENTER+SHIFT

Regards
Ken...............
 
And the other option of course, is as follows:-

=SUMPRODUCT((Job_Function={&quot;Business Consultant&quot;,&quot;def&quot;})*(Start_Date<=$A21)*(End_Date>=$A21)*(1*Allocated))

Regards
Ken.............
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top