• 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
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Write the Letter "L" in column (P) If the date entered in column (D) is less than% compared to today's date|VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / Write the Letter "L" in column (P) If the date entered in column (D) is less than% compared to today's date|VBA & Macros|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
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 ForumVBA & MacrosWrite the Letter "L" in column (P) …
sp_PrintTopic sp_TopicIcon
Write the Letter "L" in column (P) If the date entered in column (D) is less than% compared to today's date
Avatar
A.Maurizio
Member
Members
Level 0
Forum Posts: 202
Member Since:
June 26, 2016
sp_UserOfflineSmall Offline
1
June 2, 2021 - 11:41 pm
sp_Permalink sp_Print

Good day everyone from Maurizio
And my problem is this:
on an excel sheet in Cell (A2) I insert today's date.
While in the cd column (D2: D200) I enter the dates of other months or working days.
While with this Procedure, I would like to make sure that the letter (L) appears in column (P) corresponding to the same row only if the date entered in the column (D2: D200) is less than 5 working days
If not, do not write anything.
What I am trying the is not evaluating anything why.

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("D2:D100")) Is Nothing Then
If Target = Foglio2.Range("A2").Value < 5 Then
Cells(Target.Row, "L") = "L"
End If
End If
End Sub

thank you for all the help you will be able to give me Greetings from A.Maurizio

Avatar
A.Maurizio
Member
Members
Level 0
Forum Posts: 202
Member Since:
June 26, 2016
sp_UserOfflineSmall Offline
2
June 3, 2021 - 2:24 am
sp_Permalink sp_Print

Hello everyone, it's always me Maurizio.
I am writing to you again as on the one hand you no longer take into account my first reclamation as I managed to solve everything in this way:

If Not Intersect(Target, Range("D2:D100")) Is Nothing Then If Target = Range("A2").Value - 5 Then Cells(Target.Row, "Q") = "D" End If End If

Therefore this is okay.
But if you could solve this enic but I'd be happier.
The Oriblema is this:
Still on the Excel sheet in the column (i2: i200) I insert many terms but when it meets the word (change balance) it should evaluate itself in the adjacent column (J2: J200) a number greater than Zero is reported.
Then it should put nice column (P) The letters (CS) that's all.
Thank you for all the help you will want to give me on this.
Greetings from A.Maurizio

Avatar
Purfleet
England
Member
Members


Trusted Members
Level 4
Forum Posts: 414
Member Since:
December 20, 2019
sp_UserOfflineSmall Offline
3
June 4, 2021 - 6:04 pm
sp_Permalink sp_Print

Can you add an example worksheet so we doint need to recreate the data

Avatar
A.Maurizio
Member
Members
Level 0
Forum Posts: 202
Member Since:
June 26, 2016
sp_UserOfflineSmall Offline
4
June 5, 2021 - 3:59 am
sp_Permalink sp_Print

Hello Purfleet listen nop the moment I had not entered anything because in the meantime I was able to almost solve the whole.

Therefore, in order to be complete in all its parts, I would like to be able to solve this too:
I want to filter values ​​higher than 25.000 and lower or = 100.000 which I insert in the Column (D2: D100) and the answer of the true or false should go in the Column (F2: F100) All I have tried alcube solutions; but they don't work
Thanks for all the help you will want to give me credit
Greetings From A.Maurizio

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Mynda Treacy, Kathleen Silva
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 215
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Anthony van Riessen
Erlinda Eloriaga
Abisola Ogundele
MARTYN STERRY
Rahim Lakhani
Ngoc Qui Nguyen
Clement Mansfield
Rose .
Bindu Menon
Baruch Zemer
Forum Stats:
Groups: 3
Forums: 24
Topics: 6352
Posts: 27779

 

Member Stats:
Guest Posters: 49
Members: 32319
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.