Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Autofill a dynamic range with a formula.

I have created a dynamic named range using the offset function, but now I want to fill that range with a formula, so that if the dynamic named range consist of 20 cells, the 20 cells will have the formula, and if I change the number of cells to 1000, the 1000 cells would have the formula. Is it possible to do this without using VBA?

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 173
Default Autofill a dynamic range with a formula.

Hi Daniel,

You could try a few things.

First, you could use the GoTo Reference dialog (F5 on your keyboard) and type the named range name into the Reference field. This will highlight the entire range, allowing you to then paste the formula (or type it and use CTRL+Enter to fill the selected range).

Alternatively, you could enter the formula in as many cells as you think you'd ever need and then use conditional formatting to change the font color and background for any cells outside the named range to white (i.e. format the unused part of the range to look invisible).

Another alternative is to include your formula in an IF statement. For example, if your offset is set to 1000 rows, then your formula might read:

=IF(ROW()1000, "", Your_Formula)

Then, copy this formula as far down the page as you need to ensure it picks up the entire range.

If none of these work for you, then VBA might be the way to go.

Ben
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
Autofill Dynamic Range of Cells KeriM Excel Programming 2 August 30th 12 12:45 PM
Autofill Dynamic Range Fester[_2_] Excel Programming 1 December 8th 08 04:04 PM
making autofill range dynamic sonang Excel Programming 0 September 1st 04 10:59 PM
autofill with dynamic range Bernie Deitrick[_2_] Excel Programming 0 September 16th 03 02:55 PM
autofill with dynamic range again a Excel Programming 0 September 16th 03 12:26 PM


All times are GMT +1. The time now is 02:11 AM.

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"