Sumif with offset

oldman33

New Member
Joined
Feb 11, 2023
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have several groups that appear in 3 column increments that I'm trying to do a sumif / sumproduct across. Using the example below, I'm looking for a formula that would sum all 'category 1' columns only if the 'include' column to its right is =Yes.

My thought is some sort of sumif/sumproduct formula that includes an offset, but that's where I'm hung up. Any thoughts?

ABCDEF
Category 1Category 2IncludeCategory 1Category 2Include
1)5324Yes674543Yes
2)2342No3435Yes
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Try:

Book1
ABCDEFG
1Category 1Category 2IncludeCategory 1Category 2Include
25324Yes674543Yes
32342No3435Yes
4Sum
56784
Sheet10
Cell Formulas
RangeFormula
G5G5=SUM(IFERROR(A2:F3*(A1:F1="Category 1")*(C2:H3="Yes"),0))
 
Upvote 0

Forum statistics

Threads
1,221,234
Messages
6,158,702
Members
451,510
Latest member
kegnazmach

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