Ask Experts Questions for FREE Help !
Ask
    mal graham's Avatar
    mal graham Posts: 1, Reputation: 1
    New Member
     
    #1

    Jun 14, 2009, 02:10 AM
    formula for coloured cells and then expressed as time
    I have created an excel 07 spreedsheet:- cells is split into 15 min startting at 00:00 (@B2) to 23:34 @CS2)

    in a3 I have driving time
    in a4 other work
    in a5 POA
    in a6 break

    each cell I have managed to create a different colour when u click on the relevant cells (row 3 - red, row 4 - blue, row 5 - green & row 6 - grey) this was done by placing a code on the tab sheet.

    I'm now stuck as I want to be able to count each row by the relevant number of cells coloured (ie CB3:CE3 +CI3:CL3) = 8 cells but I want this to be calculated as each coloured cells represents 15 minutes.

    this would need to be for each of the above rows A3:A6.

    Any assistance is appreciated

    Malcolm
    JBeaucaire's Avatar
    JBeaucaire Posts: 5,426, Reputation: 997
    Software Expert
     
    #2

    Jun 14, 2009, 03:18 PM

    This isn't built into Excel. You will need to add some new User Defined Functions to your sheet to be able to count cells by colorindex.

    Here's some suggested sources with ready-to-try UDFs you can look into:

    Sum/Count Cells By Fill Or Background Color in Excel
    Color Functions In Excel
    Count by color using VBA in Microsoft Excel

    The 3rd one may the most quick to try, though not necessarily the most robust.

    Good luck, counting by color is an inherently "human" thing to do, and doing it with formulas in Excel is (in my opinion) a crazy manual way to do things.

    What I mean is... the only way for you to be able to count by colors is if you first manually go through and start coloring cells. Holy cow that's a manual process. I would step back and see if there's any way to automate what I'm manually doing in terms of the coloring. If I can teach Excel to color the cells FOR me, then the same macros could do the counting the same way, or at least at the same time.

    Anyway, color-counting... ugh... good luck.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Need formula for speed without having time component [ 2 Answers ]

Hello> Can someone help me with this? A vehicle travelling skidding 81ft to point of impact. How do you determine how fast the vehicle was going?

How do you stop this time calculation formula from rounding [ 7 Answers ]

I did not make this formula, but found it on the internet. I am trying to figure out how to make it stop rounding. It is the "total" cell for the "time in" and "time out" on a timesheet. The cell is formatted as "time". I want it to return exact minutes worked and not round. Can someone please...

What is a gene with two dominant alleles that are expressed at the same time? [ 1 Answers ]

What is a gene with two dominant alleles that are expressed at the same time?

Oceanography:I need the formula to find the time difference for longitude [ 1 Answers ]

Help! I need to find out how to calculate the time difference... of: 118 degrees 15'W and 81 degrees 47'W Please explain, I know you divide by 15 but?? :eek:

Clicking differnet cells and it selecting all cells [ 2 Answers ]

Just wondered if anyone knew what I did to get ms excel to select all cells from A1 to what ever cell I clicked on. Thought it was sticky keys but it was turned off. Clicked left mouse button and it moved cells then when I clicked other cells it started using that as a new ref point and selecting...


View more questions Search