Searching for values with dates and letters

MustaphaOj

New Member
Joined
Jul 8, 2020
Messages
20
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

I have a formula but it’s half complete. I’m currently able to search for a dates after a certain using the “DATEVALUE” function but the data I’m searching through has the letter “A” in some columns next to the date. I would like to be able to search these dates too. As it stands my formula is

=IF(M24>DATEVALUE(“24/05/2019”), “yes”, “no”)

But if I have a date that reads “27/06/2024 A” how do I get that to also display yes or no?
thanks in advance
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Are you saying the "A" is in a different column than the date or is the "A" joined with the date (with a space separating them) within the same cell?
 
Upvote 0
Good Afternoon Rick,

they are in the same column together so for example.

27-06-21 A
13/08/19
06/03/20
 
Upvote 0
Try this formula (assumes dates are in Column A... change as needed)...

=IF(M24>DATEVALUE(0+LEFT(A1,8)), “yes”, “no”)
 
Upvote 0
Thank you for this Rick however I am still getting an error. In Column M is where the dates are mixed with the letter A. So Ideally the formula should read the whole column looking for dates past 24/05/19 with and without the letter A. Sorry if i wasn’t clearer before.
 
Upvote 0

Forum statistics

Threads
1,215,516
Messages
6,125,285
Members
449,218
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top