{"text_format":"1","workbook":"xlsx","n_sheets":2,"sheets":["Filter","UDF"],"not_rendered":{"charts":0,"images":0,"macros":1,"external_links":0,"defined_names":1,"comments":0,"pivot_tables":0},"unopened":[],"bounds":{"document_bytes":16777216,"sheet_cells":100000,"rows_first":2000,"rows_last":500,"rows_between":2000,"halvings":0,"cell_chars":16384,"cell_head_chars":4096},"cells_cut":0,"cells_raw":0,"read":"whole","date_system":"1900"}

{"sheet":"Filter","index":0,"n_rows":13,"n_cols":3,"rows_kept":13,"cut":false,"hidden":false,"merged":[[1,1,1,2]]}
[]
[null,"Sum by Font Color with Filter"]
[]
[null,"Year","Profit"]
[null,2015,55000]
[null,2016,48000]
[null,2017,52000]
[null,2018,60000]
[null,2019,45000]
[null,2020,42000]
[null,2021,50000]
[]
[null,"Sum",{"$f":"SUBTOTAL(9,C5:C11)","v":135000}]

{"sheet":"UDF","index":1,"n_rows":9,"n_cols":10,"rows_kept":9,"cut":false,"hidden":false,"merged":[[1,1,1,9]]}
[]
[null,"Sum by Font Color with User Defined Function (UDF) in Excel"]
[]
[null,60,50,25,42,74,60,null,"Color","Sum"]
[null,65,30,71,41,36,27,null,"Black",{"$f":"SUMBYFONTCOLOR(I5,$B$4:$G$9)","v":460}]
[null,75,74,75,61,62,67,null,"Blue",{"$f":"SUMBYFONTCOLOR(I6,$B$4:$G$9)","v":374}]
[null,51,35,71,39,63,28,null,"Green",{"$f":"SUMBYFONTCOLOR(I7,$B$4:$G$9)","v":295}]
[null,40,62,35,29,42,52,null,"Orange",{"$f":"SUMBYFONTCOLOR(I8,$B$4:$G$9)","v":423}]
[null,47,47,63,73,68,49,null,"Red",{"$f":"SUMBYFONTCOLOR(I9,$B$4:$G$9)","v":337}]