Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default automatic fill formulas down

Is it possible to have a formula to feed down automaticly, as I don't know
how many entry's there will be, and having mutible formulas on every line,
I'm looking for a way that I can put a formula in and when the data is
entered into the first column , the formuia will move to the next line.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,117
Default automatic fill formulas down

i don't know of a formula way.........
i know a couple of other ways.......

1. enter the formula down the column as far down as you need & set
conditional formatting to make the text white if the first column on
that row is empty. then you won't SEE all the formulas sitting
there. the trouble with this method is it will make your page(s)
automatically as long as you dragged down........... so even if you
only have entries in column A to row 10, if you've dragged the white-
text-formula down to row 100, that's what your used range will be for
printing pages - not a problem but you've got to manually change the
page range, thn.

2. set up a worksheet_change macro that everytime a cell in column A
is changed/info entered, the appropriate formula is entered into the
other column. harder to do but will make your life (potentially)
easier.

if you want help with #2, let me know.
hope this helps!
susan




On Apr 19, 6:54 am, Dreamstar_1961
wrote:
Is it possible to have a formula to feed down automaticly, as I don't know
how many entry's there will be, and having mutible formulas on every line,
I'm looking for a way that I can put a formula in and when the data is
entered into the first column , the formuia will move to the next line.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,117
Default automatic fill formulas down

pardon me if this is a duplicate - not sure if 1st went thru.........
here is code for suggestion #2. it goes in a WORKSHEET module for
whichever worksheet you want it to work in:

Option Explicit

Private Sub worksheet_change(ByVal Target As Range)

Dim ws As Worksheet
Dim rTarget As Range
Dim sFormula As String
Dim lRow As Long

lRow = ActiveCell.Row
Set ws = ActiveSheet
Set Target = ws.Range("a" & lRow)
Set rTarget = ws.Range("d" & lRow)
sFormula = "=b" & lRow & "+c" & lRow

Application.EnableEvents = False
'if you don't turn off EnableEvents, every time
'it changes rTarget, it sees that as a worksheet_
'change, & it keeps looping endlessly!

If Target = "" Then
Application.EnableEvents = True
Exit Sub
Else
rTarget = sFormula
End If

Application.EnableEvents = True

End Sub


:)
susan

On Apr 19, 8:22 am, Susan wrote:
i don't know of a formula way.........
i know a couple of other ways.......

1. enter the formula down the column as far down as you need & set
conditional formatting to make the text white if the first column on
that row is empty. then you won't SEE all the formulas sitting
there. the trouble with this method is it will make your page(s)
automatically as long as you dragged down........... so even if you
only have entries in column A to row 10, if you've dragged the white-
text-formula down to row 100, that's what your used range will be for
printing pages - not a problem but you've got to manually change the
page range, thn.

2. set up a worksheet_change macro that everytime a cell in column A
is changed/info entered, the appropriate formula is entered into the
other column. harder to do but will make your life (potentially)
easier.

if you want help with #2, let me know.
hope this helps!
susan

On Apr 19, 6:54 am, Dreamstar_1961



wrote:
Is it possible to have a formula to feed down automaticly, as I don't know
how many entry's there will be, and having mutible formulas on every line,
I'm looking for a way that I can put a formula in and when the data is
entered into the first column , the formuia will move to the next line.- Hide quoted text -


- Show quoted text -



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
Automatic color fill SLKoelker Excel Discussion (Misc queries) 3 January 10th 07 11:43 PM
Some formulas don't track copies, pastes, fill right, fill down whiten Excel Discussion (Misc queries) 2 October 1st 06 04:41 PM
Automatic Auto Fill PFLY Excel Discussion (Misc queries) 0 September 25th 06 04:23 PM
Toolbar for automatic series fill?? laralea Excel Discussion (Misc queries) 2 June 21st 05 02:28 PM
Automatic Lookup/Fill-in Andrew Edwards Excel Worksheet Functions 2 December 5th 04 06:16 PM


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