Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Macro to limit fill-down rows

I have a formula that needs to be copied down column E alongside imported
data in column D. The number of rows that the imported column D has varies
with each import. How can I set my fill-down rows for the formula to match
up with column D?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Macro to limit fill-down rows

Jim posted this to a similar question. I have copied his post to this reply.
------------------------------------------------------------------------
There are many way to do that. Here's one:

Range("B1", Range("B1").End(xlDown)).Offset(0, 1).FillDown

--
Jim Rech
Excel MVP
------------------------------------------------------------------------

"Mike Fogleman" wrote in message
...
I have a formula that needs to be copied down column E alongside imported
data in column D. The number of rows that the imported column D has varies
with each import. How can I set my fill-down rows for the formula to match
up with column D?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Macro to limit fill-down rows

This doesn't seem to work. Here is my code for cell E1, and I want it to
fill down to wherever column D data ends.

Range("E1").Select
ActiveCell.FormulaR1C1 = _

"=CONCATENATE(CONCATENATE(IF(LEN(RC[-4])=5,LEFT(RC[-4]),LEFT(RC[-4],2)),""/"
",LEFT(RIGHT(RC[-4],4),2),""/"",RIGHT(RC[-4],2)),""
"",CONCATENATE(IF(LEN(RC[-3])=3,LEFT(RC[-3]),LEFT(RC[-3],2)),"":"",RIGHT(RC[
-3],2)))"
Range("E1", Range("E1").End(xlDown)).Offset(0, 1).FillDown

Can you see what is wrong here?


"Tumbleweed" wrote in message
...
Jim posted this to a similar question. I have copied his post to this

reply.
------------------------------------------------------------------------
There are many way to do that. Here's one:

Range("B1", Range("B1").End(xlDown)).Offset(0, 1).FillDown

--
Jim Rech
Excel MVP
------------------------------------------------------------------------

"Mike Fogleman" wrote in message
...
I have a formula that needs to be copied down column E alongside

imported
data in column D. The number of rows that the imported column D has

varies
with each import. How can I set my fill-down rows for the formula to

match
up with column D?






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
macro to fill in rows with blanks hnyb1 Excel Discussion (Misc queries) 5 September 9th 09 03:26 PM
Macro Formula for counting rows and doing a fill in afterwards Bud Excel Worksheet Functions 0 September 25th 08 08:10 PM
How do I limit the visible rows in Excel? tomcheesewright Excel Discussion (Misc queries) 3 May 19th 05 03:31 PM
Is there a limit to the number of rows that can be filtered W Paul Excel Worksheet Functions 3 March 8th 05 03:41 AM
the limit on how many rows can be in one spreadsheet liz Excel Worksheet Functions 2 March 4th 05 11:29 AM


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