Solved

# Count Unique Numbers (no blanks) + Only Counting Those Numbers That Start with 3

Posted on 2014-02-05
243 Views
So I have a couple of columns where I am trying to get the Unique count of the order number.  Depending on where they purchased the item(s) the first digit of the order number is different.  So I did a formula to get the overall count of the distinct order numbers

Now I wanted to break down Number of Orders per location, which if the Order number starts with 3 then its one location if it starts with 4 its another location, etc.  I did SUMPRODUCT for the total \$\$ and that formula looks like

=SUMPRODUCT(--(LEFT(Sales_Invoice_Line[Sales Invoice Header - Order Number],1)="3"),--(Sales_Invoice_Line[Type]="Item"),Sales_Invoice_Line[Amount])

But not sure how to combine the 2 to count uniques -- my attempt

I know, I know .. crappy

Any thoughts?
0
Question by:iceman19330

LVL 29

Expert Comment

ID: 39836315
to find ourselves with these name ranges could you post a workbook that contains this info ?
gowflow
0

LVL 50

Accepted Solution

barry houdini earned 500 total points
ID: 39836455
To count the number of different order numbers beginning with 3 try this formula

see attached where I used the above formula but with a simple range A2:A10

regards, barry
uniques.xlsx
0

Author Closing Comment

ID: 39836559
It works!  Sweet!  Thanks
0

## Featured Post

### Suggested Solutions

Excel 2013 Problem 12 47
Powershell merging excel spreadsheets into one 2 10
Excel 3 22
File size limit in SharePoint 2010 3 15
Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.