Hi there,
I have researched this thoroughly and I can't seem to work this one out, any assistance deeply appreciated.
End result, I would like to return a single number in a A1 on "Sheet1".
On "Sheet2", Row1 contains headers. Rows 2 and beyond contain 0's, 1's, or blank cells.
Example of Sheet2:
("B" will stand for blanks, not the letter B, below)
ROW 1: AA GH AR BH AL TK
ROW 2: 0 B 1 1 B 1
ROW 3: 1 1 0 B 1 0
ROW 4: 0 0 1 0 B 1
..etc
I would like to write a formula in A1 on Sheet 1 that returns the sum of all columns in Sheet2 for which the header contains the letter "A" (in the above example the correct value returned would be "5" because AA contains one 1, AR contains two 1's, and AL contains ONE 1's). My apologies for not having that line up tidier.
Is this possible? I have tried various versions of SUMIFS, INDEX, MATCH, and SUMPRODUCT but i have hit a wall with each new idea I have had.
For added context, and if anyone really wants to help take me the full way on this one if the above is solved. Not only will I want Sheet1 A1 to return a sum conditional on the column headers, but also:
- Only among rows for which yet other additional columns of each same row (let's say the header of those columns are XYZ ZYX) contain a 1, and
- The determination as to whether columns XYZ, or ZYX, or both, act as a filter is based on whether the user has clicked a CheckBox (ActiveX Control).
That is, if "CheckBoxXYZ" is checked but "CheckBoxZYX" is not, then the number returned in Sheet1 A1 is the sum of all rows for which the column header contains "A" (wildcard), there is a 1 in column XYZ, and there is not a 1 in column ZYX. And so on.
Any help with either or both of these pieces would be very much appreciated!!!
Best,
Brenden
Bookmarks