Forum Discussion

A_SIRAT's avatar
A_SIRAT
Iron Contributor
Jan 25, 2020
Solved

Count Function

Please assist with a formula.   Thanks.
  • Riny_van_Eekelen's avatar
    Jan 26, 2020

    A_SIRAT

    Alternatively in F5 and copy down.

     

    =SUMPRODUCT(IFERROR(1/(E5=$A$2:$A$33),""),1/COUNTIF($B$2:$B$33,$B$2:$B$33))

     

    Depending on your Excel version you may have to press Ctrl-Shift-Return to enter it. Note that your list doesn't have to be sorted by commodity. It will always count the number of boxes that each commodity has in storage.

Resources