Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel and colours

Hi, need some advice.

I have created an Excel document and i need to automate it.

Each cell along a row has a value (0.5,1,1.5, etc,) at the
end of that row is the cumulative value of the cells. The
document is updated on a weekly basis and to denote
progress a colour from the FILL COLOUR command is added to
a completed cell.

Is there any way that by clouring a cell Excel can
recognize a coloured cell as being complete and adding the
value of a cell to the value in the cumulative value.

All advice would be greatly appreciated!

Dan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Excel and colours

Unless you want to use VBA - can you insert a row above or below your data
row that is used to
indicate that the cell directly below or above has in it completed data and
thus should be included
in your cumulative total ? If you don't mind this then you could us the
sumif function to clac you total
and auto format to colour the completed data element (if that is still
important for display purposes).

"Dan" wrote in message
...
Hi, need some advice.

I have created an Excel document and i need to automate it.

Each cell along a row has a value (0.5,1,1.5, etc,) at the
end of that row is the cumulative value of the cells. The
document is updated on a weekly basis and to denote
progress a colour from the FILL COLOUR command is added to
a completed cell.

Is there any way that by clouring a cell Excel can
recognize a coloured cell as being complete and adding the
value of a cell to the value in the cumulative value.

All advice would be greatly appreciated!

Dan



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Excel and colours

Hi Dan,

Give this a try.

Sub SumSome()
Dim Cell As Range
Dim i As Integer

For Each Cell In Range("Data")
If Cell.Interior.ColorIndex < xlNone Then
i = i + Cell.Value
End If
Next

Range("H1").Value = i
End Sub

Where the named range, Data, in this example is A1:F1 and the total goes
into H1.

HTH
Regards,
Howard

"Dan" wrote in message
...
Hi, need some advice.

I have created an Excel document and i need to automate it.

Each cell along a row has a value (0.5,1,1.5, etc,) at the
end of that row is the cumulative value of the cells. The
document is updated on a weekly basis and to denote
progress a colour from the FILL COLOUR command is added to
a completed cell.

Is there any way that by clouring a cell Excel can
recognize a coloured cell as being complete and adding the
value of a cell to the value in the cumulative value.

All advice would be greatly appreciated!

Dan



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
How can I customise colours used in charts and keep those colours. LJ Charts and Charting in Excel 3 May 20th 10 01:50 PM
How to save one of the MORE COLOURS in the THEME COLOURS? Wulfy Excel Discussion (Misc queries) 0 August 18th 09 10:25 AM
I have no colours in Excel Lynnie Excel Worksheet Functions 2 July 22nd 07 12:59 PM
Excel 2003 font colours and cell colours bretta Excel Discussion (Misc queries) 1 April 17th 05 03:45 AM
Excel and Colours Dan[_27_] Excel Programming 1 October 22nd 03 12:33 PM


All times are GMT +1. The time now is 03:45 AM.

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"