Hello,
I've got the following problem, i would like to compare a value, if there is an match, copy 3 lines to another sheet. And repeat this step until te last line.
It's rather complicated for me because in "row 2" there can be the same value but that only has to be copied, not matched again.
I've created an example, please take a look.
Thanks in advance.
ABBOV
Last edited by ABBOV; 12-21-2010 at 02:52 AM.
See attached.
Added helper column in Blad2 with formula in J3:
copied down. This to tag the matching records to pull=IF(AND(E3<>Blad1!$G$2,E2<>Blad1!$G$2,TRIM(E3)<>""),"",IF(OR(AND(TRIM(E2)="",E3=Blad1!$G$2),ISNUMBER(Blad2!J2)),COUNT(Blad2!$J$2:J2)+1,""))
Then in K3, formula to get count of records:
Then in Blad1 to get the records, in A8:=MAX(J:J)
copied down as far as you need and across the columns.=IF(ROWS($A$1:$A1)>Blad2!$K$3,"",INDEX(Blad2!A:A,MATCH(ROWS($A$1:$A1),Blad2!$J:$J,0)))
Format these columns as Custom: 0;-0;;@ to suppress the 0's for blanks retrieved.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Hello NBVC,
Thanks for the response, it set me in the right directoin, it seems to be working fine but i've got a small problem.
When the cell value is above 255 characters, the formula results in ######. Is there a quick solution for this?
Thanks in advance.
ABBOV
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks