Vlookup

kenpcli

Board Regular
Joined
Oct 24, 2017
Messages
129
How do I get my vlookup to copy down to last cell in column.

Range("D2").Select
ActiveCell.Formula = "=VLOOKUP(C2,'01-07 TO 01-13'!$C:$E,2,0)"
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Code:
Range("D2:D" & Range("D" & Rows.Count).End(xlUp).Row).Formula = "=VLOOKUP(C2,'01-07 TO 01-13'!$C:$E,2,0)"

Untested ...

WBD
 
Upvote 0
ok so if I use that add to it say:

=IF(ISNA(VLOOKUP(C2,'12-31 TO 01-06'!$C$1:$E$1000,2,FALSE)),NONE,VLOOKUP(C2,'01-07 TO 01-13'!$C$1:$E$1000,2,FALSE))

how do I get VB to let me input a word? it does like when I put "NONE". IS ERRORS
By the way the first part works great.
 
Upvote 0
Code:
Range("D2:D" & Range("D" & Rows.Count).End(xlUp).Row).Formula = "=IF(ISNA(VLOOKUP(C2,'12-31 TO 01-06'!$C$1:$E$1000,2,FALSE)),""NONE"",VLOOKUP(C2,'01-07 TO 01-13'!$C$1:$E$1000,2,FALSE))"

WBD
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,185
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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