hi, i used it and its good but when i used search formula in my actual sheet it not working im sending pls check it.
it only shows when it took loan, and if take salary it should not show it
regds waseem
hi, i used it and its good but when i used search formula in my actual sheet it not working im sending pls check it.
it only shows when it took loan, and if take salary it should not show it
regds waseem
Instead of using range addresses, like $C$7:$C$12, I used named ranges as follows.
It's easier to manage dynamic ranges when they are named. But if you prefer you can replace the names in the formulas below with addresses, like $C$7:$C$30.
The formula velow will retrieve the date. It uses Excel's AGGREGATE function instead of an array formula.
=IFERROR(AGGREGATE(15,6,Dates/((Names=$E$3)*(Desc=$F$3)),ROW()-6),"")
The next formula is more like the one you had. It's an array formula and retrieves the amount. It stumped for a while because I tried to get the row number of the found date. I didn't succeed. The formula relies on dates being in consecutive order.
=IFERROR(INDEX(Amounts,SMALL(IF((Names=$E$3)*(Desc=$F$3),ROW(Dates)-ROW(INDEX(Dates,1,1))+1),ROW()-6)),"")
Both are designed for use in the 7th row of your worksheet. This is to provide a counter for the SMALL() function. In row 7 ROW()-6 = 1, in row 8 ROW()-6 = 2 etc. So, you need to change the fixed number 6 to a number one smaller than the row in which you have the original formula before copying down.