REDUCE and VSTACK

sadath

Active Member
Joined
Oct 10, 2004
Messages
268
Office Version
  1. 365
Platform
  1. Windows
Hi,

can anyone explain how the formula work
=REDUCE("",{1,2,3,4},LAMBDA(a,b,VSTACK("",a&" "&b)))

I am getting result
4
3 4
2 3 4
1 2 3 4


if b is each value in the array, then the result should be
1
1 2
1 2 3
1 2 3 4
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hello, REDUCE returns the final outcome of the calculation. So, simple

Excel Formula:
REDUCE("",{1,2,3,4},LAMBDA(a,b,b))

returns the last value of the array which is 4.
 
Upvote 0

Forum statistics

Threads
1,225,759
Messages
6,186,863
Members
453,380
Latest member
ShaeJ73

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top