Formula to count the cells in a range that have a fill color.

I'm just trying to create a formula in a cell that will count the cells in a 
range that don't have a "nil" fill color.  
0
f (39)
1/19/2005 6:05:01 PM
excel.misc 78881 articles. 5 followers. Follow

2 Replies
372 Views

Similar Articles

[PageSpeed] 54

Molly F wrote:
> I'm just trying to create a formula in a cell that will count the cells in a 
> range that don't have a "nil" fill color.  
I think you can only do that with a VB script.......

-- 
gordonATgbpcomputingDOTcoDOTuk

To email me replace the obvious!
0
gordonbp11 (453)
1/19/2005 6:08:50 PM
http://www.cpearson.com/excel/colors.htm

-- 

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"Molly F" <Molly F@discussions.microsoft.com> wrote in message 
news:50BBEEF0-93E7-44BA-BDD6-C7CC18C5B6FA@microsoft.com...
> I'm just trying to create a formula in a cell that will count the cells in 
> a
> range that don't have a "nil" fill color. 


0
nicolaus (2022)
1/19/2005 6:15:17 PM
Reply:

Similar Artilces:

Category color changes when changing values.
When I copy a chart I get two identical ones. When I change the values of one of the charts and sort the values, Excel changes the colors of the categories to a preset order, so that the color of the biggest customer in chart 1 is not the same as this same customer (let's say now on the third place) in chart 2. Is there a way to prevent this? ...

How make range of Hyperlinks?
I see how to make a single cell into a Hyperlink but what if we want to have all email and web addresses in a spreadsheet turn into hyperlinks? Is there an easy way to turn this on and off? Hi for making hyperlinks in your selected range have a look at the following macro: Sub MakeHyperlinks() Dim cell As Range For Each cell In Intersect(Selection, _ Selection.SpecialCells(xlConstants, xlTextValues)) With Worksheets(1) .Hyperlinks.Add Anchor:=cell, _ Address:=cell.Value, _ ScreenTip:=cell.Value, _ TextToDisplay:=cell.Value End Wit...

How to see calculation and heading in same cell.
I would like the cell to perform a calculation and then display the answer as will as a heading. In other words the answer and the heading will appear in the same cell. Perhaps you mean something like ="Heading Name: "&A1+B1 ******************* ~Anne Troy www.OfficeArticles.com "Jeracho" <Jeracho@discussions.microsoft.com> wrote in message news:F34BACB9-E2DA-448A-924D-46A475F98F91@microsoft.com... > I would like the cell to perform a calculation and then display the answer as > will as a heading. In other words the answer and the heading will appear in...

Invalid References in formula
Hi, I got this error message when i close my workbook: "A formula in this worksheet contains one or more invalid references. Verify that your formulas contain a valid path, workbook, range name and cell reference." The funny thing is that this error message pop out only when i save and close the workbook on certain worksheets. E.g. I have worksheet a, b, c and d. When i am either on sheet a and d, i saved the file and close the book at that sheet, the error message did not pop out. However when I performed similar actions on either of the other 2 sheets, the error m...

Multiple colors transparent in picture-HOW?
I am trying to make multiple areas of a picture partially transparent, but am unable to in Publisher. What programs would allow me to make this change? If it is a bitmap, i.e. jpg, bmp and others, you need to use a photo editing program. If it is a vector (.wmf) you can ungroup the image, select the area you want partially transparent, right-click, click format object. This link will take you to Paint.NET, it is a pretty good free program. http://www.eecs.wsu.edu/paint.net/index.html -- Mary Sauer MSFT MVP http://office.microsoft.com/ http://msauer.mvps.org/ news://msnews.microsoft.com ...

Formula #71
Hi all, I am using the following formula in a Excel 2003. =IF((F12="Maternity leave"),C12/5*G12,IF((F12="Jury Service"),C12/5*G12,IF((F12="Paternity Leave"),C12/5*G12,IF((F12="Family Leave"),C12/5*G12,IF((F12="Special Leave"),C12/5*G12,IF((F12="Unauthorised Absence"),C12/5*G12,IF((F12="Compassionate Leave"),C12/5*G12,IF((F12="Annual leave"),C12/5*G12)))))))) I'm trying to state that if F12 is one of the values listed then display the result of the calculation C12/5*G12. This is working. Where would I add s...

Coping part of a cell content into a seperate cell
Hi I have two cells, one containing first and middle name and another one with surname. I want to combine the first name and surname into a separate cell, can you advise how I can just copy the first name and miss out the middle name please?? Thanks Caz Hi, I assume that the midle name is separated by a space from the first name and is in column A and the last name in column B =TRIM(LEFT(A2,FIND(" ",a2)-1))&" "&B2 "Caz H" wrote: > Hi > I have two cells, one containing first and middle name and another one with &g...

Counting Question #3
I have three columns: dates, values, and names 10/17 $300 Jim 10/17 $300 Jim 10/17 $200 Tom 10/17 $100 Jim When I enter Jim and $300 in to two separate cells, in a third cell I want to count the number of "days" it applies to (all the way down the spreadsheet.) So in other words, there are two instances in the same day of Jim and $300, but since it all happened on one day, the answer would be one. Hope I explained it well. =sumproduct(--(b1:b10=x1),--(c1:c10=x2)) where x1 holds the amount, x2 holds the name and B1:B10 holds the list of amounts and c1:c10 holds the list of...

Concatenate then Fill Down
Hi I have the VBA CODE of 24 lines Range("A2").Formula = Range("AA2") & " / " & Range("AG2") & " / " & Range ("AI2") Range("B2").Formula = Range("AA2") & " / " & Range("AG2") & " / " & Range ("AI2") Range("C2").Formula = Range("AA2") & " / " & Range("AG2") & " / " & Range ("AI2") ,,,,,, Range("V2").Formula = Range("AA2"...

Adding a formula to the same cell (H5) on every tab
I have an inventory spreadsheet with 125 tabs. The tabs are numbered 1 through 125. The are identical except for the data below the column headings. If I wanted to put a formula in H5 on every tab, can it be done other than manually opening every tab and typing it? One additional question: If I add a Summary Tab, how could I show the value of a specific cell on each tab without manually entering it? I show the formula I'm using bring B3 to the summary for every tab: A B 1 Unit Value 2 1 ='1'!B3 3 2 ='2'!B3 4 3 ='3'!B3 5 4 ='4'!B3 6 5 ='5'!B3 7...

Tracking Changes
I am the author of a document and am making revisions to it. I want to chnage the redline color to denote new edits from the 1st version. Can anyone guide me through this process? I am sure it is easy but I cannot figure it out. THanks Peter On Wed, 10 Feb 2010 07:08:06 -0800, Peter SSI <Peter SSI@discussions.microsoft.com> wrote: >I am the author of a document and am making revisions to it. I want to >chnage the redline color to denote new edits from the 1st version. Can >anyone guide me through this process? I am sure it is easy but I cannot >figure i...

Keeping a range constant when inserting rows
Hello, I'm trying to keep a range of cells constant within a function when I insert a row (e.g. average(a1:a6) becomes average(a1:a7) but I want it to keep the a1:a6 range). Even if I use absolute cell references ($a$1:$a$6), it doesn't help. I would greatly appreciate any ideas. Thanks, Jeff Jeff, In your formula, use: =AVERAGE(INDIRECT("A1:A6")) Absolute cell references (dollar signs) do one thing only: They keep any copies you make of the cell references from changing relatively as they're copied. They still change when the cells to which they refer are m...

sumproduct--counting--zero--blank cells
I'm using these formula to count, =SUMPRODUCT(($W$9:$W$272>=0)*($W$9:$W$272<10)) =SUMPRODUCT(($W$9:$W$272>=10)*($W$9:$W$272<20)) ........etc how do i get it so bank cells are excluded from the count. The way it is now, they are counted in the 0 to 10 range... Thanks Jeremy -- Message posted via http://www.officekb.com COUNTBLANK(range) "jeremy via OfficeKB.com" wrote: > I'm using these formula to count, > > =SUMPRODUCT(($W$9:$W$272>=0)*($W$9:$W$272<10)) > =SUMPRODUCT(($W$9:$W$272>=10)*($W$9:$W$272<20)) > ........etc > how do...

Counting blanks as zeros
Column AZ contains zeroes as well as blank cells (meaning no value has been entered in the cell). In my formula below, I want to reference only the cells that contain zero and ignore the cells that are blank. As written, the formula is referencing both zero and blak cells. How can I modify the formula to do ignore the blank cells in column AZ? {=SUM(IF(Chart1!$A$2:$A$10000=A3,IF(Chart1!$C$2:$C$10000=B3,IF(Chart1!$AZ$2:$AZ$10000=0,Chart1!$F$2:$F$10000),)))} Thanks, Bob You can add one more condition Chart1!$AZ$2:$AZ$10000<>"" or use SUMPRODUCT() formula as...

45 Degree Angled Text & Fill Option
I have Excel 2003 (11.6355.6360) running on XP and I'm wondering if this is a bug or not. If you have text in the first Row and you set it to 45 degrees angled, if you try and fill different cells with different fill colors, sometimes the box will fill angled, othertimes straight up and down. As a simple test, try creating a blank worksheet and make the first 3 columns 35 each in width and 100 in height. The type some text in each of the cells - not too much. Now select all 3 cells and format their alignment to 45 degrees. Now pick each one of the cells and fill each with a different ...

References omit formatting and return cell address
In two cases of references between worksheets, the formatting from the original cell does not appear in the cell that it is referenced to. Case 1: Worksheet 1, A1 contains a currency formatted number - $2,000 Worksheet 2, A1 references the Workhseet 1, A1 cell using the = sign, yet it returns 2000 (unless I manually reformat the Workksheet 2 cell to Currency Case 2: Worksheet 3, A1 contains an apartment # - e.g. 4 Worksheet 4, A1 references this cell but returns the cell address - Worksheet2,!A1' - rather than the number 4. I tried different formats for the number 4,...

How can I insert a cell reference in a footer (eg for variable foo
Any ideas on how to do this? I'm trying to create a template with the doc reference number in the footer However, I'm trying to avoid users having to edit the footer (because this just wont get done). Hi only possible with VBA using an event procedure. e.g. put the following code in your workbook module for cell A1 Private Sub Workbook_BeforePrint(Cancel As Boolean) Dim wkSht As Worksheet For Each wkSht In Me.Worksheets With wkSht.PageSetup .CenterFooter = wksht.range("A1").value End With Next wkSht End Sub -- Regards Frank Kabel Frankfurt, Ger...

Need help with a formula 01-23-10
I am looking for a formula that will compute an average of a number of non contiguous cells such as G8, G16, G24, G36, etc. Each of these cells has a formula which computes an average of a range of cells. With the helpm of this forum, I have been able to find a formula which does that AND uses values only when they are greater than zero and does not display #DIV/0!. But I cannot fin a fromula that will do the next step- Take an average of those specific cells AND use only the ones where the cell is >0, Example G8=100, G16=85, G24 is blank, G36=75, then this formula would ca...

How do I chart the same data cell on a range of worksheets?
I have the same row of cells on numerous worksheets that I want to chart or consolidate onto another worksheet ? Keith - You need to create a consolidated data range: http://peltiertech.com/Excel/ChartsHowTo/ChartFromDiffSheets.html - Jon ------- Jon Peltier, Microsoft Excel MVP Peltier Technical Services Tutorials and Custom Solutions http://PeltierTech.com/ _______ Keith wrote: > I have the same row of cells on numerous worksheets that I want to chart or > consolidate onto another worksheet ? ...

Count Text Data
Using 2007 on Vista If I've got text data which in some columns either has data or there is a blank, what formula do I use to count how many cells have text in them per column? Many thanks =COUNTA(A2:A200) will count everything except blanks post back if you have numbers as well that should not be counted -- Regards, Peo Sjoblom <weewillie@anon.com> wrote in message news:lfm764d39m4prld1iiqllpjuen7a1eptoq@4ax.com... > Using 2007 on Vista > > If I've got text data which in some columns either has data or there > is a blank, what formula do I use to count...

Count if based on 2 criteria
I am attempting to summarize some data based on the values in 2 different cells. Example Count the number of rows where column A = xyz and column U = "this is a test" I know the countif statement can't do multiple criteria, but is it possible to use nested countif statements, or use some combination of AND or IF statements? Thank you Answered in microsoft.public.excel.worksheetfunctions. Please do not post the same question separately to multiple newsgroups. It fragments the thread, and leads to people wasting time constructing answers to questions that have already be...

count data in column
Hi, I am using excel97 and trying to create a chart that has 5 columns of data in it a,b,c,d,e. I an trying to make a chart only for certain data in column a and column d. The data that I key off of is in column d and begins with s/ how can I count the number of s/ in column d? how can I create a chart that shows both and only that data that begins with s/ and the data in column a? --- Message posted from http://www.ExcelForum.com/ In cell F2 (I assume row 1 has headers) enter this formula: =LEFT(D2,2) and fill it down as far as you need. select any cell in the table, and apply an au...

Shading cells not working
When I try to shade cells they remain white, but if I go to print preview the color shows. Why won't the cells change color in normal view? If the fill colours aren't appearing, the high contrast setting may be turned on. There's information in the following MSKB article: OFF: Changes to Fill Color and Fill Pattern Are Not Displayed http://support.microsoft.com/?id=320531 Jenny wrote: > When I try to shade cells they remain white, but if I go > to print preview the color shows. Why won't the cells > change color in normal view? -- Debra Dalgleish...

Counting the number cells between two dates
Hi guys, Hope someone can help with this, I'm pretty sure it'll be quite a simple one. Column A:A contains a list dates, I want to use a formula to count the number of cells which contain a date between 01/01/05 - 31/01/05. Any ideas, Many thanks, Dave Try: =SUMPRODUCT((A1:A1000>=--"1/1/05")*(A1:A1000<=-- "1/31/05")) BTW - I'm using American date formats in mine. HTH Jason Atlanta, GA >-----Original Message----- >Hi guys, > >Hope someone can help with this, I'm pretty sure it'll be quite a simple one. > >Column A:A con...

Cycle Count
Hi, Client running GP 10. I am setting up their cycle count schedules and have run into an issue that I can't get an answer for. Want to set up the count to give me the following quantity of items to count weekly: A - 15 Items B - 10 Items C - 5 Items I am unable to find a way to automate this. Any suggestions (besides buying other count software?). -- Jim Lines Sr. Microsoft Dynamics GP Applications Consultant Certified Microsoft Dynamics GP Specialist I don't think so Jim. The assumption behind cycle counting is that you'll count all your inventory at least once annual...