[Solved] Change cell color, by comparing other cells

Discuss the spreadsheet application
Locked
rayroshi
Posts: 45
Joined: Mon Nov 16, 2009 1:54 am
Location: Washington State, USA

[Solved] Change cell color, by comparing other cells

Post by rayroshi »

I am working on a budget spreadsheet, and simply want to compare two cells to each other: C10 ("Total Income") and C46("Total Expenses"); then if "Total Income," C10, is equal to or larger than "Total Expenses," C46, a third cell, C48 "Budget Surplus/Deficit," would be displayed in black; however if C10 is less than C46, cell C48 would change to red.

I have almost zero programming experience, so although this is a pretty basic thing for those who are experienced with Calc, I'm lost and would appreciate any help.

Additionally, if anybody knows of a good user manual that would help me learn how to use OpenOffice, I would also appreciate knowing what it is.
Last edited by Hagar Delest on Sun Sep 01, 2024 8:33 pm, edited 1 time in total.
Reason: tagged solved.
OpenOffice.org 4.1.2 Windows 10
FJCC
Moderator
Posts: 9623
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Change cell color, by comparing other cells

Post by FJCC »

This is easily done. I take it you want the value in C48 to be red or black, not the cell background. I'm assuming that C48 contains the difference of C10 and C46, so the number will be negative if C10 is less than C46. Click on C48 and then select the menu Format -> Cells. Choose the Numbers tab of the dialog. In the Category list, choose Currency. In the Format list, choose the item that is red and shows -$1,234.00. Click OK and you are done.

There are user guides for the old 3.3 version here.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
rayroshi
Posts: 45
Joined: Mon Nov 16, 2009 1:54 am
Location: Washington State, USA

Re: Change cell color, by comparing other cells

Post by rayroshi »

Thank you for that helpful response; it worked perfectly. I really appreciate your time and effort!
OpenOffice.org 4.1.2 Windows 10
Locked