• 0 Posts
  • 13 Comments
Joined 2 years ago
cake
Cake day: June 11th, 2023

help-circle







  • 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)

    =IF(ISERROR(A2/1),“”,A2)

    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)

    =IF(ISERROR(A2/1),“”, IF(ISERROR(A1/1),A1,IF(ISERROR(C1/1),C1,1)))

    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.