Hello Excel Gurus,
Given a 2 sheets below, how do I incorporate to INDIRECT formula or any alternatives that can capture the 'sheet name' as well as the column and row.
As for the row, the formula needs to have the intelligence to do a SUM based on the text on column F on 'Output Sheet'.
For examples:
row 1: cell F1 input cell is 1. Thus, for each A1 to E1, take the value/sum the value that's in 'DataSheet' of the respective cells. i.e. 'OutputSheet'!A1 = 'DataSheet'!A1 … 'OutputSheet'!E1 = 'DataSheet'!E1
row 2: cell F2 input cell is 1,3. Thus, for each A2 to E2, sum the value that's in 'DataSheet' of the respective cells. i.e. 'OutputSheet'!A2 = SUM('DataSheet'!A1, 'DataSheet'!A3) … 'OutputSheet'!E2 = SUM('DataSheet'!E1, 'DataSheet'!E3)
row 3: cell F3 input cell is 1:3,5. Thus, for each A3 to E3, sum the value that's in 'DataSheet' of the respective cells. i.e. 'OutputSheet'!A3 = SUM('DataSheet'!A1:A3, 'DataSheet'!A5) … 'OutputSheet'!E3 = SUM('DataSheet'!E1:E3, 'DataSheet'!E5)
row 4: cell F4 input cell is 1:2,4:5. Thus, for each A4 to E4, sum the value that's in 'DataSheet' of the respective cells. i.e. 'OutputSheet'!A4 = SUM('DataSheet'!A1:A2, 'DataSheet'!A4:A5) … 'OutputSheet'!E4 = SUM('DataSheet'!E1:E2, 'DataSheet'!E4:E5)
DataSheet
Row\Column A B C D E 1 10 20 30 40 50 2 15 25 35 45 55 3 5 4 3 2 1 4 20 40 55 30 10 5 10 0 10 0 10
OutputSheet
Row\Column A B C D E F (user input) 1 10 20 30 40 50 1 2 15 24 33 42 51 1,3 3 40 49 78 87 116 1:3,5 4 55 85 130 115 125 1:2,4:5
Bookmarks