+ Reply to Thread
Results 1 to 4 of 4

Count only one order number in a list of values

  1. #1
    Registered User
    Join Date
    08-20-2012
    Location
    Glasgow
    MS-Off Ver
    Excel 2007
    Posts
    77

    Count only one order number in a list of values

    Hi,

    I have a list of order numbers in Column A. If there are duplicate order numbers I only want to assign a 1 value against one of the values in column B.

    I've attached how I want column B to look when it has a formula in it.

    Many Thanks

    David
    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Count only one order number in a list of values

    Hi,

    Try this in B2 and copy down:

    =IF(ROWS($2:2)=MATCH(A2,$A$2:$A$13,0),1,0)

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Count only one order number in a list of values

    Put this in B2:

    =--(COUNTIF(A$2:A2,A2)=1)

    then copy down.

    Hope this helps.

    Pete

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count only one order number in a list of values

    with if (count if)

    See the attached file.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Count number of instances and then display in descending order
    By gtudor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-12-2013, 11:59 AM
  2. [SOLVED] Find order number and count if between range
    By sonata7245 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-10-2013, 07:35 PM
  3. [SOLVED] Look for values in a list, count and list in descending order
    By sans in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 05-15-2012, 09:16 AM
  4. count number of occurances in descending order
    By nazimscr in forum Excel General
    Replies: 2
    Last Post: 05-11-2011, 12:31 PM
  5. purchase order list & order number generator
    By podaf in forum Excel General
    Replies: 2
    Last Post: 06-28-2009, 06:02 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1