I am trying to combine these two formulas into one formula pulling information from two separate data sheets (one called contracts, the other called contracts 2) and comparing to the budget. This is the formula that works with one data sheet (contract), but when I try to combine using a different data sheet (contract 2) I receive a "VALUE" error. Can anyone help with combining these formulas please:
=IF($I4>1,0,SUMPRODUCT(--($B4=Contracts!$Z$2:$Z$1244),--($C4=Contracts!$AA$2:$AA$1244),--($D4=Contracts!$AB$2:$AB$1244),--($H4=Contracts!$AC$2:$AC$1244),--( Contracts!$AM$2:$AM$1244="Instructor"),--Contracts!$AE$2:$AE$1244))
=IF($I4>1,0,SUMPRODUCT(--($B4='Contracts2!'!$N$2:$N$464),--($C4='Contracts2'!$K$2:$K$464),--($D12='Contracts2'!$L$2:$L$464),--($H12='Contracts2'!$O$2:$O$464),--( 'Contracts2'!$Z$2:$Z$464="Instructor"),--'Contracts2'!$J$2:$J$464))
Any help is very much appreciated,
Thanks
=IF($I4>1,0,SUMPRODUCT(--($B4=Contracts!$Z$2:$Z$1244),--($C4=Contracts!$AA$2:$AA$1244),--($D4=Contracts!$AB$2:$AB$1244),--($H4=Contracts!$AC$2:$AC$1244),--( Contracts!$AM$2:$AM$1244="Instructor"),--Contracts!$AE$2:$AE$1244))
=IF($I4>1,0,SUMPRODUCT(--($B4='Contracts2!'!$N$2:$N$464),--($C4='Contracts2'!$K$2:$K$464),--($D12='Contracts2'!$L$2:$L$464),--($H12='Contracts2'!$O$2:$O$464),--( 'Contracts2'!$Z$2:$Z$464="Instructor"),--'Contracts2'!$J$2:$J$464))
Any help is very much appreciated,
Thanks