I have a table in OpenOffice that contains a column with region's codes (column J). Using table functions, how to get all codes that appear more than 5 times and write them in one cell?
How to get all cells that appear more than 5 times?
41 Views Asked by Evgenyi Mihalev At
1
There are 1 best solutions below
Related Questions in OPENOFFICE-CALC
- pywinauto can't see LibreOffice/OpenOffice elements
- Libreoffice Calc Basic macro to combine sheets with different number of columns
- How to insert a cell content into a text area using OpenOffice Calc?
- How to KEEP only first occurence data in Libre Office Calc (with two column filter)
- median of cells if conditions - openoffice-calc
- Table containing the count of multiple columns?
- OpenOffice - Macro if condition
- Organize Binary Search LibreOffice Calc?
- openoffice sdk c# error "File contains corrupted data" but opens fine in Calc
- How to run a formula until it meets a certain criteria?
- Find last column with data and return the header of that column
- LibreOffice Calc: Find a cell by value
- In LibreOffice Calc, How To Access Raw HTML in a Cell?
- Need a formula for the SUM of a range of cells, but ONLY IF a different cell outside of that range has a date in it
- How to get all cells that appear more than 5 times?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Normally I would recommend breaking this problem down into smaller parts using helper columns. Or better yet, move the data into LibreOffice Base which can easily work with distinct values.
However, I managed to come up with a rather large formula that seems to do what you asked. Enter it as an array formula.
I can't test this on your actual data since your example is only an image, but let's say that there are six of both 77 and 37. Then this would show
77,37as the result.Here is a breakdown. Look up the functions in LibreOffice Online Help for more information.
=TEXTJOIN(",";1;— Join all results into a single cell, separated by commas.IF(COUNTIF(исходник.J$2:J$552;исходник.J2:J552)>5;— Find codes that occur more than 5 times. This is the same as what you wrote.IF(ROW(исходник.J2:J552)=— Compare the next result to the row number that we are currently looking at.MATCH(исходник.J2:J552;исходник.J$2:J$552;0)+ROW(J$2)-1;— Determine the first row that has this code. We do this to get unique results instead of 6 or more of each code in the result.исходник.J2:J552;"")))— Return the code. (Your formula simply returns 1 here, which doesn't seem to be what you want.) If it doesn't match, return an empty string rather than 0, becauseTEXTJOINignores empty strings.