• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Please suggest a required formula for the attached sheet

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
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:
Please find attached. Could merge them into 1 formula like the guys above.
 

Attachments

  • LookupGrade.xlsx
    10.9 KB · Views: 6
Back
Top