Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
Best practices
1 vote
5 replies
100 views

Here is the custom function to spell number to words using LAMBDA(). I would appreciate any improvement of the function or simplification if possible. Also suggest best practice for the function. =...
Harun24hr's user avatar
  • 38k
0 votes
1 answer
205 views

I have set up a Lambda formula that calculates interpolated values from a given set of coordinates similar to existing trend/linest/forecast functions handles non consecutive inputs as well as errors ...
Emmanuel D'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,760
-1 votes
1 answer
114 views

For work I created a workbook that references data from another tab, does some filtering and/or calculations with the data, then plots it. The workbook also has form controls for the user to change ...
CecilF's user avatar
  • 7
-1 votes
1 answer
312 views

I'm trying to expand a column with MAKEARRAY, using instances to determine number of rows that should be populated with a value and then using REDUCE to VSTACK multiple of these arrays together I ...
JimminyJim's user avatar
1 vote
3 answers
430 views

I'm trying to build a VSTACK from a dynamic range using REDUCE. What I'm getting: What I want (note ignored XX value) Essentially, the question is how to use conditional HSTACK inside LAMBDA inside ...
JimminyJim's user avatar
3 votes
2 answers
440 views

I mused about how hard it would be to create an Excel Lambda function to deliver K-means clusters. I built a one-dimensional version of it with only a small investment of time. One dimensional ...
mark fitzpatrick'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
3 votes
3 answers
367 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
2 votes
2 answers
340 views

I have a workbook where I want to check for gaps in allocated ranges and I am struggling to build the ranges so that I can stack together the arrays. Here is a simplified statement of what I want to ...
Nigel Domaingue's user avatar
0 votes
2 answers
1k views

I am trying to create an Excel lambda function that calls another lambda function. But Excel returned #VALUE! when I ran it. Does Excel support this kind of operation?
Scoodood's user avatar
  • 689
0 votes
1 answer
146 views

I have a complicated workbook that I am generating with Openpyxl. I've decided to revise the formulas to use Excel's so-called future functions and array functions. Some of the formulas are getting ...
Cronical's user avatar
1 vote
1 answer
825 views

Preferably the lambda function defined in the worksheet. Google Bard said to use the name() function, but there is no such function in Excel. Also tried the "Create from Selection" ...
user avatar
0 votes
1 answer
1k views

I thought that a lambda function defined for scalar input values would automatically iterate through an array when faced with an array input, but it seems that it's not universally true. I want to ...
vladi's user avatar
  • 1
1 vote
2 answers
1k views

Each array is listed horizontally, has n columns and a variable number of rows. Every array has the same n number of columns. There is a blank column between each array. They can be combined using ...
user avatar
2 votes
3 answers
904 views

I am trying to understand better how does the recursivity works in Excel using the Lambda function. I didn't manage to wrap my head around how to increment the "value" the function is at. ...
Enzo_c'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
432 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
0 answers
107 views

Issue: As the title says, any time a LAMBDA formula is used in my spreadsheet it forces all other users who have the shared spreadsheet open to reopen the spreadsheet. With my brain's limited capacity,...
jeranon's user avatar
  • 432
6 votes
2 answers
2k views

I am testing the following simple case: =LET(input, {"a,b;c,d;" ; "e,d;f,g;"}, BYROW(input, LAMBDA(item, TEXTJOIN(";",,TEXTSPLIT(item,",",";", TRUE))...
David Leal's user avatar
  • 6,808
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
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
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
0 votes
1 answer
3k views

I am becoming more and more familiar with Excel's new array functionality and absolutely love the direction it is all headed. I've been trying to find a way to have a single formula which will spill ...
Andy L's user avatar
  • 93
1 vote
1 answer
2k views

I am struggling with the following formula, it works for some scenarios but not in all of them. The name input has the data set that is failing, getting an #CALC! error with the description "...
David Leal's user avatar
  • 6,808
1 vote
1 answer
443 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
2 answers
353 views

I saw the following question on here regarding repeating values: List number of lessons including half lessons based on Number of lessons and lesson name This question needed an older Excel version, I ...
P.b's user avatar
  • 12k
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
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
1 answer
1k views

I have a question about UNIQUE function for random number generation in multi-dimension array. As you can see, I try to generate an array with random and unique numbers of 1->100 inside 5X5 array. ...
Alan Koh W.T's user avatar
0 votes
1 answer
63 views

I created a LAMBDA function called LOANAMT to calculate loan amounts recursively for a situation in which you need to borrow to fund the loan payment (yes, I know this can be solved algebraically - I'...
Jack Harman's user avatar
2 votes
2 answers
814 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
0 votes
1 answer
419 views

I have the following data. Available resources data per day: A B C D E F G H I J K L M N 2 resources day 3 1 2 3 4 5 6 7 8 9 10 11 12 4 empl.1 8 8 4 2 2 4 4 8 8 5 empl.2 8 4 4 8 4 8 6 empl.3 And ...
P.b's user avatar
  • 12k
1 vote
0 answers
484 views

Excel's INDEX function shows strange behaviour when the object being indexed is a name introduced in a LET construct or a parameter of a LAMBDA. The behaviour is consistent on Windows and Mac. Suppose ...
JohnB's user avatar
  • 13.8k
0 votes
0 answers
246 views

Excel is not recognizing this LAMBDA/LET combo formula as a formula (receiving the 'there's a problem with this formula' error). I thought it might have been something to do with the variable names I ...
Gavin's user avatar
  • 21
0 votes
1 answer
727 views

I have the following sum in G4 =SUM((G2:G3)*$D$2) and in G6 I have =SUM(G4-G5), I then drag copy them for the duration denoted in C1. I'd like to change this so I have a single formula in H4 and H6 ...
Automation Monkey's user avatar
1 vote
1 answer
262 views

I have the following function giving a list of available staff after a specified date set in T2 =LET(uniqueEmployees,UNIQUE(AllStaffProjectAllocationTbl[Employee]), maxDatePerEmployee,BYROW(...
Automation Monkey's user avatar
0 votes
1 answer
964 views

I am trying to use the SortBy function to return the top 3 results from a table that I have. If I put the function somewhere else in the sheet, I can just reference the first three cells, and that ...
DChi Shaggy's user avatar
1 vote
1 answer
789 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
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 votes
1 answer
155 views

I'm a very advanced Excel user and have used dynamic arrays and complex lambdas to solve some pretty tough problems, but this one has me stumped. I have a column (or array) of invoice dates, that are ...
Max R's user avatar
  • 858
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
0 votes
0 answers
508 views

I am using Excel version 2205 (Build 15225.20356) I expect that each of these functions produces the identical result $A$1 // no lambda or let =ADDRESS(ROW(A1),COLUMN(A1)) // lambda alone =LAMBDA(...
PaulH's user avatar
  • 7,903
3 votes
2 answers
1k views

I'm trying to come up with a LAMBDA formula that captures the following recursive calculation: Column A has 40 rows with integers between 1 and 40. Column B divides each integer in column A by 6 and ...
STS's user avatar
  • 31
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
1 answer
689 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
0 votes
0 answers
326 views

I have attached a pic of what I am trying to do. The goal is to get LAMBDA to subtract the previous cell and then average that. (AVERAGE RATE OF CHANGE)
PrimusAlphinex's user avatar
1 vote
1 answer
107 views

I have a big function with lots of branches of IFS; each branch uses different references of the worksheet: MYFUN = LAMBDA(i, IFS( i = 1, // a formula uses Row 1 for instance, i = ...
SoftTimur's user avatar
  • 5,760
2 votes
1 answer
292 views

I would like to write a user-defined function CHOOSERANGE that returns a range from 4 coordinates. The first version is as follows: CHOOSERANGE = LAMBDA(row_min, col_min, row_max, col_max, ...
SoftTimur's user avatar
  • 5,760
4 votes
4 answers
3k views

Some Excel native functions like VSTACK permit of infinite number of arguments, and they have an intellisense as follows: I would like to know how to define such a function by LAMBDA. I tried try = ...
SoftTimur's user avatar
  • 5,760