Hello,
I am currently working on a spreadsheet that looks somewhat like this:
[TABLE="class: grid, width: 1000, align: center"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[TD]Column E[/TD]
[TD]Column F[/TD]
[TD]Column G[/TD]
[TD]Column H[/TD]
[TD]Column I[/TD]
[/TR]
[TR]
[TD]Item #[/TD]
[TD]Store 1 Units[/TD]
[TD]Store 1 Cases[/TD]
[TD]Store 2 Units[/TD]
[TD]Store 2 Cases[/TD]
[TD]Store 3 Units[/TD]
[TD]Store 3 Cases[/TD]
[TD]Total Units[/TD]
[TD]Total Cases[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]50[/TD]
[TD]2[/TD]
[TD]25[/TD]
[TD]1[/TD]
[TD]75[/TD]
[TD]3[/TD]
[TD]=SUM(B2,D2,F2)[/TD]
[TD]=SUM(C2,E2,G2)[/TD]
[/TR]
[TR]
[TD]456[/TD]
[TD]25[/TD]
[TD]1[/TD]
[TD]25[/TD]
[TD]1[/TD]
[TD]50[/TD]
[TD]2[/TD]
[TD]=SUM(B3,D3,F3)[/TD]
[TD]=SUM(C3,E3,G3)[/TD]
[/TR]
[TR]
[TD]789[/TD]
[TD]75[/TD]
[TD]3[/TD]
[TD]25[/TD]
[TD]1[/TD]
[TD]75[/TD]
[TD]3[/TD]
[TD]=SUM(B4,D4,F4)[/TD]
[TD]=SUM(C4,E4,G4)[/TD]
[/TR]
</tbody>[/TABLE]
My question is this: I need the "Store" & "Case" columns to be every other and I need the sum of each. However, I also need to be able to delete an entire column. So, of course when I delete columns I get a reference error. I tried using Indirect =SUM(INDIRECT("B2"),INDIRECT("D2"),INDIRECT("F2")) so I could delete them but then it moves the total columns into the columns that are being added and causes issues. Is there a way to do this?
Hopefully I am explaining this well enough.
Thank you very much!
Mandy
I am currently working on a spreadsheet that looks somewhat like this:
[TABLE="class: grid, width: 1000, align: center"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[TD]Column E[/TD]
[TD]Column F[/TD]
[TD]Column G[/TD]
[TD]Column H[/TD]
[TD]Column I[/TD]
[/TR]
[TR]
[TD]Item #[/TD]
[TD]Store 1 Units[/TD]
[TD]Store 1 Cases[/TD]
[TD]Store 2 Units[/TD]
[TD]Store 2 Cases[/TD]
[TD]Store 3 Units[/TD]
[TD]Store 3 Cases[/TD]
[TD]Total Units[/TD]
[TD]Total Cases[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]50[/TD]
[TD]2[/TD]
[TD]25[/TD]
[TD]1[/TD]
[TD]75[/TD]
[TD]3[/TD]
[TD]=SUM(B2,D2,F2)[/TD]
[TD]=SUM(C2,E2,G2)[/TD]
[/TR]
[TR]
[TD]456[/TD]
[TD]25[/TD]
[TD]1[/TD]
[TD]25[/TD]
[TD]1[/TD]
[TD]50[/TD]
[TD]2[/TD]
[TD]=SUM(B3,D3,F3)[/TD]
[TD]=SUM(C3,E3,G3)[/TD]
[/TR]
[TR]
[TD]789[/TD]
[TD]75[/TD]
[TD]3[/TD]
[TD]25[/TD]
[TD]1[/TD]
[TD]75[/TD]
[TD]3[/TD]
[TD]=SUM(B4,D4,F4)[/TD]
[TD]=SUM(C4,E4,G4)[/TD]
[/TR]
</tbody>[/TABLE]
My question is this: I need the "Store" & "Case" columns to be every other and I need the sum of each. However, I also need to be able to delete an entire column. So, of course when I delete columns I get a reference error. I tried using Indirect =SUM(INDIRECT("B2"),INDIRECT("D2"),INDIRECT("F2")) so I could delete them but then it moves the total columns into the columns that are being added and causes issues. Is there a way to do this?
Hopefully I am explaining this well enough.
Thank you very much!
Mandy