+ Reply to Thread
Results 1 to 11 of 11

How to add value to conditionally formatted cells in excel

  1. #1
    Registered User
    Join Date
    08-27-2010
    Location
    toronto, canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    How to add value to conditionally formatted cells in excel

    Hi,

    I am running a time chart, which has a start date/end date & on basis of few conditions conditionally format cells b/w this time period.

    eg:
    start date 10th Jan/End date 10th Mar. Now it selects cells from 10th jan to 10th feb & color as green because till this time period all tasks are done. and leave rest from 10th feb to 10th mar in red as not done yet.
    So far its working fine but now I want it to merge those cells which are green and put a value on top saying 220 tasks have been done & merge red to say 220 left.

    Please help How to do this using VBA or what ever best possible way?

    Thanks in Advance.

    Vikram
    Attached Files Attached Files
    Last edited by vvvv4114; 11-03-2010 at 10:07 AM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: How to add value to conditionally formatted cells in excel

    Vikram, can you please upload a smaller file? A sample of your data with just a few rows would be sufficient.

  3. #3
    Registered User
    Join Date
    08-27-2010
    Location
    toronto, canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: How to add value to conditionally formatted cells in excel

    Hi Teylyn,

    I tried to remove almost all unwanted information from my file but still its close to 400Kb
    sorry about that its the structure of it which makes it that big file.

    Vikram

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: How to add value to conditionally formatted cells in excel

    zip it, then.

  5. #5
    Registered User
    Join Date
    08-27-2010
    Location
    toronto, canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: How to add value to conditionally formatted cells in excel

    Hi,

    As per request, file has been uploaded in zip format.

    Vikram

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: How to add value to conditionally formatted cells in excel

    vikram, this is a rather complex undertaking. I'm strongly against using merged cells, since they cause all kinds of trouble.

    Why not use a project management software that was designed to do these things out of the box instead of forcing Excel to be something that it is not?

  7. #7
    Registered User
    Join Date
    08-27-2010
    Location
    toronto, canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: How to add value to conditionally formatted cells in excel

    Hi Teylen,

    I totally agree what you are saying but have no choice as not willing to use those softwares. But thanks for looking at it and if you have any suggestions with excel please let me know for this job.

    Vikram

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How to add value to conditionally formatted cells in excel

    I have spent some time looking at your workbook, and a few things aren't clear:

    I don't see why there are two Status columns, how their values are used, or if that's even important for your question.

    I don't see why you need to merge cells.

    I don't understand where the number 220 came from in relation to how many tasks are completed, or left.

    Although I might be able to answer your question on its face, I agree with Teylyn that a project management tool would do a much better job of this, and probably do what you need out of the box with no special configuration or programming on your part. There are lots of free open-source products if you don't want to buy a commercial tool like Microsoft Project.

    Going down this path will cause you write Microsoft Project in VBA, and will be more complex that you may expect.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  9. #9
    Registered User
    Join Date
    08-27-2010
    Location
    toronto, canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: How to add value to conditionally formatted cells in excel

    Hi,

    Thanks for your time on this.

    worksheet you saw works perfect right now as per my needs.

    eg:
    what I am trying to do is create date bars saying that if a project runs for like 8 months jan - Aug. Every week a status report is generated saying that all green + Red part is work done so far & red part says amount of work done last week. And blue part is work left. there are many tasks in one project say for eg.
    this project has 400 tasks attached to it.
    till green + red part 220 are done. (200 in green & 20 done in last week which is red). and now 180 left in blue part to be done till august.

    All the date part is working fine right now. saying like project started in jan till current situation say may and even last week cells get colored too. and left out is all blue from may till aug.

    Now I am trying to add values to it like will add three columns to the sheet for values and trying to merge colored cells so that I can add those values to these 3 colored sections...........

    I hope you will get a clear picture of what I am trying to acheive, if not let me know will try to provide more details.....

    Thanks,

    Vikram

  10. #10
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How to add value to conditionally formatted cells in excel

    I don't see the answers to any of the questions I asked. Also you make references to the "red part" but there is no red part, and there is no conditional formatting that would make any part red.

    Quote Originally Posted by vvvv4114 View Post
    Every week a status report is generated saying that all green + Red part is work done so far & red part says amount of work done last week.
    I do not see where you capture enough information to tell what work that was done last week. What does "done" mean--there is progress on a task? The task is completed? How are you expecting to determine that for formatting purposes?

    saying like project started in jan till current situation say may and even last week cells get colored too. and left out is all blue from may till aug.
    I'm sorry but I can't parse that at all.

    Now I am trying to add values to it like will add three columns to the sheet...
    Where are you expecting to add columns? The columns are dates, so you can't add new dates right in the middle.
    ...for values and trying to merge colored cells so that I can add those values to these 3 colored sections...........
    I can't parse this either.

    I hope you will get a clear picture of what I am trying to acheive, if not let me know will try to provide more details.....
    It's not so much that I need more detail, but I am having a hard time with your English, punctuation, and capitalization. I have only the vaguest idea of what you are trying to do and how you want to implement it in Excel. It would be better to explain what value you are trying to get out of this tool before diving into the details of the tricks you want Excel to perform.

    What do you need to show the audience for this information?

  11. #11
    Registered User
    Join Date
    08-27-2010
    Location
    toronto, canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: How to add value to conditionally formatted cells in excel

    Hi,


    No one mentioned these things before so didn't realize when I attached files to my query, forget to add this second file which has all details.

    Please have a look to the attached file for all details.

    Sorry for this trouble you had to understand my query.

    Regards,

    Vikram
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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