+ Reply to Thread
Results 1 to 21 of 21

Excel 2007 : Conditional Formatting- Mixed Data

  1. #1
    Registered User
    Join Date
    03-19-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Question Conditional Formatting- Mixed Data

    Hi,

    I have a list of data with various dates and the occasional blank or N/A. Is it possible to have a formula alert me when a date is within two weeks of today's date (in the future) that turns off when another cell has a value of approved?

    My issue is that when I use a conditional formatting formula like =(A2-14)<TODAY() the cell alerts dont go away.

    Thanks for the help!

    See attached data
    Attached Files Attached Files

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Conditional Formatting- Mixed Data

    you can do it with the formula like this

    =AND(A2<>"approved",B2-14<TODAY())

    pease see attached for the formating in use.
    Attached Files Attached Files
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Conditional Formatting- Mixed Data

    Hi needyohelp,

    See the attached file and let me know if this works for you. Thanks


    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditional Formatting- Mixed Data

    ..Excuse me, but,@DILIPandey.

    Has your suggestion something different than DGagnon's..??
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Conditional Formatting- Mixed Data

    Yes... and just to list them :-

    1) the dollar ($) sign in the CF logic
    2) the choice of color (different red shade)
    3) the range A17:A18 are different i.e., values are changed ( I believe that is done for testing purpose)

    and even the attached file name.. are different

    Also, just noticed that I have taken around 9 mins in checking the differences and drafting this post.. and it is quite possible that some one else has already replied highlighting these differences <by the time I am drafting this email>. please don't assume that I have taken the details (of differences) from that person's post

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Conditional Formatting- Mixed Data

    Oh... great....!!

    After clicking on the button "Post Quick Reply", I got to know that no one else has replied in between... so I am safe.. right

    Thanks.


    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditional Formatting- Mixed Data

    Nice joke!!!...........

  8. #8
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Conditional Formatting- Mixed Data

    I also noted the same differences.

    Quote Originally Posted by dilipandey View Post
    Yes... and just to list them :-

    1) the dollar ($) sign in the CF logic
    2) the choice of color (different red shade)
    3) the range A17:A18 are different i.e., values are changed ( I believe that is done for testing purpose)

    and even the attached file name.. are different

  9. #9
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Conditional Formatting- Mixed Data

    Cheers

    and heartiest thanks for your kind understanding... my Friend(s) ...

    Also, I am expecting a auto system.. which can tell me -> "hey dilipandey, you have take a little long while solving this query, mr.xyz has already replied with similar solution hence go ahead and scrap your efforts and don't dare to post, else you'll be in question"



    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditional Formatting- Mixed Data

    Best way in this case(I know this from my experience......) is to delete our answers.

    At least what i do, anymore.....

    Cheers...

  11. #11
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Conditional Formatting- Mixed Data

    ha ha ha..

    I see it as "two great minds - think alike"

    and just wanted to keep my solution as a proof of above statement, so that my wife can't question my capabilities....

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  12. #12
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Conditional Formatting- Mixed Data

    If thats the case i would not use my posts as a standard for 'Great Minds'

  13. #13
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Conditional Formatting- Mixed Data

    ha ha ha... !!

    that one is little tricky... i guess..

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  14. #14
    Registered User
    Join Date
    03-19-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Conditional Formatting- Mixed Data

    Quote Originally Posted by DGagnon View Post
    you can do it with the formula like this

    =AND(A2<>"approved",B2-14<TODAY())

    pease see attached for the formating in use.
    This is perfect thanks. However if there is a blank in the date coloumn the cell is red. Is there anyway to avoid this?

    And I can't find a star to click on, but I do like your post.

  15. #15
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Conditional Formatting- Mixed Data

    =AND(A2<>"approved",B2-14<TODAY(),B4<>"")

    and the star is to the bottom right just bellow the post, its a 6 pointed star. feel free to 'rep' any members who contributed positivly to your thread.

  16. #16
    Registered User
    Join Date
    03-19-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Conditional Formatting- Mixed Data

    I'm getting a litte confused as the data I gave you isn't exactly what mine looks like. See the attached for a better idea of what I'm working with.

    I input the formula you gave me and it doesnt seem to be working. To recap I'm looking to have the reapproval cell turn red when the reapproval date is within 2 weeks (in the future), and for the red alert to go away when there is an approval in the "I" coloumn. Also if the reapproval date is past the current date and has not been approved I would like it to stay red so I know it needs to be taken care of, and go away when approved.

    I hope this isn't too confusing.

    data.xlsxThanks!

  17. #17
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Conditional Formatting- Mixed Data

    try editing your conditional format formula to this:

    =AND(I2<>"approved- no change",J2-14<TODAY(),J2<>"")

    i think it is working based on the decription you provided.

    note: the data you provided has no lines that should be highlighted based on this formula

  18. #18
    Registered User
    Join Date
    03-19-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Conditional Formatting- Mixed Data

    Quote Originally Posted by DGagnon View Post
    =AND(A2<>"approved",B2-14<TODAY(),B4<>"")

    and the star is to the bottom right just bellow the post, its a 6 pointed star. feel free to 'rep' any members who contributed positivly to your thread.
    I've input a test area that contains cells with relevant dates. The approved cell doesnt seem to have an effect. data.xlsx

  19. #19
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Conditional Formatting- Mixed Data

    you need to change the word "Approved" to "approved- no change" as that is what is actualy in your data

  20. #20
    Registered User
    Join Date
    03-19-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Conditional Formatting- Mixed Data

    I actually have it as "approv*" in the date to account for variations and it still doesnt seem to be working.

  21. #21
    Registered User
    Join Date
    03-19-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Conditional Formatting- Mixed Data

    NVM I got it, thanks for the help!

+ 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