Match & sum

sur

Board Regular
Joined
Jul 4, 2011
Messages
164
Hello All,

I have a requirement, where in i have a master sheet, with Sheet Name reference, column Name,

what i have to do is

=Sum(sheetname reference with indirect formula),column Name reference in master sheet, where the columns in data sheet is in A5:D5).
 

James006

Well-known Member
Joined
Apr 4, 2009
Messages
3,669
Hello,

With the Sheet Name in cell A1...

You can test following :

Code:
=SUM(INDIRECT(A1&"!A5:D5"))
Hope this will help
 

sur

Board Regular
Joined
Jul 4, 2011
Messages
164
this is fine, but i need to match the cell value to the column & then sum the matched column.
 

Eric W

MrExcel MVP
Joined
Aug 18, 2015
Messages
8,803
Possibly:

<b></b><table cellpadding="2.5px" rules="all" style=";background-color: rgb(255,255,255);border: 1px solid;border-collapse: collapse; border-color: rgb(187,187,187)"><colgroup><col width="25px" style="background-color: rgb(218,231,245)" /><col /></colgroup><thead><tr style=" background-color: rgb(218,231,245);text-align: center;color: rgb(22,17,32)"><th></th><th>A</th></tr></thead><tbody><tr ><td style="color: rgb(22,17,32);text-align: center;">1</td><td style=";">Sheet10</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">2</td><td style=";">Sales</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">3</td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">4</td><td style="text-align: right;;">66.5</td></tr></tbody></table><p style="width:4.8em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid rgb(187,187,187);border-top:none;text-align: center;background-color: rgb(218,231,245);color: rgb(22,17,32)">Sheet6</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: rgb(255,255,255)" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">A4</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">INDIRECT(<font color="Red">"'"&A1&"'!A2:E100"</font>)*(<font color="Red">INDIRECT(<font color="Green">"'"&A1&"'!A1:E1"</font>)=A2</font>)</font>)</td></tr></tbody></table></td></tr></table><br />
 

Forum statistics

Threads
1,078,338
Messages
5,339,638
Members
399,317
Latest member
mLife

Some videos you may like

This Week's Hot Topics

Top