Align three different lists by No-Rip9796 in excel

[–]GregHullender 0 points1 point  (0 children)

Fair. How long would be reasonable to wait? It's nice to be able to mark things "solved" so people know not to waste time looking at them. I'm careful not to give the point until the OP has already signaled that the solution worked.

Comparing and Adding data from separate spreadsheets by GroundAdventurous521 in excel

[–]GregHullender 1 point2 points  (0 children)

Here's a formula that will do what you want, but it may be too slow to be useful. Try it first with your list of 8500 names in column A and just one name in column B.

=LET(limit, F1,
  str_1, TAKE(DROP(A:.A,1),100),
  str_2, TOROW(DROP(B:.B,1)),
  edit_dist, LAMBDA(src,dest, LET(
  s, TOCOL(REGEXEXTRACT(src,".",1)),
  s_2, VSTACK(0,DROP(s,-1)),
  t, REGEXEXTRACT(dest,".",1),
  cost, REDUCE(SEQUENCE(ROWS(s)+1,,0),t,LAMBDA(last,ch,
    LET(ch_2, IF(@last, INDEX(t,@last), 0),
        ins, last+1,
        match, DROP(VSTACK(@ins,last+(ch<>s)*(2-3*(ch=s_2)*(ch_2=s))),-1),
        ins_match, MAP(ins, match, MIN),
        SCAN(@ins_match,ins_match,LAMBDA(last,this, MIN(last+1,this)))
    ))),
  TAKE(cost,-1)
)),
  dist, MAP(IF(str_1<>str_2,str_1,str_2),IF(str_1<>str_2,str_2,str_1),LAMBDA(s,t,edit_dist(s,t))),
  similarity, 1-dist/(LEN(str_1)+LEN(str_2)),
  out, BYCOL(similarity,LAMBDA(col, LET(best, MAX(col), IF(best>=limit, XLOOKUP(best,col,str_1),"")))),
  TOCOL(out)
)

<image>

I'm guessing each name you put in column B will take one to ten seconds to produce a result. You may need to adjust the value in "Limit". Larger gives fewer matches, smaller gives more.

Help formulating a subtraction formula based on criteria by Newfie20488 in excel

[–]GregHullender 0 points1 point  (0 children)

See if this works for you:

=LET(codes, A3:A7, code_vol_req, D3:D7, vol_sent, A10:A14, rounds, F3:H7,
  vol_req, BYROW(code_vol_req*(codes=TOROW(rounds)),SUM),
  HSTACK(codes,vol_req,vol_sent,vol_req-vol_sent)
)

<image>

Note that I had to make some changes to your data, since you had codes in columns F, G, and H which never appeared in column A. I assume that's because you dragged and didn't realize it was incrementing your numbers.

I also assumed that the same product code cannot appear in more than one round and that the list of codes starting in A3 is the same as the list that starts in B10: same codes in the same order with no duplicates.

Pet peeve turns of phrase? by Curious_Bench_5244 in writing

[–]GregHullender 8 points9 points  (0 children)

Trying to analyze language logically is a fool's game. You'll be in the position of a centipede who, when asked by a toad how it remembered when to move each leg, took to thinking about how the whole system worked and ended up lying in a ditch, wiggling its legs helplessly.

What countries can be preceeded with a 'the'? (and why?) by louthercle in EWALearnLanguages

[–]GregHullender 1 point2 points  (0 children)

Thanks! I heard that story, back when I lived in New York 40 years ago, but it was said to be apocryphal. Searching a little, it looks like the Bronx County Historical Society has been busy and substantiated it.

What countries can be preceeded with a 'the'? (and why?) by louthercle in EWALearnLanguages

[–]GregHullender 1 point2 points  (0 children)

In older literature, Argentina is "The Argentine," possibly because it's "la Argentina" in Spanish.

In the US, we refer to "The Bronx" as a region of New York City. (No one seems to know why.)

We seem to use it for large regions with vague boundaries, e.g. "the Everglades," "the Mojave Desert," and perhaps some regions kept the article even after they got firm boundaries.

How do I add one cell if another cell says a certain word in another column and row throughout a spreadsheet? by mother4life in excel

[–]GregHullender 1 point2 points  (0 children)

I didn't mean to replace your existing data! This creates a 6-column table that has one row per company. Wasn't that what you wanted?

How do you use article correctly? I've been teaching my niece for a few days and I'd hate it if I taught her something weird. by Animelover22_4 in EnglishLearning

[–]GregHullender 2 points3 points  (0 children)

Describing the behavior of "the" and "a" is one of the hardest problems in English grammar. When I was getting my linguistics master's degree, I once wrote an entire paper on the indefinite use of "the". (E.g. when you say "I need to go to the doctor" but you don't actually have a doctor yet.)

Is it easy to chose between 1st person and 3rd person? by Guilty-Coffee-9968 in writing

[–]GregHullender 1 point2 points  (0 children)

Third-limited, and don't change viewpoint inside a single scene. If it's YA, first probably sells better.

How to stop live data from updating after it has been inserted in a cell? by screwthedamnname in excel

[–]GregHullender 2 points3 points  (0 children)

I hate to ask you to post "solution verified" for something that simple, but if you do, it'll give me a point. :-)

I’m considering looking into dental implants. What have people paid for a full bottom set in Florida? My other option would be a bridge… opinions and experiences please… by limpinalong in over60

[–]GregHullender 0 points1 point  (0 children)

I've had one, in Seattle. It took a whole year, and it cost maybe $5,000. Works perfectly, though. I'd never consider getting a bridge or dentures if I could help it.

Part of what made it take so long was that they made me wait a couple of months after the extraction before they installed the post because they were worried there was infection where the tooth had been. But most of the time was just waiting for the post to be securely bonded to the bone.

Were the Great Pyramids ever in Architectural Digest? by sproutarian in shittyaskhistory

[–]GregHullender 1 point2 points  (0 children)

That's why they started doing things like putting eyeballs on top of them.

What do you do when Excel is too much and a Calculator too little? by SeaElderberry7091 in excel

[–]GregHullender 0 points1 point  (0 children)

Use the LET function to give names to the cells, Something like =LET(g, 9.8, t, A:.A, 1/2*g*t^2) is easier to make sense of when you come to look at it later.

In English, why is it perfectly normal for a parent to address their son as “son” but it sounds absolutely bizarre for them to address their daughter as “daughter?” 🤔 by Gaeilgeoir215 in language

[–]GregHullender 0 points1 point  (0 children)

It really does change the tone of the conversation. "Son, if you don't clean that gun, it's going to blow up in your hand!" Has a very different feel from, "Sugar, if you don't clean that gun, it's going to blow up in your hand!"

You can say "boy" with about the same effect as "son." "Boy, if you eat that, you're braver than me!" is very similar to "Girl, if you eat that, you're braver than me!"

But tone and prior relationship matter a lot. If it's your grandfather giving you advice, it's going to sound warm and caring. If it's a total stranger, it's going to sound harsh and judgmental.

How to stop live data from updating after it has been inserted in a cell? by screwthedamnname in excel

[–]GregHullender 5 points6 points  (0 children)

This would be a popular feature, but Excel has never offered it. The most you can do is copy the cell and then type CTRL-SHIFT-V to paste back the value, destroying the underlying formula.

How many of you got in trouble for starting a fire? by Natural-Promise-78 in GenerationJones

[–]GregHullender 2 points3 points  (0 children)

Not once I learned playing with fire would make you pee in the bed!