thirdxeye

u/thirdxeye


r/sheets•

I have a set of data in this format:

|34,3453|544,455|76777,5|4459,42|976,2743|  

Just two comma-delimited numbers. I'm doing calculations on them after splitting them:

=SUM(QUERY(ARRAYFORMULA(SPLIT(TRANSPOSE(H9:P9),",")), "SELECT Col2"))  

Now I'm trying to add an INDIRECT, I want calculations to always start at column H and stop at P (columns may be added or moved):

=SUM(QUERY(ARRAYFORMULA(SPLIT(TRANSPOSE(INDIRECT(""&column(G9)&"9:"&column(P9)&"9")),",")), "SELECT Col2"))  

But I'm just getting an error (QUERY parameter 2: NO_COLUMN: Col2). Changing to Col1 returns 0. I'm sure this is just a syntax issue but I'm having trouble to make se

22

r/sheets•

Hi. I have a very simple formula with a single criterion, like =COUNTIF(C5:5, ">0").

I'm looking for a way to lock the starting column to C. The problem is, the sheet gets new columns all the time. So adding a column would automatically change C to D in the formula. Normally I'd just use INDIRECT for this (=COUNTIF(INDIRECT("C5:5"), ">0")).

But the other problem is, the sheet gets sorted often. So rows go up and down a lot, the formula would reference the wrong row after sorting.

Is there a way to just lock the column part of the range in the formula? Or is this just a syntax thing? The documentation isn't too helpful about this.

12

r/regex•

I'm looking for a tool or script that combines regex with math that I can run on macOS, either GUI or command line. I have a bunch of XML files where a child element is filled with integers and I need to add an integer to the value. Example:

<value>x</value>  

needs to be replaced with

<value>x+y</value>  

Getting the regex to match is easy enough but I'm struggling to find a way to do the math. I tried to convert the XML to delimited text and using a spreadsheet, but this seems like way too much work.

23

You've reached the end of this feed.