ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Year and Month Question? (https://www.excelbanter.com/excel-programming/315616-year-month-question.html)

Michael168[_123_]

Year and Month Question?
 

Hi! Frank Kabel,
Yes, it work for month but not for the year.

A1=2003
(TEXT(Full!$A$1000:$A$2000,"yyyy")=A1)

Why ? Any Idea?

Thanks
Michael

Frank Kabel Wrote:
Hi
as Tom said. Don't do this. But as an alternative try:
(TEXT(Full!$A$1000:$A$2000,"MMM")=B1)


--
Regards
Frank Kabel
Frankfurt, Germany



--
Michael16
-----------------------------------------------------------------------
Michael168's Profile: http://www.excelforum.com/member.php...info&userid=60
View this thread: http://www.excelforum.com/showthread.php?threadid=27449


Tom Ogilvy

Year and Month Question?
 
because "2003" < 2003

try
(--TEXT(Full!$A$1000:$A$2000,"yyyy")=A1)

--
Regards,
Tom Ogilvy

"Michael168" wrote in message
...

Hi! Frank Kabel,
Yes, it work for month but not for the year.

A1=2003
(TEXT(Full!$A$1000:$A$2000,"yyyy")=A1)

Why ? Any Idea?

Thanks
Michael

Frank Kabel Wrote:
Hi
as Tom said. Don't do this. But as an alternative try:
(TEXT(Full!$A$1000:$A$2000,"MMM")=B1)


--
Regards
Frank Kabel
Frankfurt, Germany




--
Michael168
------------------------------------------------------------------------
Michael168's Profile:

http://www.excelforum.com/member.php...nfo&userid=605
View this thread: http://www.excelforum.com/showthread...hreadid=274495





All times are GMT +1. The time now is 03:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com