Conditional Formatting

brett4098

New Member
Joined
Jan 6, 2004
Messages
16
I have the normal three sheet workbook open. I was wondering if on one page i fill (color) a certain cell and could have, on another page, a formula summing the number of cells that i've highlighted in a certain color?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

brett4098

New Member
Joined
Jan 6, 2004
Messages
16
What about if i put an X in a cell instead of shading it, would it calculate it then?
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
60,742
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

Either way should work, using the shading or using a Flag like "X". If you wanted to SUM all the values in the first 100 rows on Sheet 1, column A depending on if there is an X in column B, then use:

=SUMIF(Sheet1!B1:B100,"X",Sheet1!A1:A100)
 

brett4098

New Member
Joined
Jan 6, 2004
Messages
16
I am having a problem with the last part of that formula. What is that exactly?
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
60,742
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

Look at Excel help on the SUMIF function. It is a great resource, complete with descriptions and examples.

This is taken directly from there:

SUMIF(range,criteria,sum_range)

Range is the range of cells you want evaluated.

Criteria is the criteria in the form of a number, expression, or text that defines which cells will be added. For example, criteria can be expressed as 32, "32", ">32", "apples".

Sum_range are the actual cells to sum.

Note that the first range is the range that contains the X's. The range of values you want to sum is the 3rd argument (Sum_range).
 

brett4098

New Member
Joined
Jan 6, 2004
Messages
16
It doesn't update the formula until I save the workbook. Any suggestions? This is my formula--=SUMIF('2004 CALENDAR'!A5:AE5,"X",'2004 CALENDAR'!A6:AE6). In other words, if I add an X, it won't change the sum unless I save it.
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
60,742
Office Version
  1. 365
Platform
  1. Windows
It sounds like your calculation setting is set to Manual. Go to the Tools drop down menu and select Options. Go to the Calculation tab and make sure the "Automatic" radio button is selected.
 
Learn Excel from Bill Jelen

Understanding data is crucial, and the easiest place to start is with Microsoft Excel.

Forum statistics

Threads
1,151,492
Messages
5,764,692
Members
425,230
Latest member
DzOus

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
Top