Using Sumif with ByRow and Lambda

bearcub

Well-known Member
Joined
May 18, 2005
Messages
732
Office Version
  1. 365
  2. 2013
  3. 2010
  4. 2007
Platform
  1. Windows
Is it possible to use Sumif in the ByRow function?

I trying to learn how to use the ByRow function in some of my workfiles where I am presently using Sumif or Sumifs.

Is Sumif one of the functions that can be used inside the Lambda function?

I tried setting up the formula like this but it didn't spill:

1716601556262.png


I have multiple lines for the Rep name and am trying to sum them up using either by ByRow or ByCol. All the row below r6 are empty to the last row on the spreadsheet.

Is it possible to using Sumif inside the lambda function?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Your syntax isn't quite right. Try:
Excel Formula:
=BYROW(Q6:Q100,LAMBDA(r,SUMIF(A:A,r,B:B)))
 
Upvote 0
Solution
Worked line a charm, thank you. So the first argument in the ByRow function is the criteria that I am trying to perform an operation on, not the values I am trying to retrieve? I will go back to the videos and listen to the explanation again. I think I got it confused.
 
Upvote 0
So the first argument in the ByRow function is the criteria that I am trying to perform an operation on, not the values I am trying to retrieve?
Yes. That's right.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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