I have two main data sources, and i want to get the data from website tab that are not esp tab.
And the results should display on tab Sheet1 and Sheet2
please check attached xls. and advise to generate code for it.
I have two main data sources, and i want to get the data from website tab that are not esp tab.
And the results should display on tab Sheet1 and Sheet2
please check attached xls. and advise to generate code for it.
Last edited by lemuel; 12-07-2012 at 04:27 PM.
First I made a key on Sheet1. You can hide this row if you like. It separates those on both website and esp ("WNE") and those only on Website ("WO") and numbers them starting at 0. The formula in Sheet1!A7 copied down is
=IF(ROW(A1)>COUNTA(website!C:C)-1,"",IF(ISNUMBER(MATCH(website!C2,esp!$B$2:$B$11,0)),"WNE_" &COUNTIF($A$6:A6,"WNE*"),"WO_"&COUNTIF($A$6:A6,"WO*")))
Then on Sheet1 in B7 dragged across and down
=IFERROR(INDEX(website!A$2:A$11,MATCH("WO_"&ROW(A1)-1, $A$7:$A$16,0)),"")
I did something similar on sheet2 except I referenced the key on sheet1 since it was already there
=IFERROR(INDEX(website!B$2:B$11,MATCH("WNE_"&ROW(A1)-1, Sheet1!$A$7:$A$16,0)),"")
See attachment
Does that work for you?
ChemistB
My 2?
substitute commas with semi-colons if your region settings requires
Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)
Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks