![]() |
#1
|
||||
|
||||
![]()
Hi. In a column of dates spanning several years, I would like my formula to find all the dates falling on or before May 15 regardless of year.
=If Date is <=May 15, "x","y") How do I place the "May 15" in a formula? Thank you. |
#2
|
||||
|
||||
![]()
It all depends on your layout and formatting
Perhaps post a small sheet with some examples? Also, do you mean "before May 15" in the same year? Are you still using XL 2019?
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#3
|
||||
|
||||
![]()
I am using Office 365. I could not exactly say May 15, 2022. I have tried several formula under the Bonus column since yesterday but no success.
Perhaps the attached sample sheet might help. Thank you. |
#4
|
|||
|
|||
![]()
What you mean by "... I would like my formula to find all the dates ..."
Do you want the formula to return "Yes" or "No" for every row of table depending the date in some column of same row? When yes, then probably something like (assuming the dates are in column A of table, and they aren't datestrings, but are real dates) Code:
=AND(DAY(A2)<=15,MONTH(A2) = 5) |
#5
|
||||
|
||||
![]()
Thank you Arvi. I had been doing the formula using the TEXT function hence I kept on getting erroneous answers.
|
#6
|
||||
|
||||
![]()
Could you please amend your profile accordingly? 365 has a lot of new functions and has PQ, whereas other versions only have PQ when installed by the user. Thx
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extracting date, month & year from a text string without using date format Help | Haha88 | Excel | 5 | 08-06-2021 01:19 PM |
![]() |
Learner7 | Excel | 3 | 06-16-2019 11:09 AM |
![]() |
charlesdh | Excel Programming | 11 | 07-24-2018 06:11 PM |
Excel day date month year Function | greginky | Excel | 1 | 01-05-2016 02:19 AM |
Formula to count entries as per month, year and submission wise from different sheets | pinkacidpunk | Excel | 1 | 05-28-2013 08:26 AM |