I am trying to write a formula that will pull sales data from one sheet (FY21 Sales) into another (OPT) based on the fiscal year in the OPT sheet and matching project numbers in both the FY21 Sales sheet and the OPT sheet.
For example, if project number 1234 listed on the OPT has a FY of 2021, then I want the OPT to search the FY21 Sales sheet for project number 1234 and pull any sales data that is associated with that project number. If there is no matching project number and data cannot be pulled from FY21 Sales, then I want a zero to appear in the cell where the sales data would have been on the OPT sheet.
So far, I have managed to use an IFERROR/VLOOKUP formula to pull the sales data, however I cannot seem to nest it properly with the IF statement to incorporate the fiscal year portion of my formula. The formulas I am currently trying to nest are below.
=IFERROR(VLOOKUP([Project Number]@row, {NSD November FY21 Sales Range 1}, 3, false), 0)
=IF([Estimated Award FY]@row = "2021", 0, 1)
Any help is appreciated. If there is a different way to do this, I would love to know how.
Thank you!