Vlookup paste special problems

ndcam78

New Member
Joined
Jun 6, 2011
Messages
3
Hi, I have office 2007 on windows XP (SP3)
I have a list of numbers in Column A (65000 rows)
I need to paste different Vlookup formulas in to 6 columns (1 formula in each column) after this, The formula checks a user data sheet and fills in all address details etc.
Problem is when I paste special the formula into any column it completes all the way down to line 150000. I have tried using ignore blanks and filtering and removing blanks (this takes too long and crashes spreadsheet)

How can I paste the formula to just search what is required (65000 lines not the whole sheet) Again it would take too long to select every column for 65000 lines and past into the selection.

Formula I use is:
=VLOOKUP(A2,'User Details'!$A$2:$G$65000,2,FALSE)
:confused::confused::confused:
 
Last edited:

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi, I have office 2007 on windows XP (SP3)
I have a list of numbers in Column A (65000 rows)
I need to paste different Vlookup formulas in to 6 columns (1 formula in each column) after this, The formula checks a user data sheet and fills in all address details etc.
Problem is when I paste special the formula into any column it completes all the way down to line 150000. I have tried using ignore blanks and filtering and removing blanks (this takes too long and crashes spreadsheet)

How can I paste the formula to just search what is required (65000 lines not the whole sheet) Again it would take too long to select every column for 65000 lines and past into the selection.

Formula I use is:
=VLOOKUP(A2,'User Details'!$A$2:$G$65000,2,FALSE)
:confused::confused::confused:



You Obviously have spaces trailing the numbers in column A

Code:
Public Sub CleanofSpaces()
Dim c As Range
ActiveSheet.UsedRange.Select
For Each c In Selection
    If (Not IsNumeric(c.Value)) And (Not c.HasFormula) Then
 
        c.Value = Trim(c.Value)
    End If
 
Next c
End Sub

Paste this into a new modules in VBA

compile

save workbook

highlight column A and run CleanofSpaces macro

Then try putting your formulas in copying down
 
Last edited:
Upvote 0
Thanks.

I have no idea how to use VBA or even how to find it in excel 2007.
Use to be in tools lol

I will try a few things hope it solves it. Thanks again;)
 
Upvote 0

Forum statistics

Threads
1,224,607
Messages
6,179,871
Members
452,948
Latest member
UsmanAli786

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