+ Reply to Thread
Results 1 to 5 of 5

autoformat problem

  1. #1
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2021
    Posts
    979

    autoformat problem

    hi,

    i have an autoformat formula with the cells it applies to
    but my problem is if i insert a row between the cells the autoformat is applied to
    the row in the formula and the rows it applies to get messed up somehow
    either the row in the formula changes
    or the row it should apply to also changes
    or it also adds another autoformat rule with different row in the formula and different row it applies to
    (cell column does not change only the cell row changes)
    the cells has values of dates

    below is my formula and the cell it should apply to

    if month is equal or below the current month applies red fill color and white cell color bold format
    =$Z2<=EOMONTH(TODAY(),-1)+1 applies to =$Z$2:$Z$55

    if month is same as current month applies yellow fill color and bold format
    =AND(YEAR(TODAY())=YEAR(B2),MONTH(TODAY())=MONTH(B2)) applies to =$B$2:$Y$55

    how do i stop the rows in the formula and the rows it applies to
    from changing even when i insert another row?

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: autoformat problem

    Hi
    Try to use one more condition
    ROW($Z2)<=55

  3. #3
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2021
    Posts
    979

    Re: autoformat problem

    so i add another rule?

    ROW($Z2)<=55 applies to $Z$2:$Z$55 ?

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: autoformat problem

    No new rule.
    the same rule but with that conditions
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    applies to =$Z$2:$Z$55

  5. #5
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2021
    Posts
    979

    Re: autoformat problem

    i see, thank you

+ 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. Issues with AutoFormat
    By CStrunk in forum Excel General
    Replies: 2
    Last Post: 06-18-2009, 01:26 PM
  2. Adding a new autoformat
    By tuph in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-24-2007, 11:50 PM
  3. Custom AutoFormat
    By Mike in forum Excel General
    Replies: 0
    Last Post: 02-21-2006, 05:25 PM
  4. Problem with cell autoformat
    By Roman.Plotnikov in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-10-2006, 07:16 AM
  5. [SOLVED] Autoformat Customise - is it possible?
    By crapit in forum Excel General
    Replies: 1
    Last Post: 02-05-2006, 11:30 AM
  6. Autoformat
    By michel beuseling in forum Excel General
    Replies: 1
    Last Post: 07-17-2005, 11:05 AM
  7. Excel and Autoformat
    By Chris Davidson NGSS in forum Excel General
    Replies: 0
    Last Post: 06-13-2005, 01:05 PM
  8. [SOLVED] excel autoformat
    By J Norris in forum Excel General
    Replies: 1
    Last Post: 01-11-2005, 05:06 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