+ Reply to Thread
Results 1 to 7 of 7

Highlight Column of Prior Month

  1. #1
    Registered User
    Join Date
    08-28-2020
    Location
    England
    MS-Off Ver
    365
    Posts
    57

    Highlight Column of Prior Month

    Hi

    I hope that you are well, i am wanting to apply coditional formatting so that it highlights the prior month column based on a date at the top of the column.

    I have the last day of the month in each column in Row 6 and i am wanting the spreadsheet to highlight the prior month based on this.

    thanks In Advance

    The Fish!
    Attached Files Attached Files
    Last edited by ExcelFish2020; 05-05-2022 at 05:17 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Highlight Column of Prior Month

    I don't want to have to replicate your data in order to help, so there are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Highlight Column of Prior Month

    Rule for C6:

    =MONTH(C$6)=MONTH(TODAY())-1

    Applies to: =$C$6:$O$21
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-28-2020
    Location
    England
    MS-Off Ver
    365
    Posts
    57

    Re: Highlight Column of Prior Month

    Thanks for your help, im curious about the significance of cell C6?

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Highlight Column of Prior Month

    C6 is the first cell in the range to which the rule needs to be applied. There are other ways, but MY preferred method is to set the rule in the first cell of the range, and then set the applies to range manually.

    The rule for each cell in your range does this:

    1. Look at row 6 and see if the date equals today's month minus 1 (so for May, this means April).
    2. If the rule returns TRUE, apply the formatting to that cell.
    3. The $ fixes the row, so all cells in the C range are looking at C6, all in D are looking at D6 and so on.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  6. #6
    Registered User
    Join Date
    08-28-2020
    Location
    England
    MS-Off Ver
    365
    Posts
    57

    Re: Highlight Column of Prior Month

    Thanks for your help with this, really appreciated.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Highlight Column of Prior Month

    No worries. For what it's worth, always be methodical about CF: if you try copying and pasting, you'll and up in a pickle. Follow my method and not much can go wrong. Been there, done that and got the T-shirt!!!

+ 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. Month to Date over prior and Week to Date over prior automation
    By ZDR23 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 12-15-2021, 01:17 PM
  2. [SOLVED] Return Month-on-Month growth using current month-prior month/prior month per country
    By losincog in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2020, 05:37 AM
  3. Copy formulas from one column to next column based on Current & Prior Month
    By balston2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-29-2018, 08:59 PM
  4. [SOLVED] date formula that puts the first of the prior month based on which month it is
    By cmorten82 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-08-2015, 05:38 PM
  5. Convert date from current month to first day of prior month
    By maacmaac in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-07-2010, 12:23 PM
  6. Replies: 4
    Last Post: 02-14-2010, 05:21 AM
  7. A Crosshair to Highlight the Entire Row/Column Prior to active cel
    By Josh Lakien in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-31-2005, 10:05 AM

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