Forum

Notifications
Clear all

formula

3 Posts
3 Users
0 Reactions
120 Views
(@sohaila)
Posts: 1
New Member
Topic starter
 

can any body explain this formula

REDUCE(0,H7:H10,LAMBDA(a,b,VSTACK(a,b)))

H7 1

H8 2

H9 3

H10 4

AND RESULT IS

0

4

7

9

10

 
Posted : 29/10/2024 1:19 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Sohail,

The REDUCE function here isn't being used as it was intended. It is supposed to be used with a LAMBDA that accumulates to a single value. The VSTACK function in the LAMBDA returns an array, so essentially, all it's doing is adding a zero to the array. This formula could be simplified to:

=VSTACK(0,H7:H10)

Mynda

 
Posted : 29/10/2024 8:37 pm
(@debaser)
Posts: 836
Member Moderator
 

As Mynda alluded to, the results you posted are not the result of that formula with those inputs, so clearly one of them is incorrect. The results appear to be a running total of the original range inverted.

 
Posted : 30/10/2024 5:52 am
Share: