+ Reply to Thread
Results 1 to 9 of 9

Unable to calculate highlighted cells.

  1. #1
    Registered User
    Join Date
    01-13-2012
    Location
    UK North West
    MS-Off Ver
    Excel 2003
    Posts
    3

    Unable to calculate highlighted cells.

    Can anyone help and excel idiot???

    Please if you are able and willing to shine a light then do so in easy speak haha no technical blurb as I am not too clever with excel only know the basic when it comes to spread sheet design.
    My problem is that I have recently designed a spread sheet with the full 2012 year on it. On this calendar is my shift pattern for each individual month. Every shift involves two travel days (there and back) so on the spread sheet I have highlighted my shift pattern in grey and the each time I have a travel day that cell is coloured green. Is it possible to somehow have the excel mega brain calculate only cells highlighted green and then another calc to count grey cells? Make sense????
    I know how to do calculations within the cell by doing = and then the cells I want to calculate but never highlighted cells only!
    Please help,
    Also I'm on 2010 MS Office

    Cheers
    Last edited by Mr Optimistic; 01-13-2012 at 04:49 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,028

    Re: !!!!!!!?????? Urgent help needed for dummy exceler !!!!!?????

    Please read and adhere to these simple rules!

    1. Use concise, accurate thread titles. Your post title should describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change the title of the thread, click EDIT on the original post, then click the Go Advanced button, then change the title. If two or more hours have passed, the EDIT button will not appear, and you need to ask a moderator to change the title.
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    01-13-2012
    Location
    UK North West
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Unable to calculate highlighted cells.

    sorry has now been changed if anyone can help, please do !

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Unable to calculate highlighted cells.

    the short answer is don't highlight cells then try to count them
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    01-13-2012
    Location
    UK North West
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Unable to calculate highlighted cells.

    not what i was after mate

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Unable to calculate highlighted cells.

    there is no function to count highlighted cells, you could use vbacode to do it tho'

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,028

    Re: Unable to calculate highlighted cells.

    Try this UDF:

    In one cell (i.e. A1) define color you want to SUM with, and then put reference in a function to that cell.
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor
    Join Date
    07-29-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    534

    Re: Unable to calculate highlighted cells.

    Slightly different approach, uses a Named Formula "frm", see ctrl+F9 for list of Names.
    Attached Files Attached Files

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Unable to calculate highlighted cells.

    ah good old excel 4 ,forgot about the 63

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1