Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Paul Sheppard
 
Posts: n/a
Default Dragging/Copying Lookup Formulas


I have the following lookup formula in cell A5 :-

=HLOOKUP($A$3,Apr!$G$4:$AQ$300,37,0)

When I drag the formula down, the row index number 37 does not change,
so I have to manually change it

Is there a way of dragging the formula down so the row index number
changes automatically

This would save a lot of time as I have 300 rows of data


--
Paul Sheppard


------------------------------------------------------------------------
Paul Sheppard's Profile: http://www.excelforum.com/member.php...o&userid=24783
View this thread: http://www.excelforum.com/showthread...hreadid=530894

  #2   Report Post  
Posted to microsoft.public.excel.misc
paul
 
Posts: n/a
Default Dragging/Copying Lookup Formulas

use the row() function and add 32,as you copy down the row number wil change
with the row and you r modifier will take you to the row you want
--
paul
remove nospam for email addy!



"Paul Sheppard" wrote:


I have the following lookup formula in cell A5 :-

=HLOOKUP($A$3,Apr!$G$4:$AQ$300,37,0)

When I drag the formula down, the row index number 37 does not change,
so I have to manually change it

Is there a way of dragging the formula down so the row index number
changes automatically

This would save a lot of time as I have 300 rows of data


--
Paul Sheppard


------------------------------------------------------------------------
Paul Sheppard's Profile: http://www.excelforum.com/member.php...o&userid=24783
View this thread: http://www.excelforum.com/showthread...hreadid=530894


  #3   Report Post  
Posted to microsoft.public.excel.misc
Max
 
Posts: n/a
Default Dragging/Copying Lookup Formulas

"Paul Sheppard" wrote:
I have the following lookup formula in cell A5 :-
=HLOOKUP($A$3,Apr!$G$4:$AQ$300,37,0)
When I drag the formula down, the row index number 37 does not change,
so I have to manually change it
Is there a way of dragging the formula down so the row index number
changes automatically
This would save a lot of time as I have 300 rows of data


One way, assuming you want it to increment sequentially: 37, 38, 39 ...
as you copy down from A5.

In A5's formula, just replace the "37" with this incrementer: ROW()+32

Note that the incrementer is row sensitive, so if you subsequently insert
rows above A5, you have to amend the incrementer in A5 to suit (adjust the
"32"), and then refill down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
  #4   Report Post  
Posted to microsoft.public.excel.misc
Max
 
Posts: n/a
Default Dragging/Copying Lookup Formulas

... you have to amend the incrementer in A5 to suit

The "A5" referred to will now be eg: "A6" or "A7"
depending on how many rows are inserted above
(i.e. the new "starting cell" for the col of formulas)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
  #5   Report Post  
Posted to microsoft.public.excel.misc
Paul Sheppard
 
Posts: n/a
Default Dragging/Copying Lookup Formulas


Thanks Guys

Sorted


--
Paul Sheppard


------------------------------------------------------------------------
Paul Sheppard's Profile: http://www.excelforum.com/member.php...o&userid=24783
View this thread: http://www.excelforum.com/showthread...hreadid=530894



  #6   Report Post  
Posted to microsoft.public.excel.misc
Tibbs
 
Posts: n/a
Default Dragging/Copying Lookup Formulas


The way I do it is to have a line of numbers (37,38,39,40,41, etc etc)
and reference off that, so your formula would look like:

=HLOOKUP($A$3,Apr!$G$4:$AQ$300,D3,0)

You just need to put the dollar signs in the appropriate place. I can
never remember which way round they go!

HTH,

Chris


--
Tibbs
------------------------------------------------------------------------
Tibbs's Profile: http://www.excelforum.com/member.php...o&userid=15947
View this thread: http://www.excelforum.com/showthread...hreadid=530894

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
Lookup function help marlea Excel Worksheet Functions 4 August 30th 05 08:11 PM
Lookup Vector > Lookup Value Alec Kolundzic Excel Worksheet Functions 6 June 10th 05 02:14 PM
How do I highlight all lookup formulas in a worksheet in one shot. JT Excel Discussion (Misc queries) 7 March 4th 05 10:35 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


All times are GMT +1. The time now is 10:50 PM.

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"