K Kumar@raja Member Jul 13, 2016 #1 Hi Friends, Kindly help me out to get the required formula for the attached sheet. Here I wanted to consolidated the amount against respective month in column D which is capturing the data from B. Thank in advance for the support Kumar Attachments Excel Formula.xlsx 13.2 KB · Views: 9
Hi Friends, Kindly help me out to get the required formula for the attached sheet. Here I wanted to consolidated the amount against respective month in column D which is capturing the data from B. Thank in advance for the support Kumar
chirayu Well-Known Member Jul 13, 2016 #2 =SUM(IF(TEXT(A:A,"mmmm")=D3,B:B)) Use CTRL + Shift + Enter after you put formula in cell then drag down
=SUM(IF(TEXT(A:A,"mmmm")=D3,B:B)) Use CTRL + Shift + Enter after you put formula in cell then drag down
Chihiro Excel Ninja Jul 13, 2016 #3 Sumproduct method: =SUMPRODUCT((MONTH($A$2:$A$222)=MONTH(D3&" 1"*1))*($B$2:$B$222)) SUM(IF()) Array: =SUM(IF(MONTH($A$2:$A$222)=MONTH(D3&" 1"*1),$B$2:$B$222)) Confirmed as array (CSE) Edit: Forgot the text function. Using chirayu's method Sumproduct one will be... =SUMPRODUCT((TEXT($A$2:$A$222,"mmmm")=D3)*($B$2:$B$222)) However since OP's sheet had trailing space... used TRIM on D3. =SUMPRODUCT((TEXT($A$2:$A$222,"mmmm")=TRIM(D3))*($B$2:$B$222)) Last edited: Jul 13, 2016
Sumproduct method: =SUMPRODUCT((MONTH($A$2:$A$222)=MONTH(D3&" 1"*1))*($B$2:$B$222)) SUM(IF()) Array: =SUM(IF(MONTH($A$2:$A$222)=MONTH(D3&" 1"*1),$B$2:$B$222)) Confirmed as array (CSE) Edit: Forgot the text function. Using chirayu's method Sumproduct one will be... =SUMPRODUCT((TEXT($A$2:$A$222,"mmmm")=D3)*($B$2:$B$222)) However since OP's sheet had trailing space... used TRIM on D3. =SUMPRODUCT((TEXT($A$2:$A$222,"mmmm")=TRIM(D3))*($B$2:$B$222))
B Biplab4444 New Member Jul 14, 2016 #4 Hi....... You may also create Pivot Table and and group date in months....
David Lam New Member Jul 14, 2016 #5 Please find attached. Could merge them into 1 formula like the guys above. Attachments LookupGrade.xlsx 10.9 KB · Views: 6
N Naresh Yadav Active Member Jul 14, 2016 #6 pls try this one.. =SUM(MMULT((MONTH($A$2:$A$222)=MONTH(D3&1))*($B$2:$B$222),1)) Attachments Excel Formula (1).xlsx 13.5 KB · Views: 7
B Biplab4444 New Member Jul 14, 2016 #7 Hi... Please find the attached file....... Attachments Excel Formula.xlsx 18.8 KB · Views: 9
K Kumar@raja Member Jul 14, 2016 #8 Dear Friends, Thank you very much for taking time to provide the suitable formula. Thanks a lot. Kumar
Dear Friends, Thank you very much for taking time to provide the suitable formula. Thanks a lot. Kumar