+ Reply to Thread
Results 1 to 17 of 17

Auto Text insert based on IF & Conditional Formatting

  1. #1
    Forum Contributor
    Join Date
    04-28-2004
    Location
    Tokyo
    MS-Off Ver
    Office 2016 pro plus
    Posts
    175

    Auto Text insert based on IF & Conditional Formatting

    I have two questions.
    1st) I need column M to insert N/A if it doesn't meet the requirement. Column L is formatted with an IF based on contents in column E. Basically, if L = Not Required, then M should say N/A.

    2nd) I would like the annual training column highlight red if it is within 30 days of Today, and Yellow if it is 31-60 days. I placed a conditional format for the 30 days, but my 60 doesn't seem to be working.

    2 1/2) Is it possible to make a conditional format for the 1st day of the month Annual Training?

    To help clarify, the Annual Training is the same as training due date. It is based on the trained date in Q.

    I am learning so if someone notices I could have used a better formula or method, please educate me if you have the time.
    Attached Files Attached Files

  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,460

    Re: Auto Text insert based on IF & Conditional Formatting

    In M1, copied down:

    =IF(L1="Not Required","N/A","")

    Conditional formatting - try swapping the rules around and see if that works - the order they are in matters, because that is the order in which the rules are applied.

    What conditional formatting do you require for the Annual Training?
    Last edited by AliGW; 04-18-2014 at 04:11 AM.
    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 Contributor
    Join Date
    04-28-2004
    Location
    Tokyo
    MS-Off Ver
    Office 2016 pro plus
    Posts
    175

    Re: Auto Text insert based on IF & Conditional Formatting

    Thank you. The N/A worked, but it doesn't work in M2 only. Strange. The conditional formatting still doesn't work.
    Last edited by skylinekiller; 04-18-2014 at 04:22 AM.

  4. #4
    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,460

    Re: Auto Text insert based on IF & Conditional Formatting

    Conditional formatting - having had a look, you are referring to P1 when I think it should be P2, which contains a date. P1 contains a column heading.

  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,460

    Re: Auto Text insert based on IF & Conditional Formatting

    What do you mean about N2?

  6. #6
    Forum Contributor
    Join Date
    04-28-2004
    Location
    Tokyo
    MS-Off Ver
    Office 2016 pro plus
    Posts
    175

    Re: Auto Text insert based on IF & Conditional Formatting

    I meant M2. let me check the CF formulas

  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,460

    Re: Auto Text insert based on IF & Conditional Formatting

    OK. What is the issue with N2? It isn't mentioned in the formula I gave you, which was for column M.

  8. #8
    Forum Contributor
    Join Date
    04-28-2004
    Location
    Tokyo
    MS-Off Ver
    Office 2016 pro plus
    Posts
    175

    Re: Auto Text insert based on IF & Conditional Formatting

    Ahh, I think fixed it. I changed it to =IF($L:$L="Not Required","N/A","") is this correct? It seems to work.

  9. #9
    Forum Contributor
    Join Date
    04-28-2004
    Location
    Tokyo
    MS-Off Ver
    Office 2016 pro plus
    Posts
    175

    Re: Auto Text insert based on IF & Conditional Formatting

    Thank you AliGW, your advice worked. on the same sheet, how can I get Column P to appear blank if there is no date in Column Q?

  10. #10
    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,460

    Re: Auto Text insert based on IF & Conditional Formatting

    In P2, copied down:

    =IF(Q2="","",Q2)

    Yes, using $L:$L is fine, but all of your formulae are wrong in that they refer to the line above, which is why my version wasn't working for you. Look, for example, at the formula in L2 which is checking E1 - it should be checking E2!!!
    Last edited by AliGW; 04-18-2014 at 06:10 AM.

  11. #11
    Forum Contributor
    Join Date
    04-28-2004
    Location
    Tokyo
    MS-Off Ver
    Office 2016 pro plus
    Posts
    175

    Re: Auto Text insert based on IF & Conditional Formatting

    I would ahve done that before, but i currently have in P2 =Q2+365
    =[@[Date Trained]]+365

    This is what is making it complicated for me.

  12. #12
    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,460

    Re: Auto Text insert based on IF & Conditional Formatting

    Please see my amended post above: all of your formulae are incorrect.

  13. #13
    Forum Contributor
    Join Date
    04-28-2004
    Location
    Tokyo
    MS-Off Ver
    Office 2016 pro plus
    Posts
    175

    Re: Auto Text insert based on IF & Conditional Formatting

    Thank you for the advice, I changed all my formulas to row 2.

    How am I able to get column P2 to calculate and show a blank if Q2 is blank. Right now it "P" shows 30-Dec-00 dates for all "Q" cells that are blank?

  14. #14
    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,460

    Re: Auto Text insert based on IF & Conditional Formatting

    Forget this!
    Last edited by AliGW; 04-18-2014 at 06:38 AM.

  15. #15
    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,460

    Re: Auto Text insert based on IF & Conditional Formatting

    OK - like this in P2, copied down:

    =IF([@[Date Trained]]="","",[@[Date Trained]]+365)

  16. #16
    Forum Contributor
    Join Date
    04-28-2004
    Location
    Tokyo
    MS-Off Ver
    Office 2016 pro plus
    Posts
    175

    Re: Auto Text insert based on IF & Conditional Formatting

    Than you very much for your superb informative responses. This conludes this post. I hope I do not run into any problems. I really need to practice nesting different functions, it is really confusing.

  17. #17
    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,460

    Re: Auto Text insert based on IF & Conditional Formatting

    Nesting functions is easy once you understand the logic. However, the formulae I have given you are both single IF functions, not nested ones. The IF function works like this:

    =IF(logical test, what to return if true, what to return if false)

    Please mark the thread as [SOLVED] using the thread tools at the top.

+ 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. Replies: 2
    Last Post: 07-31-2013, 02:00 PM
  2. Replies: 3
    Last Post: 06-25-2013, 04:41 AM
  3. Insert Text using Conditional Formatting
    By kyandbe24 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-24-2013, 08:00 PM
  4. Conditional Formatting based on Text
    By avidcat in forum Excel General
    Replies: 3
    Last Post: 12-31-2010, 07:11 AM
  5. Conditional formatting based on text
    By Gilles Desjardins in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-18-2005, 10:06 AM

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