Combining map and byrow functions

fguy10

New Member
Joined
Mar 5, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi,

I'm trying to take take a 2d array and calculate the difference between each item and the column's average.

Usually I would just create a helper row with averages and then create a new table by subtracting the average in the helper row from each item.

The question, is wether it can be done in one step with an array and using the new helper function- Map and Bycol and without a helper row.

Something like: =map(range,lambda(rng, Bycol(range,lambda(rng2,average(rng2))))

But it doesn't work as the arrays are of different dimensions (2d and 1d)...

Any ideas?
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Sadly, this is currently not possible. You may refer to the workaround in the screenshot attached :)
 

Attachments

  • Avg bycol.JPG
    Avg bycol.JPG
    166.4 KB · Views: 157
Upvote 0
Another One can be -->
 

Attachments

  • Avg bycol 2.JPG
    Avg bycol 2.JPG
    171.7 KB · Views: 97
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,543
Members
449,316
Latest member
sravya

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