Can you use Vlookup to copy and paste?

crazybuckeyeguy

New Member
Joined
Apr 15, 2017
Messages
49
So in this report I am using I have created a template that is for pasting raw data. then I have a mast sheet that is sorted into columns as the table below. I am trying to write a vba that uses either vlookup like this: =VLOOKUP(B3,Calls!A:C,3,FALSE) for the aht and the column changes based on the acw. Im trying to have the data copy and paste in stead of the vlookup because I will need to keep adding onto the data. when AHT for 7.22 is full I will need the data to post in 7.29 in AHT and this will continue on forever. Any helpful ideas?

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]7.22[/TD]
[TD][/TD]
[TD][/TD]
[TD]7.29[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]AHT[/TD]
[TD]ACW[/TD]
[TD]ADH[/TD]
[TD]AHT[/TD]
[TD]ACW[/TD]
[TD]ADH[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Test[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Can you clarify a little better what you are trying to do? You have a "master sheet" that is sorted into columns ( as displayed). For the "AHT" column you want a vlookup to look for "Test" in a sheet called "Calls" Columns A:C and return the first value in column "C" it finds?

Vlookup searches for the first instance(Column A) and returns that value. It sounds like you perhaps are trying culminate many values that will have the criteria of "Test". Vlookup wont do that. What do you mean by "AHT for 7.22 is full"? You have at least 65K rows and up to over a million. Are 7.22 and 7.29, dates?
 
Upvote 0
Can you clarify a little better what you are trying to do? You have a "master sheet" that is sorted into columns ( as displayed). For the "AHT" column you want a vlookup to look for "Test" in a sheet called "Calls" Columns A:C and return the first value in column "C" it finds?

Yes

Vlookup searches for the first instance(Column A) and returns that value. It sounds like you perhaps are trying culminate many values that will have the criteria of "Test". Vlookup wont do that. What do you mean by "AHT for 7.22 is full"? You have at least 65K rows and up to over a million. Are 7.22 and 7.29, dates?
I guess the idea of the lookup is what I want. I want the formula to search by name and then copy and past the value associated with the header and the name.
I am looking for the VBA to copy and paste in column c and if there is no data just put N/A like the vlookup will do. then in a week we have to upload the next week of stats and run the VBA again but this time put AHT in column F and so on. This is only because we are storing month of data in this mast and then using other sheets with a vlookup to show those values. Does this help?
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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