Hi, I have a formula which does a lookup against an Id, and matches it in another sheet and returns a column, a bit like a vlookup apart from this gives me the option to do a +1 at the end of the formula to get multiple rows. This means i can retreive data for a required person, and pull multiple rows. However, i dont know how to put a condition that if the ID no longer matches, to stop pulling the data.
So far I have this.
=INDEX(Data!D:D,MATCH(Cover!$C$9,Data!$C:$C,0))
Data!D is the column of data i want, and in column C in "cover" i have a list of IDs, and it looks up that ID in column C of Data, and then gives me column D. between the two end )s, i have added a +1 to give me this...
=INDEX(Data!D:D,MATCH(Cover!$C$9,Data!$C:$C,0)+1)
I put this in the cell below the original formula and it gives me multiple data, which is great if that "ID" has 2 jobs i need. Is there some kind of sum product or match formula I can do against the original formula to see if the ID still matches, as with my version, it is only matching the first instance then going down one row, i would prefer it to go down one row and then see if the IDs still match, if they do great pull the data, but if they dont leave it blank.
then i can pull this formula down +2, +3 etc and have it for 100 rows, and if an ID has 100 jobs it will work, and if it has 1, it will work.
As at the moment it is pulling rows of data for people listed after this ID im looking for.
any clues? thanks
So far I have this.
=INDEX(Data!D:D,MATCH(Cover!$C$9,Data!$C:$C,0))
Data!D is the column of data i want, and in column C in "cover" i have a list of IDs, and it looks up that ID in column C of Data, and then gives me column D. between the two end )s, i have added a +1 to give me this...
=INDEX(Data!D:D,MATCH(Cover!$C$9,Data!$C:$C,0)+1)
I put this in the cell below the original formula and it gives me multiple data, which is great if that "ID" has 2 jobs i need. Is there some kind of sum product or match formula I can do against the original formula to see if the ID still matches, as with my version, it is only matching the first instance then going down one row, i would prefer it to go down one row and then see if the IDs still match, if they do great pull the data, but if they dont leave it blank.
then i can pull this formula down +2, +3 etc and have it for 100 rows, and if an ID has 100 jobs it will work, and if it has 1, it will work.
As at the moment it is pulling rows of data for people listed after this ID im looking for.
any clues? thanks