Forum Discussion

Pierr1930's avatar
Pierr1930
Copper Contributor
Sep 21, 2020
Solved

Excel Formula help please....

I have spent a number of hours trying to make this work, without success.

 

Trying to set up two different criteria to count.

 

Column A is a list of order numbers, repeated by the number of items ordered.

Column B is a list of customer names, repeated by the number of items ordered. 

 

I need to know how many orders each customer on the list in Col. B has placed.

So once the customer name changes on the list in Col. B, I need a count of unique order numbers in Column A. So a change of name in B triggers a count of unique order numbers in Col. A.

 

I hope I am explaining this clearly.

 

 

 

 

 

 

 

 

 

  • Pierr1930 

    If your Excel version supports dynamic arrays, that could be

    with formulas

    in G2:
    =UNIQUE($D$2:INDEX($D:$D,COUNTA($D:$D)))
    
    in H2:
    =COUNT(UNIQUE(
       FILTER( $B$2:INDEX($B:$B,COUNTA($B:$B)),
               $D$2:INDEX($D:$D,COUNTA($D:$D))=G2)
    ))
    (drag it down)

13 Replies

Resources