adrienne0914
Board Regular
- Joined
- Mar 22, 2018
- Messages
- 73
- Office Version
- 365
- 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:
[TABLE="width: 500"]
<tbody>[TR]
[TD]LOCATION[/TD]
[TD]P01_2018[/TD]
[TD]P02_2018[/TD]
[TD]P03_2018[/TD]
[TD]P04_2018[/TD]
[TD]P05_2016[/TD]
[/TR]
[TR]
[TD]NO[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD]USATL[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD]NO[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD]NO[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD]USBAL[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD]NO[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD]USLAX[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD]USNYC[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[/TR]
</tbody>[/TABLE]
SUMMARY:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]P01_2018[/TD]
[TD]P02_2018[/TD]
[TD]P03_2018[/TD]
[TD]P04_2018[/TD]
[TD]P05_2016[/TD]
[/TR]
[TR]
[TD]LANES[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]4[/TD]
[/TR]
[TR]
[TD]CAT 1[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[/TR]
</tbody>[/TABLE]
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:
[TABLE="width: 500"]
<tbody>[TR]
[TD]LOCATION[/TD]
[TD]P01_2018[/TD]
[TD]P02_2018[/TD]
[TD]P03_2018[/TD]
[TD]P04_2018[/TD]
[TD]P05_2016[/TD]
[/TR]
[TR]
[TD]NO[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD]USATL[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD]NO[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD]NO[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD]USBAL[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD]NO[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD]USLAX[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD]USNYC[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[/TR]
</tbody>[/TABLE]
SUMMARY:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]P01_2018[/TD]
[TD]P02_2018[/TD]
[TD]P03_2018[/TD]
[TD]P04_2018[/TD]
[TD]P05_2016[/TD]
[/TR]
[TR]
[TD]LANES[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]4[/TD]
[/TR]
[TR]
[TD]CAT 1[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[/TR]
</tbody>[/TABLE]
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.