#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Autofill Formula


Hello,

I am having some trouble with the clicking and dragging to autofill a
vlookup formula. I currently have a Vlookup referenced to a second data
sheet and when I click and drag down to copy the formula, I would like
the lookup value to change, but not the table reference values for
example, I would like it to show like this as oppose to changing the
referenced "PA Data" rows:

=VLOOKUP(H994,'PA Data'!B2:G1427,6,FALSE)
=VLOOKUP(H995,'PA Data'!B2:G1427,6,FALSE)
=VLOOKUP(H996,'PA Data'!B2:G1427,6,FALSE)
=VLOOKUP(H997,'PA Data'!B2:G1427,6,FALSE)

Can I change the autofill to do this instead of changing the rows on
the reference sheet as well?

Thanks


--
tqdinh22
------------------------------------------------------------------------
tqdinh22's Profile: http://www.excelforum.com/member.php...o&userid=36453
View this thread: http://www.excelforum.com/showthread...hreadid=562233

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Autofill Formula

Look up relative and absolute cell references in the Help files.

Your formula should look like this:

=VLOOKUP(H994,'PA Data'!$B$2:$G$1427,6,FALSE)

*Before* copying own.
The $ signs prevent cell references from incrementing during a "Copy".
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"tqdinh22" wrote in
message ...

Hello,

I am having some trouble with the clicking and dragging to autofill a
vlookup formula. I currently have a Vlookup referenced to a second data
sheet and when I click and drag down to copy the formula, I would like
the lookup value to change, but not the table reference values for
example, I would like it to show like this as oppose to changing the
referenced "PA Data" rows:

=VLOOKUP(H994,'PA Data'!B2:G1427,6,FALSE)
=VLOOKUP(H995,'PA Data'!B2:G1427,6,FALSE)
=VLOOKUP(H996,'PA Data'!B2:G1427,6,FALSE)
=VLOOKUP(H997,'PA Data'!B2:G1427,6,FALSE)

Can I change the autofill to do this instead of changing the rows on
the reference sheet as well?

Thanks


--
tqdinh22
------------------------------------------------------------------------
tqdinh22's Profile:
http://www.excelforum.com/member.php...o&userid=36453
View this thread: http://www.excelforum.com/showthread...hreadid=562233


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
assign formula to another cell Dannycol Excel Worksheet Functions 3 May 12th 06 09:46 PM
Excel formula for autofill information blitzz008 Excel Discussion (Misc queries) 0 April 20th 06 05:51 PM
Question about Autofill with a formula Corben Excel Discussion (Misc queries) 14 April 16th 06 11:24 AM
"Unable to set the Formula property of the Series class" with a tw PeterQ Charts and Charting in Excel 1 February 15th 06 07:37 PM
Can I use AutoFill or a formula to fill a series of letters? tadpgk835 Excel Discussion (Misc queries) 3 April 28th 05 02:46 PM


All times are GMT +1. The time now is 03:32 PM.

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

About Us

"It's about Microsoft Excel"