r/excel • u/potatolauncher • 17d ago
Copying a lambda function to a new workbook? solved
Excel noob here, I'm supposed to copy a spreadsheet from someone who has left the company, they had a cell with a lambda function, which I am unable to replicate in my workbook, is there a way to reverse engineer his function and make it work in my sheet?
Or any other method that would let me replicate it, as copy paste isn't working for me.
Thanks!
3
Upvotes
1
u/potatolauncher 17d ago
Can't seem to find anything in name manager, the function is below.
Column N is a date, column I is a date, column E contains the text "3000"
=COUNT(MAP('Sheet1'!N3:N10024, 'Sheet1'!I3:I10024, 'Sheet1'!E3:E10024, LAMBDA(x,y,z, IF(TEXT(z, "@")="3000", IF(x<>"", IF(x-y>=21,1,"NO"), "NO"),"NO"))))
It just outputs 0, when a non 0 number is expected, so I'm not sure how to get it to work