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


At 12:44 18/04/2014 +0200, Franco Noname wrote:
I'm looking for a solution to a problem with Calc similar to many requests I read googling around. Here the question: I have an activity by month table and I want to write in every row the hours employed by some people on that job. I need a way to get a quick look to the entire table so I can visually realize the people/day assignments and redistribute the next activities. There are only few peoples, so I assign a color to everyone and set a background color for the day that person made the job. Example (only 9 days for briefness): Anna: red Marco: green Laura: yellow I need to have as a result the sums based on the background color

I don't know any way to perform a calculation depending on the background colour of relevant cells. The CELL() function returns many properties, but not that one.

But you may be able to achieve what you need another way. Create cells styles with the chosen background colours. Instead of applying the background colour manually, enter the employee's name (or perhaps just an initial letter?) into a suitable column. You may even already have such a column. Then set the background colour of relevant cells using conditional formatting (Format | Conditional Formatting...) - though I think this would restrict you to three employees. Now create your sum formula - probably using SUMIF() - depending on the name data, not the background colours directly.

I trust this helps.

Brian Barker


--
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

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.