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

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
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: 158
Upvote 0
Another One can be -->
 

Attachments

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

Forum statistics

Threads
1,216,309
Messages
6,129,998
Members
449,551
Latest member
MJS_53

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