Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Laffin
 
Posts: n/a
Default How do I copy formulas but using the same range each time I copy

I want to fill/copy a formula within a specific range but each time I try to
fill or sopy it changes the range it is supposed to looking in so I am
getting errors.

For example,

Row 1 - =LOOKUP(J2,Sheet1!A2:A153,Sheet1!B2:B153)
Row 2 - =LOOKUP(J3,Sheet1!A2:A153,Sheet1!B2:B153)

But, if I just copy or fill I am getting the second row showing up as:
=LOOKUP(J3,Sheet1!A3:A154,Sheet1!B3:B154) instead of as Row 2 above. I do
not want to type the formula 500 times.

Is there a solution?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tim m
 
Posts: n/a
Default How do I copy formulas but using the same range each time I copy

For the cell references that you do not want to change as you copy it down
put a $ before the Row and column refernce of the cell. for example:

=LOOKUP(J2,Sheet1!$A$2:$A$153,Sheet1!$B$2:$B$153)

When you copy this down the J2 part will progress but the other cells will
not progress.


"Laffin" wrote:

I want to fill/copy a formula within a specific range but each time I try to
fill or sopy it changes the range it is supposed to looking in so I am
getting errors.

For example,

Row 1 - =LOOKUP(J2,Sheet1!A2:A153,Sheet1!B2:B153)
Row 2 - =LOOKUP(J3,Sheet1!A2:A153,Sheet1!B2:B153)

But, if I just copy or fill I am getting the second row showing up as:
=LOOKUP(J3,Sheet1!A3:A154,Sheet1!B3:B154) instead of as Row 2 above. I do
not want to type the formula 500 times.

Is there a solution?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
neilcarden
 
Posts: n/a
Default How do I copy formulas but using the same range each time I copy


Just going off on a tangent, I want my formula to stay the same when
dragged from left to right, so the $ works fine, but I want the Sheet
reference to change.

The sheets are Apr06, May06, Jun06 etc.. and are in consecutive order,
is there anyway to accomplish this??

Thanks


--
neilcarden
------------------------------------------------------------------------
neilcarden's Profile: http://www.excelforum.com/member.php...o&userid=35623
View this thread: http://www.excelforum.com/showthread...hreadid=554594

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
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
Macro to open workbook and copy and paste values in to orig workbo Dena X Excel Worksheet Functions 1 December 15th 05 11:13 PM
copy worksheet to a new workbook with formulas .... but new file not point to old one newToExcel Excel Discussion (Misc queries) 7 November 13th 05 09:55 PM
How do I copy only cells with formulas in another row? Soozy Excel Worksheet Functions 2 October 21st 05 08:02 PM
how can i get formulas in excel to copy and paste? bman Excel Worksheet Functions 1 October 3rd 05 04:15 PM


All times are GMT +1. The time now is 09:51 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"