Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
DB DB is offline
external usenet poster
 
Posts: 46
Default calculating nonblank cells with conditions

I used check marks in a spreadsheet. Some of the cells have a pattern
(yellow) to as an identifier. I need to be able to count the number of cells
that have the yellow pattern. I used the formula =COUNTA(RANGE) which adds
all the nonblank cells in the column, but now I need to isolate the cells in
the specific row that have the yellow pattern.

Please advise.

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default calculating nonblank cells with conditions

If you write VBA code you can check the activecell.interior.color property.
First I guess you should retrieve this value from one of the cells that are
"yellow" in order to find out which number represents it and then test the
other cells against this value.

I don't know if there is a way to test directly in a worksheet cell with a
function, or if it is acceptable for the user to run a command with i.e. a
button in order to count them. Maybe someone else can help more.

"DB" wrote:

I used check marks in a spreadsheet. Some of the cells have a pattern
(yellow) to as an identifier. I need to be able to count the number of cells
that have the yellow pattern. I used the formula =COUNTA(RANGE) which adds
all the nonblank cells in the column, but now I need to isolate the cells in
the specific row that have the yellow pattern.

Please advise.

Thank you.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default calculating nonblank cells with conditions

Oops - mistake. I should have written interior.pattern.color.
Sorry

"DB" wrote:

I used check marks in a spreadsheet. Some of the cells have a pattern
(yellow) to as an identifier. I need to be able to count the number of cells
that have the yellow pattern. I used the formula =COUNTA(RANGE) which adds
all the nonblank cells in the column, but now I need to isolate the cells in
the specific row that have the yellow pattern.

Please advise.

Thank you.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
count nonblank cells with conditions DB Excel Worksheet Functions 2 March 6th 09 09:03 PM
Adding only NONBLANK cells Troubled Excel Discussion (Misc queries) 2 October 13th 07 04:39 PM
tally of nonblank cells AustinMom Excel Worksheet Functions 3 August 31st 06 09:00 PM
Count NonBlank Cells Lynn Excel Programming 2 June 21st 06 11:21 PM
Adding NonBlank Cells Emily8 Excel Worksheet Functions 3 January 4th 05 06:16 PM


All times are GMT +1. The time now is 02:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"