Conditional Formatting

Stclements1

Board Regular
Joined
Sep 15, 2018
Messages
158
Office Version
  1. 365
Platform
  1. Windows
Hello to you all and weekend wishes.

I am devising a Gantt Chart for flying school and ground school. in one row I have the number 18 in certain cells and this represents cadets in ground school in the row beneath I have cells that have 18 in and this determines cadets in flight school and then on the row beneath is a new class of graduates and they have two rows one for ground school and one for flight school.
My question is it possible in excel to conditional format so that when I total the coloum values at the bottom of the chart it only counts the value in the cells that are of a certain fill say brown for ground school and blue for flight school. If not is there a formula that will allow me to get the sum of a coloum counting only cadets in flight school and the sum of a coloum counting only cadets in ground school.

Thank you for your assistance.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
what version of excel are you using, i think later versions can have the ability
 
Upvote 0
I think I understand. Have you tried using COUNTIFS? A quick example:

[TABLE="width: 625"]
<colgroup><col><col span="8"></colgroup><tbody>[TR]
[TD]A TEAM GROUND[/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]18[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]18[/TD]
[TD][/TD]
[TD="align: right"]18[/TD]
[/TR]
[TR]
[TD]A TEAM FLIGHT[/TD]
[TD][/TD]
[TD="align: right"]18[/TD]
[TD][/TD]
[TD="align: right"]18[/TD]
[TD][/TD]
[TD="align: right"]18[/TD]
[TD][/TD]
[TD="align: right"]18[/TD]
[/TR]
[TR]
[TD]B TEAM GROUND[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]18[/TD]
[TD][/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]18[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B TEAM FLIGHT[/TD]
[TD][/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]18[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]GROUND[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]FLIGHT[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[/TR]
</tbody>[/TABLE]

If that's what you're after, the fomula in the topmost column total in this example is: =COUNTIFS(B$2:B$5,18,$A$2:$A$5,"*GROUND"), the bottommost
is =COUNTIFS(B$2:B$5,18,$A$2:$A$5,"*FLIGHT"). Change this according to your row headings.

Let me know if you need an explanation of the formulae!
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top