Originally Posted by
JBeaucaire
Here's a non-vba solution using array formulas:
B5: =IFERROR(INDEX(Sheet1!$C$1:$C$34, SMALL(IF((Sheet1!$B$1:$B$34=$B$2)*(TEXT(Sheet1!$C$1:$C$34, "MMMM")=$C$3)*(Sheet1!$J$1:$J$34="Yes"), ROW(Sheet1!$B$1:$B$34), ""), ROW(A1))), "")
C5: =IFERROR(INDEX(Sheet1!$G$1:$G$34, SMALL(IF((Sheet1!$B$1:$B$34=$B$2)*(TEXT(Sheet1!$C$1:$C$34, "MMMM")=$C$3)*(Sheet1!$J$1:$J$34="Yes"), ROW(Sheet1!$B$1:$B$34), ""), ROW(A1))), "")
...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
Once the B5 and C5 answers appear correctly, copy those two cells down the table.
Thanks for everyones input. I've dug into this one to start off with.
Actualy formula I am using is this one:
Problem is though, it's just returning a "0" now and again? Cannot figure out why that is?
As for the date, I am not as fussed about the specific dates for time being. The "CJ" number is the important part, but it's not pulling it properly?
Am I doing something wrong in that formula?
Bookmarks