[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libreoffice-users] Text in an IF function


Hi,

Le 29/07/2014 17:43, Ian Whitfield a écrit :
> I came across a situation today where I need to test text - ie I need to
> test for a month's name.

If the referenced cell (say it's A1) contains a month name :

=IF(A1="AUG";doYes;doNo)

If the referenced cell contains a date formatted to display as a month
name (namely "MMMM"), then:

=IF(MONTH(A1)=8;doYes;doNo)

HTH,
--
Jean-Francois Nifenecker, Bordeaux

--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

References:
[libreoffice-users] Text in an IF functionIan Whitfield <whitfield@telkomsa.net>
Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.