Forum Discussion

Lance Williams's avatar
Lance Williams
Copper Contributor
Jun 10, 2017

Formula help, counting related

DateCatCustomerSP1SP2Stk #
5/316/24BakerNM DHL6456
5/316/26NorthrupDH L6314
5/316/26RaynerMD MVCL6316
5/316/16SangalisDG L6441
5/31GTheissMVC L6233
5/31GThibodeauxNM L6298
5/31GVargheseJK L6277
6/1GBillotDG 32041
6/1GBrainDA L4872
6/1GDizonDH L6116
6/1GEagletonDG L5576
6/1GLyonsSB 32079
6/1GMeehanMD 32075
6/2GFloydJP L5778
6/2GMartinDT L6268
6/2GMoodyNS L6266
6/2GNealNM L6265
6/2GPenningtonBWB L5784
6/2GReinerDG 32080
6/2GTadlockDA 31979
6/2GYoungJP L6245
6/3GAbrahamsNM 32065
6/3GCooperMD 32082
6/3GFDS InteriorsBC L6232
6/3GGallaherJK L6246
6/3GGuilloryJK L5659
6/3GHodgesJP L5762
6/3GMurphyDT L6191

 

Need to count the number of "deals" for each salesperson.

- If SP2 column is blank, then add 1 for SP1

- If SP2 has a salesperson, then add .5 for SP1 and .5 for SP2

- Results will be total for each unique value (salesperson).

 

Thank you.

1 Reply

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    Hi Lance,

     

    If

    - nothing depends on what is in SP1 ccolumn;

    - you need only totals for each SP;

    - totals are for entire table (not by time periods, category, etc)

     

    you may calculate count of blank cells =COUNTBLANK() and non-blank cells =COUNTA() in SP2 column and multiply them accordingly on 1 and 0.5 for SP1, and on 0 and 0.5 for SP2.

     

    The only point be sure empty cells in SP2 column are really empty, i.e. without spaces and special symbols. If doubt check with =ISBLANK(<cell>).