Hi All,
I have table data as show below with 3 column of information like agentname, program name and date. In the next column I have place holder for entering program name and date.
Now, the given date and program, I need the list of agent names in last column.
My data looks like this:
I tried using the formula like this in List col:
=INDEX($D$198:$D$210,SMALL(SUMPRODUCT(($C$2:$C$14=$E$2)*($B$2:$B$14=$E$1)*(ROW($A$2:$A$14))),1))
=INDEX($D$198:$D$210,SMALL(SUMPRODUCT(($C$2:$C$14=$E$2)*($B$2:$B$14=$E$1)*(ROW($A$2:$A$14))),2))
=INDEX($D$198:$D$210,SMALL(SUMPRODUCT(($C$2:$C$14=$E$2)*($B$2:$B$14=$E$1)*(ROW($A$2:$A$14))),3))
result is always 0 or #num, when i use the evaluate function, I realise that sumproduct is able to find the rows where my criteria meets, but before I list the smallest on them, it gets summedup and so the array for small() will have only one value and not the list of row numbers matching.
I can always go for vba code and PT, but want to learn formula based only, I know with some formulaes indirect(), address() or transpose () this can be done.
Looking for some help in this area.
Regards,
Prasad DN
I have table data as show below with 3 column of information like agentname, program name and date. In the next column I have place holder for entering program name and date.
Now, the given date and program, I need the list of agent names in last column.
My data looks like this:
Code:
AgentName ProgramName Date EnterProg Prog 3 List
Agent 3 Prog 3 3/16/2012 EnterDate 3/16/2012 0
Agent 2 Prog 3 3/16/2012
Agent 4 Prog 4 3/16/2012
Agent 2 Prog 5 3/16/2012
Agent 3 Prog 5 3/11/2012
Agent 1 Prog 1 3/11/2012
Agent 4 Prog 5 3/11/2012
Agent 1 Prog 3 3/11/2012
Agent 1 Prog 1 3/10/2012
Agent 2 Prog 2 3/10/2012
Agent 3 Prog 1 3/1/2012
Agent 4 Prog 1 3/1/2012
Agent 3 Prog 4 3/1/2012
I tried using the formula like this in List col:
=INDEX($D$198:$D$210,SMALL(SUMPRODUCT(($C$2:$C$14=$E$2)*($B$2:$B$14=$E$1)*(ROW($A$2:$A$14))),1))
=INDEX($D$198:$D$210,SMALL(SUMPRODUCT(($C$2:$C$14=$E$2)*($B$2:$B$14=$E$1)*(ROW($A$2:$A$14))),2))
=INDEX($D$198:$D$210,SMALL(SUMPRODUCT(($C$2:$C$14=$E$2)*($B$2:$B$14=$E$1)*(ROW($A$2:$A$14))),3))
result is always 0 or #num, when i use the evaluate function, I realise that sumproduct is able to find the rows where my criteria meets, but before I list the smallest on them, it gets summedup and so the array for small() will have only one value and not the list of row numbers matching.
I can always go for vba code and PT, but want to learn formula based only, I know with some formulaes indirect(), address() or transpose () this can be done.
Looking for some help in this area.
Regards,
Prasad DN