Function for Differently Formatted Sheets

B

Ben

I would like to marry data from two differently formatted worksheets, and was wondering if there was a function that can be used to account for different sheet layouts.

In the sheet I want to copy data to, data is arranged in rows. In the sheet I want to copy data from, the data is arranged in both rows and colums, but there are blank columns and rows that separate data points.

What I would like to do is is create a simple sum formula that would add data from, say, every fourth cell in a row of another worksheet, or every third cell in a column.

Is there any function that essentially creates the relationship =SUM('Sheet2'!$A$1,$D$1,$G$1,...)?

The sheet that I would like to copy from is a huge dataset, so simply deleting columns or rows would take a long time.

TIA for any advice/help.
 
F

Frank Kabel

Hi
try
=SUMPRODUCT(--(MOD(COLUMN('sheet2'!A1:X1)-1,3)=0),'sheet2'!A1:X1)
for summing every third column in sheet 2 (for row 1)
 
F

Frank Kabel

Hi
try
=SUMPRODUCT(--(MOD(ROW('sheet2'!A1:A1000)-1,5)=0),'sheet2'!A1:A1000)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top