[Solved] Set cell colors based on dropdown selection

Discuss the spreadsheet application
eeigor
Posts: 214
Joined: Sun Apr 12, 2020 10:56 pm

Re: Set cell colors based on dropdown selection

Post by eeigor »

Villeroy wrote: Sat Jun 25, 2022 2:29 pm I just tried to point out that someone who calls himself "Noobian" may not be able to transfer a given solution.
Perhaps Noobian in the game, not in Calc. And that's none of our business. I don't play at all.

But it was offered quite a ready-made solution. Problems will arise in editing the ranges. I had a specific question for you @Villeroy. Do you have an opinion?

Edit:
Cross ref posted
Ubuntu 18.04 LTS • LibreOffice 7.5.3.2 Community
User avatar
karolus
Volunteer
Posts: 1230
Joined: Sat Jul 02, 2011 9:47 am

Re: Set cell colors based on dropdown selection

Post by karolus »

Hallo
No need for INDIRECT, only with 2 Named-Ranges
Cyberpunk_karakterlap_no_indirect.ods
(25.6 KiB) Downloaded 86 times
AOO4, Libreoffice 6.1 on Rasbian OS (on ARM)
Libreoffice 7.4 on Debian 12 (Bookworm) (on RaspberryPI4)
Libreoffice 24.8… flatpak on Debian 12 (Bookworm) (on RaspberryPI4)
eeigor
Posts: 214
Joined: Sun Apr 12, 2020 10:56 pm

Re: Set cell colors based on dropdown selection

Post by eeigor »

karolus wrote: Sat Jun 25, 2022 3:51 pm No need for INDIRECT
There is a need. Calc is being tested for strength. :roll:
These are variations (your solution). The problem has already been solved. There is a tutorial attempt to remove the auxiliary sheet. But there was no way...
Ubuntu 18.04 LTS • LibreOffice 7.5.3.2 Community
Noobian
Posts: 15
Joined: Mon Jun 20, 2022 7:58 pm

Re: Set cell colors based on dropdown selection

Post by Noobian »

well Noobian is just a username i came up with, but to be fair, my skills are not as high as you guys. This is the intention behind this little project, to train myself and to get better. Before i was given the example solution, I thought its enough for me to set a cellstyle, and in the conditional formatting to select the cells i want to get highlighted. My confusion came, when I had to setup "cell value" or "all cell". Im using the hungarian version, so i don't know how it is called exactly in english. But eeigor and Zizi64 showed me solutions, but the whole things needs more complex things than i was hoping for
LibreOffice, unspecified version
Unspecified operating system
Noobian
Posts: 15
Joined: Mon Jun 20, 2022 7:58 pm

Re: Set cell colors based on dropdown selection

Post by Noobian »

thanks Karolus! I wish i understand how you guys are doing all these things :D but time is on my side. I will get it work. Now Zizi64, eeigor and Karolus showed me different variations for the same thing :)
LibreOffice, unspecified version
Unspecified operating system
eeigor
Posts: 214
Joined: Sun Apr 12, 2020 10:56 pm

Re: Set cell colors based on dropdown selection

Post by eeigor »

Use my way. @karolus refused to use INDIRECT() because it is volatile (gets updated whenever something changes). But my solution is simpler, and the overhead caused by using INDIRECT() is negligible because you have little data.
You cannot use named formula expressions. Only in the way I suggested (with named ranges).
Ubuntu 18.04 LTS • LibreOffice 7.5.3.2 Community
User avatar
Villeroy
Volunteer
Posts: 31346
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Set cell colors based on dropdown selection

Post by Villeroy »

This whole project is doomed to fail unless you use a true database. In 30 years I have not seen anything like this working on sheets. As soon as you add more items, properties, subitems, subproperties etc. the whole spreadsheet becomes unmanagable because spreadsheet programs are arithmetic calculators in the first place. Most of the functionality is about arithmetics and and a comparatively small subset of features tries to mimic a simplistic database program with some flat list keeping capabilities.99% of new users project a database onto the grid of cells and don't care about the core functionality.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
eeigor
Posts: 214
Joined: Sun Apr 12, 2020 10:56 pm

Re: Set cell colors based on dropdown selection

Post by eeigor »

Test. Excel INDIRECT() test to work with named formula expressions fails. It does not work either. The question is closed.
All that I suggested to the author is the solution.
Ubuntu 18.04 LTS • LibreOffice 7.5.3.2 Community
eeigor
Posts: 214
Joined: Sun Apr 12, 2020 10:56 pm

Re: Set cell colors based on dropdown selection

Post by eeigor »

@Noobian, an error has been corrected:
Technikus: Cyber tech. This skill has not been highlighted.
Attachments
Cyberpunk karakterlap-done (1).ods
(45.53 KiB) Downloaded 94 times
Ubuntu 18.04 LTS • LibreOffice 7.5.3.2 Community
Noobian
Posts: 15
Joined: Mon Jun 20, 2022 7:58 pm

Re: Set cell colors based on dropdown selection

Post by Noobian »

ok thank you guys for your kind help! I really appriciate it!
LibreOffice, unspecified version
Unspecified operating system
Post Reply