Lot Number Customer Number Buyer Number Price Description Buyer Number
1 0005 53 800 a 56
2 0008 56 200 b 800
3 0009 59 300 c
here is what I have in the last column I have entered 56 and the the number right below should pull the prices and items of what this customer paid for. My formula is returning the information for lot 1 for all scenarios, however subsequent information is correct, meaning the if they bought more than one lot number that is information is correct. Here is my formula where the 800 is pulling, for exampel buyer number 56.
IF(ROWS(N$16:N16)<=COUNTIF(J$16:J$100,M$16),INDEX(K$16:K$24,SMALL(IF(J$16:J$24=M$16,ROW(J$16:J$24)-ROW(J$16)+1),ROWS(N$16:N16))),"")
please help!
Bookmarks