Need help Matching numbers

vatsk

New Member
Joined
Jan 13, 2010
Messages
5
I have a very large file with two columns with about 40,000 rows, is there an excel formula to match the same numbers in column A to the same numbers in column B and all the other non matching numbers to be pushed to the bottom of the columns?? please help me
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Use vlookup, something like

=if(iserror(vlookup(a1,b:b,1,false)),100,1)


will populate with 1 where the number in a1 is in col b, and with 100 if not, then sort on this data
 
Upvote 0
Thanks, but is that get me all the matchs or just do i have to but one at a time in??? thanks
 
Upvote 0
Thanks, that helped alot, is there any way i could get the matching numbers side by side without searching for it after i know where is a match, because looking through 40,000 items to find one match is alot of work, thanks
 
Upvote 0
Can't really understand what you are trying to do. It would be helpful for you to provide a detailed description and screen shots, se we can help you.
 
Upvote 0
Maybe it's a starting point, maybe not,, But I worked on this awhile ealier today.

Col A & B (after header row) are 15 numbers

I created Col C & D to cross-reference whether the Larter numbers
were there or not, maintaining the numbers or making 0 if too Low.

Col E & F are meant to sort High to Low...
Excel Workbook
ABCDEF
1abcdef
2107010709090
32012008080
4552007070
5301030106060
6408040805050
75035004040
844900903030
9602060202020
10334001010
117030703000
1280580000
13224004000
1490690000
15115005000
16126006000
Sheet1
Excel 2003
Cell Formulas
RangeFormula
C2=IF(COUNTIF($B$2:$B$16,A2),A2,0)
C3=IF(COUNTIF($B$2:$B$16,A3),A3,0)
C4=IF(COUNTIF($B$2:$B$16,A4),A4,0)
C5=IF(COUNTIF($B$2:$B$16,A5),A5,0)
C6=IF(COUNTIF($B$2:$B$16,A6),A6,0)
C7=IF(COUNTIF($B$2:$B$16,A7),A7,0)
C8=IF(COUNTIF($B$2:$B$16,A8),A8,0)
C9=IF(COUNTIF($B$2:$B$16,A9),A9,0)
C10=IF(COUNTIF($B$2:$B$16,A10),A10,0)
C11=IF(COUNTIF($B$2:$B$16,A11),A11,0)
C12=IF(COUNTIF($B$2:$B$16,A12),A12,0)
C13=IF(COUNTIF($B$2:$B$16,A13),A13,0)
C14=IF(COUNTIF($B$2:$B$16,A14),A14,0)
C15=IF(COUNTIF($B$2:$B$16,A15),A15,0)
C16=IF(COUNTIF($B$2:$B$16,A16),A16,0)
D2=IF(COUNTIF($A$2:$A$16,B2),B2,0)
D3=IF(COUNTIF($A$2:$A$16,B3),B3,0)
D4=IF(COUNTIF($A$2:$A$16,B4),B4,0)
D5=IF(COUNTIF($A$2:$A$16,B5),B5,0)
D6=IF(COUNTIF($A$2:$A$16,B6),B6,0)
D7=IF(COUNTIF($A$2:$A$16,B7),B7,0)
D8=IF(COUNTIF($A$2:$A$16,B8),B8,0)
D9=IF(COUNTIF($A$2:$A$16,B9),B9,0)
D10=IF(COUNTIF($A$2:$A$16,B10),B10,0)
D11=IF(COUNTIF($A$2:$A$16,B11),B11,0)
D12=IF(COUNTIF($A$2:$A$16,B12),B12,0)
D13=IF(COUNTIF($A$2:$A$16,B13),B13,0)
D14=IF(COUNTIF($A$2:$A$16,B14),B14,0)
D15=IF(COUNTIF($A$2:$A$16,B15),B15,0)
D16=IF(COUNTIF($A$2:$A$16,B16),B16,0)
E2=LARGE($D$2:$D$16,ROW()-1)
E3=LARGE($D$2:$D$16,ROW()-1)
E4=LARGE($D$2:$D$16,ROW()-1)
E5=LARGE($D$2:$D$16,ROW()-1)
E6=LARGE($D$2:$D$16,ROW()-1)
E7=LARGE($D$2:$D$16,ROW()-1)
E8=LARGE($D$2:$D$16,ROW()-1)
E9=LARGE($D$2:$D$16,ROW()-1)
E10=LARGE($D$2:$D$16,ROW()-1)
E11=LARGE($D$2:$D$16,ROW()-1)
E12=LARGE($D$2:$D$16,ROW()-1)
E13=LARGE($D$2:$D$16,ROW()-1)
E14=LARGE($D$2:$D$16,ROW()-1)
E15=LARGE($D$2:$D$16,ROW()-1)
E16=LARGE($D$2:$D$16,ROW()-1)
F2=LARGE($C$2:$C$16,ROW()-1)
F3=LARGE($C$2:$C$16,ROW()-1)
F4=LARGE($C$2:$C$16,ROW()-1)
F5=LARGE($C$2:$C$16,ROW()-1)
F6=LARGE($C$2:$C$16,ROW()-1)
F7=LARGE($C$2:$C$16,ROW()-1)
F8=LARGE($C$2:$C$16,ROW()-1)
F9=LARGE($C$2:$C$16,ROW()-1)
F10=LARGE($C$2:$C$16,ROW()-1)
F11=LARGE($C$2:$C$16,ROW()-1)
F12=LARGE($C$2:$C$16,ROW()-1)
F13=LARGE($C$2:$C$16,ROW()-1)
F14=LARGE($C$2:$C$16,ROW()-1)
F15=LARGE($C$2:$C$16,ROW()-1)
F16=LARGE($C$2:$C$16,ROW()-1)
 
Upvote 0
Vatsk

Did you do as Steve059L suggested, that is, perform a sort.

I would sort on column 3 (the resultant from the formulae) and column 1.

You could then highlight all three (3) colums and use Subtotally to provide you with a count.

Menu option <Data> <Subtotal>

Alan
 
Upvote 0
Vatsk

Sorry the menu option was removed because I use symbols to enclose option.

Menu Data Subtotal
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top