Joseph Walker
New Member
Members
Forum Posts: 1
Member Since:
November 21, 2020
November 21, 2020
Offline
I have a question about "Lamda".
I have a formula that works for taking data that is in a single column and sorting it into three columns. "Date", "Description", and "Amount". "=INDEX(A2:A22,SEQUENCE(ROWS(A2:A22)/3,3))".
When I try to create a Lamda function I get errors. I do not understand what I am doing wrong.
Can you tell me how to make this work?
Thank you.
Mynda Treacy
Admin
Forum Posts: 4782
Member Since:
July 16, 2010
July 16, 2010
Offline
Hi Joseph,
Welcome to our forum!
Your LAMBDA version of the formula is not the same. Your INDEX is:
=INDEX(A2:A22,SEQUENCE(ROWS(A2:A22)/3,3))
And your LAMBDA is:
=LAMBDA(a,INDEX(a,SEQUENCE(ROW(a)/3,3))(A2:A22))
If you change your LAMBDA to:
=LAMBDA(a,INDEX(a,SEQUENCE(ROWS(a)/3,3))(A2:A22))
And define it as a name, you can then use it as expected. Note: it won't evaluate in the cell like so:
=LAMBDA(a,INDEX(a,SEQUENCE(ROWS(a)/3,3))(A2:A22))
You must define it as a name first.
Mynda
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Catalin Bombea: 1944
SunnyKow: 1432
Anders Sehlstedt: 956
Purfleet: 415
Hans Hallebeek: 377
Frans Visser: 351
David_Ng: 318
lea cohen: 248
Jessica Stewart: 219
A.Maurizio: 216
Newest Members:
Techia Braveboy
Charles Buchanan
Tiago Braga
Rehan Baig
Fred HORVATH
Silke Schmidt
Stuart Barr
Amelia Nolte
David Wier
T P Collins
Forum Stats:
Groups: 3
Forums: 25
Topics: 7154
Posts: 31382
Member Stats:
Guest Posters: 50
Members: 34655
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —