Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
optionbase1
 
Posts: n/a
Default


Keeping it simple (but absorbing an additional column for the
assessment) you could define a simple function that analyses the
colorindex of the cells and returns a value that you could then use to
sort / group / conditional sum.

Something like that below placed in a VB Module would return you the
fill colour of the cell

Function myColorIndex(userRange As Range)
myColorIndex = userRange.Interior.colorIndex
End Function

exchange "Interior" for "Font " to assess the text colour.

You could make your function complete the sum or count (or make it
switchable via an extra passed variable) using a "For ... Each" loop
in the function to compelte the addition task.

An extra question for anyone else is : can you use a user defined
function nested into a useful summation function (such as CountIf
/SumIf or a conditional sum) so that an extra column is not needed?

hope this is of some help.


--
optionbase1
------------------------------------------------------------------------
optionbase1's Profile: http://www.excelforum.com/member.php...o&userid=25212
View this thread: http://www.excelforum.com/showthread...hreadid=386525

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
reminder notifications in a column L Mieth Excel Discussion (Misc queries) 6 June 10th 05 11:00 AM
Excel won't copy outside sheet Jack Sons Excel Discussion (Misc queries) 6 May 17th 05 10:05 PM
Copy worksheets with formulas between different workbooks Tim Excel Discussion (Misc queries) 3 March 31st 05 12:40 PM
Copy Function Genie Bohn Excel Discussion (Misc queries) 0 March 23rd 05 12:28 AM
Copy and pasting graphs to PowerPoint JZip Excel Discussion (Misc queries) 0 January 6th 05 08:29 PM


All times are GMT +1. The time now is 05:45 PM.

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

About Us

"It's about Microsoft Excel"