This is what I have:
=SUMIF(Profit!D:D,VLOOKUP(Profit!D2,SlotCodes!A:C,3)={1,3},Profit!E:E)
And it doesn't work! What is wrong?
This is what I want it to do:
Worksheets involved: Forecast, Profit, SlotCodes
On Forecast, lookup the code (either 2 letters or 2 numbers) in column D on Profit. Match that code in column A on SlotCodes. Lookup answer is in column C (possible choices, 1,2,3,4).
Take that answer, and if it is a 1 or 3, then sum the cooresponding column E on Profit.
So, the sum of column E on Profit that coorespondes to a 1 or 3 needs to go in cell B2 on the Forecast worksheet.
Does that make sense?
Thanks.
Alisa
Bookmarks