Sumif all columns up till meeting the criteria

kekeda

New Member
Joined
Nov 4, 2021
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
I have the following data table:

JanFebMarAprMayJunJulAugSep
Apple231563814
Pear527081267
Banana361539780

Current month is June for example, then I would like to sum up for Banana line, all numbers up till Jun. That is 3+6+1+5+3+9 = 27.
Is there a formula where I can do that? Thanks!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi,
Maybe this;
Book1
ABCDEFGHIJ
11/01/2021FebMarAprMayJunJulAugSep
2JanFebMarAprMayJunJulAugSep
3Apple231563814
4Pear527081267
5Banana361539780
6
7Start Date1/01/2021
8To date1/06/2021
9Banana27
Sheet1
Cell Formulas
RangeFormula
C1:J1C1=EOMONTH(B1,0)+1
B9B9=SUMPRODUCT(($A$3:$A$5=$A$9)*($B$1:$J$1>=$B$7)*($B$1:$J$1<=$B$8)*$B$3:$J$5)
Cells with Data Validation
CellAllowCriteria
A9List=$A$3:$A$5
 
Upvote 0

Forum statistics

Threads
1,224,737
Messages
6,180,643
Members
452,992
Latest member
TokugawaIesuma

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