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

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


Another off-the-top-of-my-head stab at the problem, but in a pull down
list, doesn't the cell maybe actually store the index of the list, so
assuming "JAN" is the first item in the list, "AUG" should be either
the 7th (zero-based list) or the 8th (1 based list) entry, so try:

=IF(H44=7,Paid.D21,"")

or

=IF(H44=8,Paid.D21,"")

Might not work, I haven't tested, just my first thought on the matter.

Paul



On Tue, 29 Jul 2014 23:43:07 +0200
Ian Whitfield <whitfield@telkomsa.net> wrote:

>
> On 07/29/2014 10:45 PM, Brian Barker wrote:
> > The only thing wrong with your example is the dot separating the
> > second and third arguments - which presumably should be a comma.
> > There is nothing in the basic structure you are illustrating here
> > that would stimulate a #NAME? error, so the problem must be in your
> > cell reference or the "do calculation" - the parts you've not shown.
>
> Thanks Brian!! The dot separating the arguments was "finger trouble"
> when I wrote the eMail!!
>
> I think I've tracked down the problem but not the answer....
>
> My full statement is - =IF(H44="AUG",Paid.D21,"")
>
> Paid.D21 is the value I want to insert if the month is correct.
> H44 contains the month, ie AUG - and this seems to be the problem. It
> is a pull-down list of months.
> If I enter the month by hand the IF statement works but with it being
> a pull-down list it does not work.
>
> Is there a way round this??
>


--
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>
Re: [libreoffice-users] Text in an IF functionBrian Barker <b.m.barker@btinternet.com>
Re: [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.