Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
themax16
 
Posts: n/a
Default Formula to count Cell colour.


Morning all,
I am looking to set up a formula to count cells IF they are a filled
with a specific colour. Is this possible as i cannot find any way to
ask to countif - eg green.
I have tried everything i could think of - =COUNTIF(C5:BI24,(GREEN))
Any help will be greatly appreciated.
James


--
themax16
------------------------------------------------------------------------
themax16's Profile: http://www.excelforum.com/member.php...o&userid=23622
View this thread: http://www.excelforum.com/showthread...hreadid=374893

  #2   Report Post  
Piranha
 
Posts: n/a
Default


themax16 Wrote:
Morning all,
I am looking to set up a formula to count cells IF they are a filled
with a specific colour. Is this possible as i cannot find any way to
ask to countif - eg green.
I have tried everything i could think of - =COUNTIF(C5:BI24,(GREEN))
Any help will be greatly appreciated.
James

Hi,
See if you can find an answer here.

http://www.xldynamic.com/source/xld.ColourCounter.html

Dave


--
Piranha
------------------------------------------------------------------------
Piranha's Profile: http://www.excelforum.com/member.php...o&userid=20435
View this thread: http://www.excelforum.com/showthread...hreadid=374893

  #3   Report Post  
themax16
 
Posts: n/a
Default


Thanks for that.. one final thing... how do you enter UDF?
thanks
James


--
themax16
------------------------------------------------------------------------
themax16's Profile: http://www.excelforum.com/member.php...o&userid=23622
View this thread: http://www.excelforum.com/showthread...hreadid=374893

  #4   Report Post  
Naz
 
Posts: n/a
Default

You go into VBA ToolsMacrosVisual Basic Editor
In a module instead of Sub() and End Sub which you normally use you type

Function NameOfFunction(enter here seperated by commas, any cells the
function will use)

NameOfFunction= expression

End function

E.g say you wanted to calculate tax you could write this unction

Function Tax(Cell1,Cell2)

Tax = Cell1 * Cell2

End Function

The in the spreadsheet your formula would be

=Tax(cell you want to calculate tax for, cell with the tax rate )
so if the value cell was A1 (100) and B1 (10%) had the tax rate

=Tax(A1,B1)

gives

10 (100*.1)

--

_______________________
Naz,
London


"themax16" wrote:


Thanks for that.. one final thing... how do you enter UDF?
thanks
James


--
themax16
------------------------------------------------------------------------
themax16's Profile: http://www.excelforum.com/member.php...o&userid=23622
View this thread: http://www.excelforum.com/showthread...hreadid=374893


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
Formula to return cell contents based on multiple conditions Bill Excel Worksheet Functions 3 January 19th 05 09:59 AM
Cell shows formula and not the result of the formula. stumpy1220 Excel Worksheet Functions 2 January 14th 05 05:11 PM
Cell shows formula and not the result of the formula. stumpy Excel Worksheet Functions 2 January 14th 05 04:44 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


All times are GMT +1. The time now is 03:40 PM.

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"