+ Reply to Thread
Results 1 to 5 of 5

Help regarding formatting of cells

  1. #1
    Registered User
    Join Date
    02-09-2015
    Location
    Sialkot, Pakistan
    MS-Off Ver
    2007
    Posts
    20

    Help regarding formatting of cells

    Hello friends,

    I am a novice excel user in need of some guidance regarding conditional formatting of cells. I am an accountant at a firm dealing in both cash & installment sales of certain products. For installment sales I have account forms for my clients which includes columns for due dates, receiving date, remaining balance etc. I am trying to format my column for due dates (starting from B13 going down to B34 or B35 according to sales terms of 12 months or 24 months) in such a way that the cell containing upcoming due date highlights it self blue, if any payment entered in a corresponding cell like E13 (in my case starting from E13 & so on) then B13 should highlight itself green. If the due date in lets say cell B15 is over due (according to date on my pc) & no payment is entered in E15 then it should highlight it self red.

    I am trying hard to get some results but cannot get it.
    I am attaching an example file for better understanding.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Help regarding formatting of cells

    See if this will get you headed in the right direction?

    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =AND($B13<TODAY(),$E13="") Format Fill Red

    You now just need to create a new rule for the each of the other 2 conditions - shout if you need more help?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    02-09-2015
    Location
    Sialkot, Pakistan
    MS-Off Ver
    2007
    Posts
    20

    Thumbs up Re: Help regarding formatting of cells

    Hello FDibbins,

    Your reply was extremely helpful, I got it working for over due (highlighted red) & for upcoming due dates (highlighted in blue). Em just stuck a little bit on 3rd condition which is change of cell color from red to green if I enter any payment in column E. For e.g I have an over due date (30-Jan-2015) & I receive payment today, after entering the payment I want that cell turn green. I also want to know if there is a way to count the number cells specifically highlighted in red.

    Thanks in advance ..

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Help regarding formatting of cells

    Fir the green rule, try this...
    =AND($B13<TODAY(),$E13<>"")

    For the count (formulas dont count colors), try this...
    =COUNTIFS($B$12:$B$47,"<"&TODAY(),$E$12:$E$47,"")

  5. #5
    Registered User
    Join Date
    02-09-2015
    Location
    Sialkot, Pakistan
    MS-Off Ver
    2007
    Posts
    20

    Re: Help regarding formatting of cells

    Hello FDibbins,

    I checked out the formula, its working great just like I wanted. I am extremely grateful to you for your time my friend. You saved me from long hours of work. Once again, thank you for your guidance ..

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Conditional Formatting - Color Formatting for Blank Cells
    By mlbdc2012 in forum Excel General
    Replies: 10
    Last Post: 02-10-2015, 06:28 AM
  2. Formatting Cells with Date or Text Values in a Conditional Formatting Formula
    By Phil Hageman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2014, 09:36 AM
  3. Conditional Formatting. No formatting for Blank Cells
    By missellyt in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-11-2014, 06:42 AM
  4. Replies: 2
    Last Post: 09-19-2013, 10:34 AM
  5. Replies: 4
    Last Post: 01-06-2012, 05:07 PM

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