adrienne0914
Board Regular
- Joined
- Mar 22, 2018
- Messages
- 57
- Office Version
- 2016
- Platform
- Windows
This seems like it would be a simple formula but I keep getting a #Value error when I try it. Trying to get a count based on criteria in Column A in addition to Row 1:
DATA:
<tbody>
</tbody>
SUMMARY:
<tbody>
</tbody>
I want the first line of the summary to count all of the 1s from each column. I want the second line to only count the 1's if Column A does not equal no AND heading matches. Expect results in summary above. I know I could do a pivot table to get a summary, but I have a monthly report that will be pulling this and data from others into one report. So a pivot table is not possible.
DATA:
LOCATION | P01_2018 | P02_2018 | P03_2018 | P04_2018 | P05_2016 |
NO | 1 | 1 | 1 | 1 | 1 |
USATL | 0 | 0 | 0 | 1 | 0 |
NO | 0 | 0 | 0 | 0 | 0 |
NO | 1 | 0 | 0 | 1 | 0 |
USBAL | 1 | 1 | 1 | 1 | 1 |
NO | 1 | 1 | 1 | 1 | 1 |
USLAX | 0 | 1 | 1 | 1 | 0 |
USNYC | 1 | 0 | 0 | 1 | 1 |
<tbody>
</tbody>
SUMMARY:
P01_2018 | P02_2018 | P03_2018 | P04_2018 | P05_2016 | |
LANES | 5 | 4 | 4 | 7 | 4 |
CAT 1 | 2 | 2 | 2 | 4 | 2 |
<tbody>
</tbody>
I want the first line of the summary to count all of the 1s from each column. I want the second line to only count the 1's if Column A does not equal no AND heading matches. Expect results in summary above. I know I could do a pivot table to get a summary, but I have a monthly report that will be pulling this and data from others into one report. So a pivot table is not possible.