INDIRECT and horizontal reference to vertical fill

KTJo4

New Member
Joined
Jan 2, 2016
Messages
2
I have a large spreadsheet with several sheets. Sheet1-Sheet5, have data running across horizontally on every other column (a1, c1, e1, etc.). On Sheet6, cell A1, I need to calculate the sum of A1 on all previous sheets. However, I need to drag the formula down so that A2 calculates the sum of C1 on all previous sheets, A3=sum of E1, and so on. I believe I need to use the Indirect function but I'm not familiar enough with it to get it formatted correctly.

Thanks in advance!
 

James006

Well-known Member
Joined
Apr 4, 2009
Messages
3,680
Hi,

You could test in sheet6 cell A1 : =SUM(Sheet1:Sheet5!A1)

HTH
 

KTJo4

New Member
Joined
Jan 2, 2016
Messages
2
Thank you for your reply. However, for the sake of asking this question I simplified the specifics of the spreadsheet. I actually have 20 sheets, but only need to reference 5 of them, and they are not actually named Sheet1, Sheet2, etc; nor are they adjacent to eachother. Additionally, I still need to be able to drag the formula down so that it is referencing across every 2nd column.
 

James006

Well-known Member
Joined
Apr 4, 2009
Messages
3,680
Hi,

I do not know how familiar you are with User Defined Function (UDF) ... but given your specific constraints, it would be much more flexible ...

As far as the adjustment for every 2nd column ... you could test =ADDRESS(1,(ROW()*2)-1,4) starting on row 1 ...

HTH
 
Last edited:

James006

Well-known Member
Joined
Apr 4, 2009
Messages
3,680
Hi again,

Within your Sheet 6 , you could list all the various Sheet Names concerned ... say in range G1:G5

then in cell A1 , you could test fomula : =SUMPRODUCT(N(INDIRECT("'"&$G$1:$G$5&"'!"&ADDRESS(1,(ROW()*2)-1,4))))

HTH
 

Forum statistics

Threads
1,082,323
Messages
5,364,589
Members
400,808
Latest member
formulasataglance

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top