Thread: [Solved] Find Date Month
View Single Post
 
Old 07-22-2018, 01:05 AM
ArviLaanemets ArviLaanemets is offline Windows 8 Office 2016
Expert
 
Join Date: May 2017
Posts: 949
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

Quote:
Originally Posted by charlesdh View Post
The cell shows "May 31 2018" if you look at the formula bar it shows 5/31/2018.
This indicates, that in cell is date, not date string. Format the cell as general for moment - you see a long integer value in cell. This is the real value stored there.

Quote:
Originally Posted by charlesdh View Post
I'm using a string variable to get a date from another worksheet and then go to another worksheet and find the "Month" which is in row 2. The dates in this row are formate as "mmm-yyy". In the formula bar it will show 5/1/2018. And the row/column for this date shows "May-2018"
So on second sheet are also dates really?

Read Date from one sheet into variable as
Code:
YourVariable = FORMAT(YourDateOnSheet1,"yyyy-mm"))
On 2nd sheet, search for cell(s) where
Code:
FORMAT(YourDateOnSheet2,"yyyy-mm"))= YourVariable
Reply With Quote