I have a spreadshhet with rows of numbers in 6 columns, some of those #'s are highlighted in RED denoting the highest # in row across the 6 coloumns ... I would like to have a total running count at bottom of each column of just the colored #'s. Is there a function to use to create formula for such a thing count the colored text?
Thanks in advance for any replies.
Kathy Fakes Open Office User.
[Dropped] Count cells highlighted in red color
[Dropped] Count cells highlighted in red color
Last edited by MrProgrammer on Sun Jul 05, 2026 3:19 pm, edited 1 time in total.
openoffice 4.1.2 on Windows 10
Re: Count or Countif
Formulas don't look at cell formatting.
One possible solution is to make a helper column that tells you which column has the maximum value. If the data are in columns A - F, you could use this formula in row 2
You will get a 1 for column A, a 2 for B, and so on. You can then use COUNTIF to count how many times each column appears. That formula won't work if two columns have the maximum value and you want to count both of them.
One possible solution is to make a helper column that tells you which column has the maximum value. If the data are in columns A - F, you could use this formula in row 2
Code: Select all
=MATCH(MAX(A2:F2);A2:F2;0)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.
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
- MrProgrammer
- Moderator
- Posts: 5480
- Joined: Fri Jun 04, 2010 7:57 pm
- Location: Wisconsin, USA
Re: Count or Countif
Read section 9. Using functions and cell ranges in Ten concepts that every Calc user should know. It says: Calc's functions and formulas operate on cell values, so do not expect to perform calculations based on cell formats, say the sum of all of the cells you've formatted as red.katintn wrote: Fri Jun 19, 2026 10:37 pm I would like to have a total running count at bottom of each column of just the colored #'s
If you use formulas to determine the highest number in the row, you can use Conditional Formatting (see Help → OpenOffice Help → Index) to highlight the cell, and then you can count the data returned by the formulas. If you need any additional assistance attach a spreadsheet demonstrating the situation (remove confidential information then use Post Reply, not Quick Reply, and don't attach a picture instead of the spreadsheet itself). I will not help further unless you attach a spreadsheet document. You will need explain exactly how you want to handle the case where the highest value in the row occurs in two or more cells. We can't help you without that information.katintn wrote: Fri Jun 19, 2026 10:37 pm … some of those #'s are highlighted in RED denoting the highest # in row across the 6 coloumns.
If this solved your problem please go to your first post use the Edit ✏️ button and add [Solved] to the start of the Subject field. Select the green checkmark icon at the same time.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).
Re: Count or Countif
In LibreOffice you can filter on cell colour. That can help making a helper column.
AOO 4.1.16 & LO 25.8.3 on Windows 10