Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Excel Problem – Please help (https://www.warriorforum.com/programming/313786-excel-problem-please-help.html)

staffjam 11th January 2011 01:16 PM

Excel Problem – Please help
 
I’m not sure if this is the correct place to post this question – but i’m hoping there is an excel guru here who may be able to help (it’s Excel 07)

I’m currently trying to merge two spreadsheets i have – one has about 40,000 (List A) entries and the other 10,000 (List B)
What i would like to do is merge the two lists and any duplicates will be removed – but ONLY from List A – i would like List B to remain intact.

List A is pretty rough information and List B is work i have already done – so i just want the duplicates from List A to be deleted.

I have tried labelling them both and then using the remove duplicates – but excel doesn’t discriminate – it just takes them from both of the lists.

Does anyone have any ideas what i need to do here??

Thanks for any help you can offer.

tryinhere 11th January 2011 01:20 PM

Re: Excel Problem – Please help
 
sure that will be easy enough to do give me 2 seconds i will rustle up some code for you.

create a spread sheet

in col c (paste your column a data)
in col e (paste your column b data) (start in the same row as col c)

in col b paste this formula

=IF(ISERROR(MATCH(C5,$E$5:$E$37,0)),"","X")

edit the E$5:$E$37 section to the col e data size for example if your starting at row 1 and end at row 12345 edit those numbers

drag that formula to the bottom the data in col c

all of the cells in col b with an X are duplicates of col e

you can now copy n paste special all of that page / take column e and cut it and paste to the bottom of col c

sort cols b and c together to place the X at the top then delete those rows and what you have left is what you asked for

a long winded way but easiest way besides me doing it.

staffjam 11th January 2011 02:06 PM

Re: Excel Problem – Please help
 
Thanks for the help - sadly i just can't get it to work properly - the x's are appearing by the side of sites that aren't duplicates.

tryinhere 11th January 2011 02:10 PM

Re: Excel Problem – Please help
 
Quote:

Originally Posted by staffjam (Post 3163542)
Thanks for the help - sadly i just can't get it to work properly - the x's are appearing by the side of sites that aren't duplicates.

buddy i will send you my email in a pm and sort it in 2 seconds for you
Pete

or reversve the formula and re do it / try \/ that one / edit before dragging down as before

=IF(ISERROR(MATCH(C5,$E$5:$E$37,0)),"X","")

Ambius 11th January 2011 03:05 PM

Re: Excel Problem – Please help
 
I don't think you need any fancy formulas, just a little procedural logic.

open sheet A. scroll to the bottom and create a new row with ############# (just to show where sheet A ends)

import sheet B below sheet A

use excel remove duplicates tool

now manually delete all of sheet B rows (below the ###########)

now import B again. all the duplicate values from A are gone and all the correct values from B are present.


wasn't that fun?
give me "thanks" if it worked. ;)

50dolars 12th January 2011 02:46 AM

Re: Excel Problem – Please help
 
Quote:

Originally Posted by Ambius (Post 3163863)
I don't think you need any fancy formulas, just a little procedural logic.

open sheet A. scroll to the bottom and create a new row with ############# (just to show where sheet A ends)

import sheet B below sheet A

use excel remove duplicates tool

now manually delete all of sheet B rows (below the ###########)

now import B again. all the duplicate values from A are gone and all the correct values from B are present.


wasn't that fun?
give me "thanks" if it worked. ;)

I found this very reasonable. You should choose this


All times are GMT -6. The time now is 03:12 AM.