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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,214,812
Messages
6,121,699
Members
449,048
Latest member
81jamesacct

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