• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Conditional Formatting formula|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Conditional Formatting formula|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Conditional Formatting formula
sp_PrintTopic sp_TopicIcon
Conditional Formatting formula
Avatar
Gary Buglass
Member
Members
Level 0
Forum Posts: 9
Member Since:
June 21, 2020
sp_UserOfflineSmall Offline
1
June 21, 2020 - 8:43 pm
sp_Permalink sp_Print

I am trying to create conditional formatting to highlight date cells in a column that are in the future.  I am currently trying this formula:

=AND($E15>TODAY(),$E15>=(TODAY()>30))

 

I have conditions using the standard drop downs for last month, this month and next month, but I want to highlight all dates after next month also.  I have used >30 in the formula above to try and highlight everything longer than 30 days but it doesn't seem to work.

Would appreciate any guidance

sp_AnswersTopicSeeAnswer See Answer
Avatar
Purfleet
England
Member
Members


Trusted Members
Level 4
Forum Posts: 412
Member Since:
December 20, 2019
sp_UserOfflineSmall Offline
2
June 22, 2020 - 1:28 am
sp_Permalink sp_Print

Seems to work for me, where are you putting your formula in?

Is always better to add an excample worksheet so we can see what is happening and we then dont have a to recreate the data

Avatar
Gary Buglass
Member
Members
Level 0
Forum Posts: 9
Member Since:
June 21, 2020
sp_UserOfflineSmall Offline
3
June 22, 2020 - 5:58 pm
sp_Permalink sp_Print sp_EditHistory

Thanks for your reply.

I have hopefully attached a sample file here :

 

As you will see, I have an orange highlight for dates next month but also trying to create the same for dates in the future after and beyond next month.  You can see that dates for November are not being highlighted.

 

Hope I am explaining this clearly. 

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 870
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
4
June 22, 2020 - 8:18 pm
sp_Permalink sp_Print

Hello,

If you change the formula to =AND($E15>TODAY(),$E15>=(TODAY()+30)) it works as you want.

Br,
Anders

Avatar
Gary Buglass
Member
Members
Level 0
Forum Posts: 9
Member Since:
June 21, 2020
sp_UserOfflineSmall Offline
5
June 23, 2020 - 6:15 pm
sp_Permalink sp_Print

Anders,

Thanks for that.  I did try using the + but for some strange reason, it didn't work.  It is working now though so thank you for that.

I have now noticed another issue now where I want to highlight past dates, the standard drop-down only has dates for last month which means those dates further back than a month don't get highlighted and remain blank.  

Again I have tried tweaking the formula to get this result but seems to highlight even the blank cells.  Clearly I am doing something wrong.

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 870
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
6
June 23, 2020 - 11:19 pm
sp_Permalink sp_Print sp_EditHistory

Hello,

Use this formula to highlight dates two months or more back.

=AND(NOT(ISBLANK($E15)),$E15<DATE(YEAR(TODAY()),MONTH(TODAY())-1,DAY(1)))

Br,
Anders

sp_AnswersTopicAnswer
Answers Post
Avatar
Gary Buglass
Member
Members
Level 0
Forum Posts: 9
Member Since:
June 21, 2020
sp_UserOfflineSmall Offline
7
June 24, 2020 - 6:28 pm
sp_Permalink sp_Print

Anders,

 

That worked perfectly.  Thank you so much, very much appreciated.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Roslyn Finlayson, Shanna Henseler
Guest(s) 2
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Uwe von Gostomski
Jonathan Jones
drsven
Forum Stats:
Groups: 3
Forums: 24
Topics: 6210
Posts: 27236

 

Member Stats:
Guest Posters: 49
Members: 31888
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.