Skip to main content
Filter by
Sorted by
Tagged with
15 votes
8 answers
11k views

This is a frequently asked and answered question: how can I generate all permutations in Excel: 2011 2016 2017 2017 superuser 2018 2021 and now in 2022 which did not get an answer before it was closed ...
mark fitzpatrick's user avatar
9 votes
1 answer
1k views

Ever since I learnt that Excel is now Turing-complete, I understood that I can now "program" Excel using exclusively formulas, therefore excluding any use of VBA whatsoever. I do not know if ...
vsoler's user avatar
  • 1,193
4 votes
2 answers
926 views

The goal is to iterate through rows of the character table and replace each character with it's substitute. The character table in this example is ={"&","&amp;";"<&...
Filcuk's user avatar
  • 184
4 votes
1 answer
2k views

Given a generic LAMBDA-UNION-function like this: https://stackoverflow.com/a/69861437/16578424: What would be the best method to reuse it in several projects?
Ike's user avatar
  • 13.4k
3 votes
3 answers
257 views

In order to capitalize only the first letter of a text I used =UPPER(LEFT(A1,1)) & LOWER(RIGHT(A1,LEN(A1)-1)) With the introduction of LAMBDA function in Excel, how can I create a custom lambda ...
ZygD's user avatar
  • 24.8k
3 votes
3 answers
368 views

I'm using this Lambda function to calculate the Levenshtein distance between two strings. In Excel it's called LEV. =LAMBDA(a,b,[ii],[jj],[arr], LET( i,IF(ISOMITTED(ii),1,ii), ...
Ne Mo's user avatar
  • 284
3 votes
2 answers
957 views

I have a continuous set of numbers in cell I32 (123456789) of my worksheet. I want to use the new LAMBDA function to add each number with nine iterations (using recursion). The final value in cell L32 ...
Statto's user avatar
  • 478
2 votes
2 answers
815 views

I am using Office 365 currently and I want to make a visualization tools using MAKEARRAY functions. For example, if I want to display sequential of 32 items, I would display it in this way: I use the ...
Alan Koh W.T's user avatar
2 votes
2 answers
435 views

Context / Example I am working with some datasets that have incrementing numbers¹. For example, I mean where the cost of an upgrade gets more and more expensive for each level you go up. Level Cost 4 ...
Martin's user avatar
  • 424
2 votes
3 answers
1k views

I have a model that produces an array of values that can be several hundred columns wide. Every 25th column contains a number that I need to add to the total. I thought the cleanest solution would be ...
Blake's user avatar
  • 23
2 votes
0 answers
137 views

Using Office365 desktop I'm trying to call add-in functions from within either MAP or MAKEARRAY so it can spill alongside an existing spill. I don't know how many rows will be in the spill, so being ...
shiftins's user avatar
2 votes
2 answers
229 views

I have the following data: order part cat qty available qty ordered priority aa a 1 4 2 2 aa a 2 2 3 2 bb b 1 3 3 3 bb a 1 4 3 3 cc a 2 2 1 1 cc a 1 4 2 1 With this data I'd like to calculate the ...
P.b's user avatar
  • 12k
1 vote
2 answers
145 views

I have the following function that automatically sums 3 rows together for a specified number of cells determined by D2: =BYCOL((INDEX($1:$11,{4;5;10},SEQUENCE(1,D2,COLUMN(I:I)))),LAMBDA(x,SUM(x))) The ...
Automation Monkey's user avatar
1 vote
2 answers
130 views

Yesterday I have asked a similar question, yet this one has a rather advanced addition: Let us say we have a dataset that consists of Hotel and Airline prices (From 1st to 31st of Jan). I would like ...
Paul Pieless's user avatar
1 vote
1 answer
693 views

I have recently created a LAMBDA function for recursive substitutions of substrings which works when using a range: LAMBDA named ReplaceArray =LAMBDA(str, list, sub, IF(ROWS(list)=1, SUBSTITUTE(str,...
Tragamor's user avatar
  • 3,689
1 vote
1 answer
445 views

I am using the following function to calculate the sum of specific rows and I'd like to modify it to sum different rows if there's a value in the cell of a specific row as it's traversing the sequence....
Automation Monkey's user avatar
1 vote
1 answer
80 views

In Excel, I have a range B4:E100 in a worksheet, assume the content is like the follows. I'm looking for a formula (as simple as possible, with new Excel functions probably) that returns B4:E8, ...
SoftTimur's user avatar
  • 5,770
1 vote
1 answer
483 views

In relation to my last question at How can I fix this Excel LAMBDA formula to result all SKUs and prices, type of Unpivot formula @Ike created this LAMBDA which worked perfectly for the 3 columns of ...
Andy L's user avatar
  • 93
1 vote
3 answers
2k views

I currently have a column of letters in B2:B11 alongside numbers that increment by 1 when letters appear consecutively (C2:C11). When a new letter appears, the sequence resets and starts from 1 again. ...
Statto's user avatar
  • 478
1 vote
1 answer
100 views

I'm trying to make a formula which will unpivot some price data, there would several extra columns of data later, including some SKU data, and then 3 columns of price, 3 columns of net price, and the ...
Andy L's user avatar
  • 93
1 vote
1 answer
790 views

I am trying to calculate an amount based on a formula that has a different number of arguments for each calculation. And, each formula is expressed as a string that is based on the column names at ...
Ben Bennett's user avatar
1 vote
1 answer
203 views

EDIT 1 → 2024-03-30: Included parameters in the lambda functions so the table names and columns may be injected by the user Updated lambda functions with such paramteres Even though I found a ...
Ricardo Diaz's user avatar
  • 5,726
1 vote
0 answers
265 views

I'm trying to build a Schedule Generator using recursive LABMDA based on RANDBETWEEN function. Basically, what it needs to do: Generate a random date using RANDBETWEEN based on 2 other cells which ...
BBK's user avatar
  • 11
1 vote
1 answer
292 views

I'm just starting to play around with LAMBDA, and was wondering if it was possible to replicate the mode selection that a few formulas have. For instance when using XLOOKUP: "Match Mode" ...
DKoontz's user avatar
  • 307
0 votes
3 answers
7k views

I have a simple problem, but I am not quite able to figure out the answer Given a range (in blue), and a number of times to be repeated (in orange), I need to create 2 spill arrays in vertical: the ...
vsoler's user avatar
  • 1,193