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: 4769
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: Yichong Chen
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Catalin Bombea: 1939
SunnyKow: 1432
Anders Sehlstedt: 918
Purfleet: 415
Frans Visser: 349
Hans Hallebeek: 335
David_Ng: 306
lea cohen: 248
Jessica Stewart: 219
A.Maurizio: 216
Newest Members:
Ariel Olijar
Craig Webb
Katie Nunes
Paul Etheridge
Crystal Harris
Amaan Abdi
Sarah Yelland
Ahsan AYUB
Daniel Neilson
Joy Nicholes
Forum Stats:
Groups: 3
Forums: 25
Topics: 7060
Posts: 30941
Member Stats:
Guest Posters: 49
Members: 34434
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —