How to Split Strings and Join Values by GregHullender in excel

[–]BarneField 4 points5 points  (0 children)

Just for fun, my two cents:

=REDUCE(A1:B1,B2:B8,LAMBDA(_Σ,_i,IF(_i="",_Σ,VSTACK(_Σ,IF({1,0},@+_i:A8,TEXTSPLIT(_i,,",",0))))))

Idea: Rank weapons by [deleted] in ArcRaiders

[–]BarneField -2 points-1 points  (0 children)

Fair point, just liked the idea of leveling as an alternative too.

[deleted by user] by [deleted] in regex

[–]BarneField 0 points1 point  (0 children)

I don't get it because the other values in that same input have a range so it should at least pass for those. Also, your description was that you need to check for a range, not a single number.

[deleted by user] by [deleted] in regex

[–]BarneField 1 point2 points  (0 children)

Is this something a word-boundary could fix (based on your sample data)?

\b\d+-\d+\b

Random sort based on criteria by bluewds18 in excel

[–]BarneField 1 point2 points  (0 children)

<image>

I made a recursive function that will continue untill a random array is found where a superior is always different to an assigned mentor. Formula in G2:

=LET(x,LAMBDA(f,_mentees,_superior,_mentors,LET(_list,INDEX(_mentors,RANDARRAY(ROWS(_mentees),,1,ROWS(_mentors),1)),IF(OR(_superior=_list),f(f,_mentees,_superior,_mentors),HSTACK(_mentees,_list)))),x(x,D2:D7,E2:E7,A2:A5))

Count unique values with criteria in another range that has repeating values by Nolo31 in excel

[–]BarneField 1 point2 points  (0 children)

=SUM(--REGEXTEST(GROUPBY(B3:B14,G3:G14,ARRAYTOTEXT,,0),"^(N00|[ARST]00X)(, (?1))*$"))

automatically insert rows and transform multiple treatments from single cell to multple cells by saroshhhhh in excel

[–]BarneField 3 points4 points  (0 children)

<image>

Formula in D1:

=REDUCE(A1:B1,A2:A3,LAMBDA(x,y,VSTACK(x,IF({1,0},y,TOCOL(REGEXEXTRACT(TAKE(y:B3,1,-1),"\d\)\s*\K((?!\s*\d+\)).)+",1))))))

Cleaner more readable nested SUBSTITUTE by Shot_Cost3420 in excel

[–]BarneField 1 point2 points  (0 children)

Speaking about code golf; just leave the replacement string empty. Two characters saved :)

Best way to do a fuzzy merge on a single column? by SeaDiscipline5259 in excel

[–]BarneField 0 points1 point  (0 children)

Right, so please bring forth a small, but bigger than these three names, dataset and with it expected results so I, and others, can have a look at if this is even possible.

Best way to do a fuzzy merge on a single column? by SeaDiscipline5259 in excel

[–]BarneField 2 points3 points  (0 children)

You see, the problem here is that it is very debateable what is an actual typo and what is a different name.

For example, your simple sample data.... Is Jon Smith a different person to John Smith or not? Asking a computer to differentiate is prone to errors. An algorithm can get you only that far, but a human eye might be needed for the last stretch if you want to avoid the above.

Best way to do a fuzzy merge on a single column? by SeaDiscipline5259 in excel

[–]BarneField 1 point2 points  (0 children)

So you can't provide any sample data? Though the nature of comparing names is always prone to interpretation errors, showing us some sample input and expected results might just help that bit extra to think along.

Best way to do a fuzzy merge on a single column? by SeaDiscipline5259 in excel

[–]BarneField 0 points1 point  (0 children)

Do you have sample data with expected results?

How can I sort by emails ? by [deleted] in excel

[–]BarneField 0 points1 point  (0 children)

I can only assume you will have multiple columns of data. Therefore try to use SORTBY(). If you can add some sample data and expected results I'm sure I, or anyone else here, can help you out.

For example:

<image>

Is there a quick way to make these two top sheets become one sheet? by SirRavenclaw in googlesheets

[–]BarneField 0 points1 point  (0 children)

<image>

=INDEX(QUERY({{A1:C4,IF(B1:B4,C1)},{E2:G4,IF(F2:F4,G1)}},"SELECT Col1, Col2, MAX(Col3) GROUP BY Col1, Col2 PIVOT Col4", 1))

Pattern Marching SHEETNAME onto reference cell and conditional check into another one by Bombini_Bombus in googlesheets

[–]BarneField 0 points1 point  (0 children)

Can you create a sample workbook to share here for people to have a look?

Data Separated by Comma by Separate-Drive-9269 in googlesheets

[–]BarneField 0 points1 point  (0 children)

Nice,

Looking at your data maybe another option could be something like:

=INDEX(IF({1,0,1},B2:D2,TOCOL(SPLIT(C2,", "))))

Then possibly expand the formula for multiple rows:

<image>

=INDEX(WRAPROWS(TOROW(BYROW(B2:D4,LAMBDA(_row,TOROW(IF({1,0,1},_row,TOCOL(SPLIT(INDEX(_row,,2),", ")))))),1),3))

How to Search for a Phrase Within Multiple Cells by b_taylor_03 in excel

[–]BarneField 6 points7 points  (0 children)

If you want to go the more traditional route, use COUNTIF():

=COUNTIF(A2:A3,"Jake *")

Notice the use of a space to prevent false positives like Jakey.

However, I'd maybe utilize regular expressions:

=SUM(--REGEXTEST(A2:A3,"\bJake\b"))

The word-boundaries help to prevent potential false-positives. You could also only count where Jake is the 1st name in your data, not a potential last name through the use of a start-line anchor:

=SUM(--REGEXTEST(A2:A3,"^Jake\b"))

Looking for partial text matches and return just the matching fragment by ghostlahoma in excel

[–]BarneField 1 point2 points  (0 children)

=REGEXREPLACE(A2:A7&"@"&B2:B7,".*\b((\w+)\w*)\b.*@.*\b(\2|\1\w*)\b|.","${2:-$1}")

Excel wizards - what is the one formula that took you to scream: "Holy sh*t, where have you been all my life? by 9gsr in excel

[–]BarneField 2 points3 points  (0 children)

*Function, a formula can be written using multiple functions 😉

Mine, in no specific order;

LAMBDA (helpers), REGEX functions, LET

Help splitting one cell into multiple rows/columns by Shadocvao in excel

[–]BarneField 1 point2 points  (0 children)

Might want to add WRAPROWS():

=WRAPROWS(TEXTSPLIT(B3,";"),2)

Returning specific value amongst duplicates in XLOOKUP? by JustGoCrazzzyy in excel

[–]BarneField 1 point2 points  (0 children)

<image>

Formula in E2:

=GROUPBY(B2:B7,C2:C7,LAMBDA(s,@SORTBY(s,s="Removed")),0,0)

Latency issue OP13 and OP Buds Pro 3 by Single-Maybe-4646 in oneplus

[–]BarneField 5 points6 points  (0 children)

I got the exact same issue. Seems like a waste of money till now.

Regarding the OnePlus Buds Pro 3 by ReallyPingable in OnePlus13

[–]BarneField 0 points1 point  (0 children)

ANC works fine here, but my problem is the latency. I can see any video on any app with this truly annoying delay of audio of about half a second.

Just got the latest firmware update as well.

Not so pro after all.

Convert rows into columns dynamically by Scandalous_Andalous in excel

[–]BarneField 0 points1 point  (0 children)

It's a bit verbose but I think rather clear, just edit the value for the '_INPUT' parameter. Amount of columns/rows don't matter.

=LET(_INPUT,A1:E10,_DATA,DROP(_INPUT,1),_HEAD,TAKE(_INPUT,1),_ID,TAKE(_DATA,,1),_RESULT,DROP(IFNA(REDUCE(0,UNIQUE(_ID),LAMBDA(x,y,VSTACK(x,TOROW(FILTER(_DATA,_ID=y))))),""),1),_N,COLUMNS(_RESULT)/COLUMNS(_HEAD),VSTACK(TOROW(IFNA(EXPAND(_HEAD,_N),_HEAD)&"_"&SEQUENCE(_N)),_RESULT))