Date: prev next · Thread: first prev next last
2020 Archives by date, by thread · List index


On Wed, 23 Sep 2020 at 03:04, mamba_lev <mamba_lev@hotmail.com> wrote:

I'm putting together an annual rent report for the shared house i live in,
due to varying room sizes there are two rent brackets (60/week for small
rooms, 70/week for large) we also have one resident paying a third amount as
part of an arrangement we have where he is doing some work for us.

what i would like to be able to do is represent each rent bracket with a
letter (eg "A" for small rooms, "B" for large and "S" for special
arangments) and by inputting that letter in to a cell i would like another
cell to be populated with the total amount they owe in rent per year (or to
be left blank in the case of the special arrangement)

would this be possible and if so, how would i go about it?

If Column 'C' is to have the 'A' or 'B' or 'S' and starting row 5
(randomly picked, figuring there will labels above and to the left).

If C5 is waiting for the letter entry and the formula to appear in
cell D5 the most basic formula would be
=IF(C5="A",50,IF(C5="B",60,""))
This will result in a blank unless C5 has an 'A' or 'B'.

You can expand a bit to
=IF(C5="A",50,IF(C5="B",60,IF(C5="S","")))
This will result in a FALSE if C5 has anything other than 'A' or 'B'
or 'S', including a blank cell (good for catching errors).

If you only want a FALSE to appear when something other than 'A' or
'B' or 'S' is entered, not including a blank cell:
=IF(C5="","",IF(C5="A",50,IF(C5="B",60,IF(C5="S",""))))


Once you have the formula you want, it can be copied to other cells.



-- 
T. R. Valentine
A rich heart may be under a poor coat.

-- 
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy

Context


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.