LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Count unique numbers multiple criteria

The numbers in this problem may contain letters as well as numbers.

I have a lot of invoice numbers that I need to count. Some are
associated with a Purchase order number (in some cases multiple
occurances of the same invoice number are associated with one purchase
order and sometimes it is different invoices associated with a
purchase order number.)

First, I need to count the number of unique PO nos. for those where a
PO number shows up. Then, I need to count the unique invoice numbers
without a PO number.

I was using the following array formula:
=SUM(IF(FREQUENCY(IF(LEN(E2:E148)0,MATCH(E2:E148, E2:E148,0),""), IF
(LEN(E2:E148)0,MATCH(E2:E148,E2:E148,0),""))0,1) )

But it doesn't seem to be producing the right results. Here is an
example of my numbers
Invoice no. PO Number
40701429 763334
40701429
40701429
40701431 768346
40701431
40701525 763334
40701525 763334
40701525
40701525
40701592 748407
40701592
40701393


5 invoice numbers 4 po's in the list above is what the answer should
be in this short example. How is the best way to get accurate results
with many numbers? Thanks!

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count unique with multiple criteria Jo Excel Worksheet Functions 4 November 17th 09 06:20 AM
Count Unique with Multiple Criteria deeds Excel Worksheet Functions 3 February 14th 09 04:58 AM
unique record count with multiple criteria Rick Excel Worksheet Functions 1 February 12th 09 06:17 PM
Count unique numbers in a range with a given criteria Nelson Excel Discussion (Misc queries) 4 February 9th 07 01:28 PM
Count Unique Values with Multiple Criteria JohnV Excel Worksheet Functions 3 April 17th 06 06:00 PM


All times are GMT +1. The time now is 01:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"