Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Filldown stops abruptly

A command button fires the following code

Range("AV10").Select
Selection.AutoFill Destination:=Range("AV10:AV7800"), Type:=xlFillDefault
Range("AV10:AV7800").Select

When AV2967 is reached the following formula changes from

{=IF(SUM(--('A Use'!A$1:A$10000&'A Use'!C$1:C$10000=B2962&"G house")),"G
house","")}

to:

{=#VALUE!}

If I manually fill down the formula past where it changes to {=#VALUE!} the
formula does not revert to {=#VALUE!}

Does anyone know why the formula suddenly should change
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Filldown stops abruptly

Is B2962 within the formula an absolute reference or a relative reference

The below format should work when you have a formula in G4.
Range("G4").AutoFill Destination:=Range("G4:G24"), Type:=xlFillDefault

OR without using autofill you can apply the formula to a range as below.
Excel would automatically change the references

Range("G4:G24").Formula = "=SUM(A4:F4)"

If this post helps click Yes
---------------
Jacob Skaria


"gootroots" wrote:

A command button fires the following code

Range("AV10").Select
Selection.AutoFill Destination:=Range("AV10:AV7800"), Type:=xlFillDefault
Range("AV10:AV7800").Select

When AV2967 is reached the following formula changes from

{=IF(SUM(--('A Use'!A$1:A$10000&'A Use'!C$1:C$10000=B2962&"G house")),"G
house","")}

to:

{=#VALUE!}

If I manually fill down the formula past where it changes to {=#VALUE!} the
formula does not revert to {=#VALUE!}

Does anyone know why the formula suddenly should change

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Filldown stops abruptly

Hi Jacob Skaria

B2962 is a relative reference

I tried out your example

Range("G4:G24").Formula = "=SUM(A4:F4)"

and it worked great.

my formula is an array entered formula and I could not replicate the results
I got from your formula

Here is my formula

Range("L10:L7800").Formula = "=IF(SUM(--('A Use'!A$1:A$10000&'A
Use'!C$1:C$10000=B10&'G house')),'G house',"")"

I am getting an debug error when executed.

When i modified it to

Range("L10:L7800").Formula = {"=IF(SUM(--('A Use'!A$1:A$10000&'A
Use'!C$1:C$10000=B10&'G house')),'G house',"")"}

it fill the range L10:L7800 but was not received by the range as a formula,
more like a text entry, strange!




"Jacob Skaria" wrote:

Is B2962 within the formula an absolute reference or a relative reference

The below format should work when you have a formula in G4.
Range("G4").AutoFill Destination:=Range("G4:G24"), Type:=xlFillDefault

OR without using autofill you can apply the formula to a range as below.
Excel would automatically change the references

Range("G4:G24").Formula = "=SUM(A4:F4)"

If this post helps click Yes
---------------
Jacob Skaria


"gootroots" wrote:

A command button fires the following code

Range("AV10").Select
Selection.AutoFill Destination:=Range("AV10:AV7800"), Type:=xlFillDefault
Range("AV10:AV7800").Select

When AV2967 is reached the following formula changes from

{=IF(SUM(--('A Use'!A$1:A$10000&'A Use'!C$1:C$10000=B2962&"G house")),"G
house","")}

to:

{=#VALUE!}

If I manually fill down the formula past where it changes to {=#VALUE!} the
formula does not revert to {=#VALUE!}

Does anyone know why the formula suddenly should change

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Filldown stops abruptly

Try
Range("L10:L7800").FormulaArray = "=yourformula"

If this post helps click Yes
---------------
Jacob Skaria


"gootroots" wrote:

Hi Jacob Skaria

B2962 is a relative reference

I tried out your example

Range("G4:G24").Formula = "=SUM(A4:F4)"

and it worked great.

my formula is an array entered formula and I could not replicate the results
I got from your formula

Here is my formula

Range("L10:L7800").Formula = "=IF(SUM(--('A Use'!A$1:A$10000&'A
Use'!C$1:C$10000=B10&'G house')),'G house',"")"

I am getting an debug error when executed.

When i modified it to

Range("L10:L7800").Formula = {"=IF(SUM(--('A Use'!A$1:A$10000&'A
Use'!C$1:C$10000=B10&'G house')),'G house',"")"}

it fill the range L10:L7800 but was not received by the range as a formula,
more like a text entry, strange!




"Jacob Skaria" wrote:

Is B2962 within the formula an absolute reference or a relative reference

The below format should work when you have a formula in G4.
Range("G4").AutoFill Destination:=Range("G4:G24"), Type:=xlFillDefault

OR without using autofill you can apply the formula to a range as below.
Excel would automatically change the references

Range("G4:G24").Formula = "=SUM(A4:F4)"

If this post helps click Yes
---------------
Jacob Skaria


"gootroots" wrote:

A command button fires the following code

Range("AV10").Select
Selection.AutoFill Destination:=Range("AV10:AV7800"), Type:=xlFillDefault
Range("AV10:AV7800").Select

When AV2967 is reached the following formula changes from

{=IF(SUM(--('A Use'!A$1:A$10000&'A Use'!C$1:C$10000=B2962&"G house")),"G
house","")}

to:

{=#VALUE!}

If I manually fill down the formula past where it changes to {=#VALUE!} the
formula does not revert to {=#VALUE!}

Does anyone know why the formula suddenly should change

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 114
Default Filldown stops abruptly


I am getting an error, here is the formula I am using

Range("L10:L7800").FormulaArray = "=IF(SUM(--('A Use'!A$1:A$10000&'A
Use'!C$1:C$10000=B10&"G house")),"G house","")"

B10 is a relative reference.

Thank you for helping me out.


"Jacob Skaria" wrote:

Try
Range("L10:L7800").FormulaArray = "=yourformula"

If this post helps click Yes
---------------
Jacob Skaria


"gootroots" wrote:

Hi Jacob Skaria

B2962 is a relative reference

I tried out your example

Range("G4:G24").Formula = "=SUM(A4:F4)"

and it worked great.

my formula is an array entered formula and I could not replicate the results
I got from your formula

Here is my formula

Range("L10:L7800").Formula = "=IF(SUM(--('A Use'!A$1:A$10000&'A
Use'!C$1:C$10000=B10&'G house')),'G house',"")"

I am getting an debug error when executed.

When i modified it to

Range("L10:L7800").Formula = {"=IF(SUM(--('A Use'!A$1:A$10000&'A
Use'!C$1:C$10000=B10&'G house')),'G house',"")"}

it fill the range L10:L7800 but was not received by the range as a formula,
more like a text entry, strange!




"Jacob Skaria" wrote:

Is B2962 within the formula an absolute reference or a relative reference

The below format should work when you have a formula in G4.
Range("G4").AutoFill Destination:=Range("G4:G24"), Type:=xlFillDefault

OR without using autofill you can apply the formula to a range as below.
Excel would automatically change the references

Range("G4:G24").Formula = "=SUM(A4:F4)"

If this post helps click Yes
---------------
Jacob Skaria


"gootroots" wrote:

A command button fires the following code

Range("AV10").Select
Selection.AutoFill Destination:=Range("AV10:AV7800"), Type:=xlFillDefault
Range("AV10:AV7800").Select

When AV2967 is reached the following formula changes from

{=IF(SUM(--('A Use'!A$1:A$10000&'A Use'!C$1:C$10000=B2962&"G house")),"G
house","")}

to:

{=#VALUE!}

If I manually fill down the formula past where it changes to {=#VALUE!} the
formula does not revert to {=#VALUE!}

Does anyone know why the formula suddenly should change



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
Prevent filldown Dave Excel Discussion (Misc queries) 4 July 26th 08 04:59 AM
Macro filldown SJC Excel Worksheet Functions 0 June 12th 08 06:31 PM
FillDown Macro Nick Junod Excel Worksheet Functions 3 February 6th 06 10:10 PM
Macro Filldown Hirsch Excel Worksheet Functions 4 June 6th 05 06:25 PM
Formula abruptly changed Harry Excel Worksheet Functions 2 December 22nd 04 10:28 PM


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