• 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.

How to add the values of a table column

S P P

Member
What would the formula look like if you eliminate columns E and F

As in the example of this spreadsheet
 

Attachments

  • How to add the values ​​of a table column.xlsx
    11.5 KB · Views: 3
Using Power Query

Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Tabela1"]}[Content],
    #"Filtered Rows" = Table.SelectRows(Source, each ([Date] <> null)),
    #"Changed Type" = Table.TransformColumnTypes(#"Filtered Rows",{{"Date", type date}}),
    #"Inserted Year" = Table.AddColumn(#"Changed Type", "Year.1", each Date.Year([Date]), Int64.Type),
    #"Inserted Month" = Table.AddColumn(#"Inserted Year", "Month.1", each Date.Month([Date]), Int64.Type),
    #"Grouped Rows" = Table.Group(#"Inserted Month", {"Year.1", "Month.1"}, {{"Totals", each List.Sum([Total]), type number}})
in
    #"Grouped Rows"
 
Thanks
I got it like this
=SUMPRODUCT((Month(Table1[Date])=B3)*(Year(Table1[Date])=C3)*(Table1[Total]))
 
You could use:
=SUMIFS(Tabela1[Total],Tabela1[Date],">="&DATE(C3,B3,1),Tabela1[Date],"<"&DATE(C3,B3+1,1))
 
Good morning!

Debaser

Something went wrong in the formula you wrote or I did something wrong
 

Attachments

  • How to add the values __of a table column.xlsx
    11.9 KB · Views: 2
Remove the @ before the last DATE function.
 

Attachments

  • How to add the values __of a table column.xlsx
    13 KB · Views: 2
Back
Top