S
Scruff57
I am trying to set up an array formula to calculate data based on employee id. This same formula works with similar data on another worksheet, but for some reason I can't get it to work with this other worksheet. I know I am missing something stupid, perhaps someone can show me my error.
Worksheet1 - raw data
1 A B C D
2 Date center emplID total1
named ranges include
bbtAgentID = (C3:C20000)
bbtUseAppr = (D320000)
bbtUseDate = (A3:A20000)
The results should be based on the following parameters
Agent ID as listed in cell B1
Date range starting - J8
Date range ending - J7
results should be the sum of all the numbers in col D for that agentID between the dates listed in J7 and J8
the formula I am trying to get to work is
{=SUMPRODUCT(IF(($B$1=bbtAgentID)*(J8<=bbtUseDate)*(J7>=bbtUseDate),(bbtUseAppr)))}
I get no results with this formula, but I can if I filter the data on the worksheet. The data falls within the range of the name ranges. I use this same formula on another worksheet, changing the names to the appropriate ones and it works, What am I doing wrong here?
Worksheet1 - raw data
1 A B C D
2 Date center emplID total1
named ranges include
bbtAgentID = (C3:C20000)
bbtUseAppr = (D320000)
bbtUseDate = (A3:A20000)
The results should be based on the following parameters
Agent ID as listed in cell B1
Date range starting - J8
Date range ending - J7
results should be the sum of all the numbers in col D for that agentID between the dates listed in J7 and J8
the formula I am trying to get to work is
{=SUMPRODUCT(IF(($B$1=bbtAgentID)*(J8<=bbtUseDate)*(J7>=bbtUseDate),(bbtUseAppr)))}
I get no results with this formula, but I can if I filter the data on the worksheet. The data falls within the range of the name ranges. I use this same formula on another worksheet, changing the names to the appropriate ones and it works, What am I doing wrong here?