Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do i copy a vlookup formula into other cells going right

I have a vlookup formular in one cell, if i copy it downwards in the same
column its giving me the correct values Im looking for, but if i try to copy
it to the right its copying the same values across. I want it to copy the
values that correspond to the cells and not the value of the cell im coping
from. what do i need to do? Please help

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default How do i copy a vlookup formula into other cells going right

Well, first of all you can post your formula.

But without that, here are some things to consider:

if you have something like this:

=VLOOKUP(A2,Sheet1!A$1:F$100,2,0)

then when you copy to the right it will become:

=VLOOKUP(B2,Sheet1!B$1:G$100,2,0)

so you will need to anchor the column references in the formula, like
this:

=VLOOKUP($A2,Sheet1!$A$1:$F$100,2,0)

However, you also need the 3rd parameter to change as you copy it
across, and you can achieve this by using the COLUMN function. So,
that formula would become:

=VLOOKUP($A2,Sheet1!$A$1:$F$100,COLUMN(B1),0)

and then you can copy this 4 columns to the right (as the table is
only defined to column F).

Hope this helps.

Pete

On Dec 12, 10:28*am, km440 wrote:
I have a vlookup formular in one cell, if i copy it downwards in the same
column its giving me the correct values Im looking for, but if i try to copy
it to the right its copying the same values across. I want it to copy the
values that correspond to the cells and not the value of the cell im coping
from. what do i need to do? Please help


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with copy/paste VLOOKUP formula GKW in GA Excel Discussion (Misc queries) 12 May 19th 23 03:44 AM
Copy VLookup formula from one spreadsheet to another [email protected] Excel Discussion (Misc queries) 4 May 10th 21 03:58 PM
Vlookup Copy Formula Joe K. Excel Worksheet Functions 2 November 19th 08 03:34 PM
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
Copy VLOOKUP Formula EMarre Excel Discussion (Misc queries) 4 October 21st 05 04:05 PM


All times are GMT +1. The time now is 11:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"