Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Copy formula relative to left cell?

All -
I have a fomula in cell B2 that uses data in cell A2.
I want to copy the formula down but stop when the relative cell in column a
is blank or empty.

TIA
-Jay


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default Copy formula relative to left cell?

Hi Jay,
If every cell in column A is filled in then you can double click on the
fill handle, which you will find on the lower right side of the
cell say when you have cell B2 selected.

http://www.mvps.org/dmcritchie/excel/fillhand.htm
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"JayL" wrote in message ...
All -
I have a fomula in cell B2 that uses data in cell A2.
I want to copy the formula down but stop when the relative cell in column a
is blank or empty.

TIA
-Jay




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Copy formula relative to left cell?

Thanks - I understand the use of the fill handle. Looking for an automated
macro method.
"David McRitchie" wrote in message
...
Hi Jay,
If every cell in column A is filled in then you can double click on the
fill handle, which you will find on the lower right side of the
cell say when you have cell B2 selected.

http://www.mvps.org/dmcritchie/excel/fillhand.htm
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"JayL" wrote in message
...
All -
I have a fomula in cell B2 that uses data in cell A2.
I want to copy the formula down but stop when the relative cell in column
a
is blank or empty.

TIA
-Jay






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copy formula relative to left cell?

Dim rng as Range
set rng = Range(cells(2,1),cells(2,1).End(xldown))
rng.offset(0,1).Formula = Cells(2,2).Formula

--
regards,
Tom Ogilvy

"JayL" wrote in message
...
Thanks - I understand the use of the fill handle. Looking for an

automated
macro method.
"David McRitchie" wrote in message
...
Hi Jay,
If every cell in column A is filled in then you can double click on the
fill handle, which you will find on the lower right side of the
cell say when you have cell B2 selected.

http://www.mvps.org/dmcritchie/excel/fillhand.htm
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"JayL" wrote in message
...
All -
I have a fomula in cell B2 that uses data in cell A2.
I want to copy the formula down but stop when the relative cell in

column
a
is blank or empty.

TIA
-Jay








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
How do I use a relative cell reference that will copy the format? Brian Excel Discussion (Misc queries) 4 January 13th 09 10:49 PM
Copy and Paste of Relative Cell References Skyscan Excel Worksheet Functions 1 August 20th 07 07:39 AM
Copy a relative reference formula from one sheet to another. jannkatt Excel Discussion (Misc queries) 3 May 17th 06 07:13 PM
How do I copy a formula with relative ref. keeping the same ref.? avjunior Excel Discussion (Misc queries) 4 October 12th 05 02:54 AM
Excel VB-Copy formula down until adjacent cell (left) is blank? Tony P. Excel Discussion (Misc queries) 1 May 18th 05 06:11 PM


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