Forum Discussion

Joesw775's avatar
Joesw775
Copper Contributor
Feb 20, 2022
Solved

Make summary of specific data

Hello,   I have a question about how I can best make a summary with the =sum function.  I'll do my best tying to explain what I wish to achieve with this so: In the cells (G3:G53) I can manually ...
  • OliverScheurich's avatar
    OliverScheurich
    Feb 21, 2022

    Joesw775 

    With LET and UNIQUE this formula seems to work in my Excel online sheet. Duplicates other than China and Germany are counted only once. The formula can be adapted if you want to count other countries regardless of duplicates.

    =LET(arr,G3:G53,
    unique,UNIQUE(arr),
    SUM((unique<>N18)*(unique<>N19)*(NOT(ISBLANK(unique))))
    )

     

    Without Office365 or 2021 or Excel online this works in my sheet:

    =SUM(MMULT((G3:G53<>N18)*(G3:G53<>N19)*(NOT(ISBLANK(G3:G53))),ROW(1:1)^0))

    However this formula only counts the total number of occurances of other countries regardless of duplicates.

     

    In both examples i applied following formulas for number of occurances of China and Germany. Enter these formulas with ctrl+shift+enter if you don't work with Office365 or 2021 or Excel online.

    =SUM(N($G$3:$G$53=N18))
    =SUM(N($G$3:$G$53=N19))

     

Resources