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

I'm looping through a variable number of row finding each unique value and
posting it on antoher sheet. I then want to create another table with 36
different calculations referencing two of the copied cells. They need to be
arranged like below.

Bobby Sue Form1(Cell 1) Form2(Cell 1) Form3(Cell 1) Form1(Cell 2)
Form2(Cell2) Form2(Cell2) etc.

I've got:
x = 0
For a = 1 to ALLROWS
If cell1.value is unique then ========This is a whole sting of if
statements actually and I won't bore you with them
x = x + 1
Copy cells a-f
1newsheet paste
2newsheet paste column a
cell cell(B"+Cstr(x)).formulaR1C1 = "=sum(1newsheet!cellR[x]C[1]).
cell cell(c"+Cstr(x)).formulaR1C1 = "=sum(1newsheet!cellR[x]C[0]).
cell cell(d"+Cstr(x)).formulaR1C1 = "=sum(1newsheet!cellR[x]C[-1]).
cell cell(e"+Cstr(x)).formulaR1C1 = "=sum(1newsheet!cellR[x]C[-1]).
cell cell(e"+Cstr(x)).formulaR1C1 = "=sum(1newsheet!cellR[x]C[-2]).
cell cell(e"+Cstr(x)).formulaR1C1 = "=sum(1newsheet!cellR[x]C[-3]).
<<<<should repeat through 36
Next a

I dont' want to write that many lines of forumlas and I know there's some
mathmatical correlation but it's just eluding me today.

It's the column reference that's giving me fits. It's a mutiple of 3 but it
repeats on the first instance (the 3rd formula is -1 and the forth is also
-1). This is probably an even solution for you guys. Help!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Logic breakdown.

Oops, there's twelve cells that are referenced and not 2.

Can I start the week over?

"RominallL" wrote:

I'm looping through a variable number of row finding each unique value and
posting it on antoher sheet. I then want to create another table with 36
different calculations referencing two of the copied cells. They need to be
arranged like below.

Bobby Sue Form1(Cell 1) Form2(Cell 1) Form3(Cell 1) Form1(Cell 2)
Form2(Cell2) Form2(Cell2) etc.

I've got:
x = 0
For a = 1 to ALLROWS
If cell1.value is unique then ========This is a whole sting of if
statements actually and I won't bore you with them
x = x + 1
Copy cells a-f
1newsheet paste
2newsheet paste column a
cell cell(B"+Cstr(x)).formulaR1C1 = "=sum(1newsheet!cellR[x]C[1]).
cell cell(c"+Cstr(x)).formulaR1C1 = "=sum(1newsheet!cellR[x]C[0]).
cell cell(d"+Cstr(x)).formulaR1C1 = "=sum(1newsheet!cellR[x]C[-1]).
cell cell(e"+Cstr(x)).formulaR1C1 = "=sum(1newsheet!cellR[x]C[-1]).
cell cell(e"+Cstr(x)).formulaR1C1 = "=sum(1newsheet!cellR[x]C[-2]).
cell cell(e"+Cstr(x)).formulaR1C1 = "=sum(1newsheet!cellR[x]C[-3]).
<<<<should repeat through 36
Next a

I dont' want to write that many lines of forumlas and I know there's some
mathmatical correlation but it's just eluding me today.

It's the column reference that's giving me fits. It's a mutiple of 3 but it
repeats on the first instance (the 3rd formula is -1 and the forth is also
-1). This is probably an even solution for you guys. Help!

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
best breakdown ekkeindoha Excel Worksheet Functions 2 February 3rd 10 06:45 PM
breakdown months Hank Excel Discussion (Misc queries) 3 September 3rd 09 03:58 AM
Breakdown AJ Excel Worksheet Functions 1 May 3rd 06 09:02 PM
How 2 breakdown $$$ into $ $ $? mjpage Excel Discussion (Misc queries) 2 January 8th 06 12:16 AM
Numerical Breakdown HUBBUB88 Excel Programming 3 June 17th 05 09:22 PM


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