Forum

Notifications
Clear all

Retrieve a date with the Month function

5 Posts
3 Users
0 Reactions
75 Views
(@usb)
Posts: 244
Honorable Member
Topic starter
 

Hi,

attached file -
In the Sheet1 issue I wrote the date in the blue cell
And in the yellow cell I converted it to the desired structure
The problem is that it did not pull out well this month -
Instead of 18/4/2022 it was written 18/1/2022
Why?

 
Posted : 01/05/2022 11:54 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Lea,

I don't recommend converting dates to text because it renders them useless in formulas. Why don't you use a custom number format:

yyyy-mm-dd

If you insist on having the date in a text format, then use this formula:

=TEXT(B8,"yyyy-mm-dd")

Mynda

 
Posted : 02/05/2022 2:01 am
(@usb)
Posts: 244
Honorable Member
Topic starter
 

Hi,

In the attachment here
I did what you suggested in the blue cell
But then the Match fails to pull out the figure - why?

Thank You!
Leah

 
Posted : 02/05/2022 11:35 am
(@usb)
Posts: 244
Honorable Member
Topic starter
 

I used the formula you suggested above -
TEXT (B8, "yyyy-mm-dd") =
And it worked for me, thank you very much !!

 
Posted : 03/05/2022 2:12 am
(@jstewart)
Posts: 216
Estimable Member
 

Personally, I'd use an Index/Match. I have what I believe you are looking for attached.

 
Posted : 04/05/2022 10:50 am
Share: