this post was submitted on 27 Dec 2023
88 points (95.8% liked)
Linux
48328 readers
641 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Are the numeric values always correctly sorted in the cells below the alpha data cells? IE, youd never have A numeric values, then B numeric values, then more A numeric values?
Also just to be clear, are you putting the results in a single cell, or does the comma in your example denote separation between two cells? I'm guessing two cells. I want to work on this, but I just want to make sure I'm working on the correct thing :)
Okay, I couldn't wait so here are my formulas based on the following parameters:
1.) Numeric data always follows in rows after the correct alpha value. IE Anything between A and B values in the A column belong to the A group. Anything between the B and C values in the A column belong to the B group.
2.) You want the output to be in two separate columns.
Given that your input data is in column A and the value "A" begins at A1, here is your formula for B2 (B1 will be empty as there is no numeric value to tie to A1)
This will put numeric values only that are in column A into column B.
Again, given that your input data is in column A and the value "A" begins at A1, here is your formula for C2 (C1 will again be empty as there is no numeric value for your array in A1)
This will put the correct alpha values from column A into column C in the same rows as the numeric values from column B. If something goes really wrong, it will place the number 1.
Given that there are no gaps in your data, you should just be able to fill down and it'll appropriately put the correct values into columns B and C. At that point, I'd just paste the values of columns B and C into a new sheet (or columns) and sort the data to remove the blank rows.
I just tested it in LibreOffice Calc, and it works perfectly (given those parameters).
Edit: Repeated a word.
Nice!