Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 220
Default Copying Formulas

I'm trying to copy a long formula from Cell "F3" down to "F500" but I
only want some of the references to change. Here's my formula in
standard and R1C1 notation (sorry about the word wrapping):

{=IF(B31,SUMPRODUCT(--($C$3=TWC!B4:B999),--($E$3=TWC!A4:A999),--(TWC!
C4:C999)),"")}


FormulaArray = _
"=IF(RC[-4]1,SUMPRODUCT(--(R5C3=TWC!R[-1]C[-4]:R[994]C[-4]),--
(R5C5=TWC!R[-1]C[-5]:R[994]C[-5]),--(TWC!
R[-1]C[-3]:R[994]C[-3])),"""")"


Here's how the formula would look in "F500":
{=IF(B5001,SUMPRODUCT(--($C$500=TWC!B4:B999),--($E$500=TWC!A4:A999),--
(TWC!C4:C999)),"")}


Can I put an integer variable (or an offset) inside the formula where
I want the references to change and then just run it down the column?
Or is there a better way to do it?

Thanks,
-- Dan

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Copying Formulas

You have your $ signs backwards. $ signs fix the reference. This should work:

=IF($B31,SUMPRODUCT(--($C3=TWC!$B$4:$B$999),--($E3=TWC!$A$4:$A$999),--(TWC!$C$4:$C$999)),"")


--
Regards,
Tom Ogilvy





"Dan R." wrote:

I'm trying to copy a long formula from Cell "F3" down to "F500" but I
only want some of the references to change. Here's my formula in
standard and R1C1 notation (sorry about the word wrapping):

{=IF(B31,SUMPRODUCT(--($C$3=TWC!B4:B999),--($E$3=TWC!A4:A999),--(TWC!
C4:C999)),"")}


FormulaArray = _
"=IF(RC[-4]1,SUMPRODUCT(--(R5C3=TWC!R[-1]C[-4]:R[994]C[-4]),--
(R5C5=TWC!R[-1]C[-5]:R[994]C[-5]),--(TWC!
R[-1]C[-3]:R[994]C[-3])),"""")"


Here's how the formula would look in "F500":
{=IF(B5001,SUMPRODUCT(--($C$500=TWC!B4:B999),--($E$500=TWC!A4:A999),--
(TWC!C4:C999)),"")}


Can I put an integer variable (or an offset) inside the formula where
I want the references to change and then just run it down the column?
Or is there a better way to do it?

Thanks,
-- Dan


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 220
Default Copying Formulas

Hmmm.... well I feel stupid, let's just pretend I didn't post this.

Thanks a lot Tom,
-- Dan

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
Copying Formulas Kris Excel Worksheet Functions 4 October 23rd 09 05:52 PM
COPYING FORMULAS Etg-Para[_2_] Excel Worksheet Functions 3 October 9th 08 09:05 PM
Copying formulas [email protected] Excel Worksheet Functions 1 March 28th 08 08:23 PM
Copying Down Formulas Q John Excel Worksheet Functions 4 November 23rd 04 11:14 PM
Copying formulas MsAmethyst Excel Worksheet Functions 1 October 28th 04 05:55 PM


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