I'm working on a project where I need to count unique distinct values that meet more multiple criteria. In this instance I need to look at:
I am trying to determine how many units (rooms) each unique customer represents. I am attaching some test data for your use:
<colgroup><col><col><col span="2"></colgroup><tbody>
</tbody>
As you can see in the above test data, only customer 1939643 placed any Web Orders in 2014 and therefore the corresponding number of units (# of rooms) for this customer is 94 (even though this customer appears on 5 total rows containing Web Orders in 2014).
Does this make sense? Can someone write me an array formula that will work please?
Thank you,
Rick
- Orders that were placed in 2014
- Unique customers that placed Web Orders
I am trying to determine how many units (rooms) each unique customer represents. I am attaching some test data for your use:
Year | Web Orders | HDS Account # | Units |
2014 | 12560316 | 80 | |
2014 | 12560316 | 80 | |
2014 | 4887227 | 79 | |
2014 | 4887227 | 79 | |
2014 | Web Orders | 1939643 | 94 |
2014 | Web Orders | 1939643 | 94 |
2014 | Web Orders | 1939643 | 94 |
2014 | Web Orders | 1939643 | 94 |
2014 | Web Orders | 1939643 | 94 |
2014 | 5909972 | 112 | |
2014 | 5909972 | 112 | |
2014 | 2068909 | 86 | |
2015 | 3329331 | 83 | |
2015 | 3329331 | 83 | |
2015 | 3329331 | 83 | |
2015 | 3329331 | 83 | |
2015 | 3329331 | 83 | |
2015 | Web Orders | 6129968 | 85 |
2015 | Web Orders | 6129968 | 85 |
2015 | 6151214 | 115 | |
2015 | 6151214 | 115 | |
2015 | 6151214 | 115 | |
2015 | 6147656 | 83 | |
2015 | 6147656 | 83 | |
2016 | 2066665 | 68 | |
2016 | 2066665 | 68 | |
2016 | 2066665 | 68 | |
2016 | Web Orders | 14148293 | 106 |
2016 | Web Orders | 14148293 | 106 |
2016 | Web Orders | 14148293 | 106 |
2016 | Web Orders | 14148293 | 106 |
2016 | Web Orders | 14148293 | 106 |
2016 | 14354110 | 78 | |
2016 | 14354110 | 78 | |
2016 | 14354110 | 78 | |
2016 | 14354110 | 78 | |
2017 | Web Orders | 14148293 | 106 |
2017 | Web Orders | 14148293 | 106 |
2017 | Web Orders | 14148293 | 106 |
2017 | Web Orders | 14148293 | 106 |
2017 | Web Orders | 14148293 | 106 |
2017 | Web Orders | 14148293 | 106 |
2017 | 12560316 | 80 | |
2017 | 12560316 | 80 | |
2017 | 12560316 | 80 | |
2017 | 12560316 | 80 | |
2017 | 12560316 | 80 |
<colgroup><col><col><col span="2"></colgroup><tbody>
</tbody>
As you can see in the above test data, only customer 1939643 placed any Web Orders in 2014 and therefore the corresponding number of units (# of rooms) for this customer is 94 (even though this customer appears on 5 total rows containing Web Orders in 2014).
Does this make sense? Can someone write me an array formula that will work please?
Thank you,
Rick