# =sumif combining Date, Text & Value for results table

1. ## =sumif combining Date, Text & Value for results table

So, I've managed to get the sumif to work, using cells matching to total the sum up, but I can't seem to get it to work, so I can separate by months.

Then I can just punch in the date, the amount and using a drop down, choose the reason, and it will work it out on the right hand side.

The formula I currently have is '=SUMIF(D:D,"*"&H2&"*",C:C)' [H2, I2, ... is the reason to match column D, the values I have in column C, ignore the notes]

is there a way to tweak the formula to separate based on date too?

Example.PNG

2. ## Re: =sumif combining Date, Text & Value for results table

If you want to introduce more conditions, you will need to use SUMIFS, which has a different syntax to SUMIF. Alternatively, you could use SUMPRODUCT.

I can't recommend a specific solution to you, though, as I can hardly see any details on your screenshot. It would be better to attach a sample Excel workbook - follow the instructions given in the yellow banner at the top of the screen.

Hope this helps.

Pete

3. ## Re: =sumif combining Date, Text & Value for results table

That was the thing, I tried to put in a attachment and the attachment drop down didn't give me the choice to add a file (using Chrome) , so I just added a picture.

I've tried to enlarge the attachment of the data, and I've included the picture of the 'attachment' drop down I don't get. Hopefully these will look bigger and I've also included the attachment.

Attachment 653394

Attachment 653395

4. ## Re: =sumif combining Date, Text & Value for results table

You can use this formula in cell H3:

=SUMIFS(\$C:\$C,\$D:\$D,"*"&H\$2&"*",\$A:\$A,MONTH(\$G3))

then you can copy this across and down as required.

Hope this helps.

Pete

5. ## Re: =sumif combining Date, Text & Value for results table

Pete, thanks for that, yeah, got that working all the way down.

Based on your example, I also added in another couple of columns, and added the year too, with ,\$B:\$B,YEAR(\$H3)) and it works.

Again, thanks.

6. ## Re: =sumif combining Date, Text & Value for results table

You might also like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

Pete

There are currently 1 users browsing this thread. (0 members and 1 guests)