+ Reply to Thread
Results 1 to 14 of 14

Identify records where sales order contains multiple items

Hybrid View

  1. #1
    Registered User
    Join Date
    09-09-2011
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    52

    Identify records where sales order contains multiple items

    Here's a better explanation:

    I have a recordset that looks like this:

    Sales Order Item ID Accessory
    ABC100 302 1A
    ABC100 443 2A
    EFG200 105 1A
    EFG200 105 1B
    HIJ300 790 3A

    I need to identify the sales orders containing multiple (unique) items. Any ideas for a formula that could help me mark each of those records? Items will often appear more than once in this excel file because an item can be associated with multiple accessories. I would be looking for something like this:

    Sales Order Item ID Accessory Multiple?
    ABC100 302 1A Yes
    ABC100 443 2A Yes
    EFG200 105 1A No
    EFG200 105 1B No
    HIJ300 790 3A No

    Thank you for your help.
    Last edited by hk106; 06-22-2012 at 03:53 PM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Identify records where sales order contains multiple items

    Use conditional formatting and specifically 'format only duplicate values' for your data range in Column A

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,291

    Re: Identify records where sales order contains multiple items

    Hi HK106,

    I'd do this problem with two helper columns. See the attached. The Counter Column > 1 are all double entered items.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    09-09-2011
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Identify records where sales order contains multiple items

    I've added the result I'm seeking for my issue in my initial post. Hopefully these clears up the confusion about what I'm requesting.

  5. #5
    Registered User
    Join Date
    09-09-2011
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Identify records where sales order contains multiple items

    ***bump***

  6. #6
    Registered User
    Join Date
    09-09-2011
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Identify records where sales order contains multiple items

    Is what I'm asking simply not possible?

  7. #7
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Identify records where sales order contains multiple items

    In the 'Multiple' label column use the below for Row#2 assuming your range of data is A2:A100

    =IF(COUNTIF($A$2:$A$100,A2)>1,"Yes","No")

  8. #8
    Registered User
    Join Date
    09-09-2011
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Identify records where sales order contains multiple items

    Ace_XL,

    Please look at sales order EFG200 in my example in the first post. The sales order appearing multiple times doesn't mean that there is more than one item associated with the sales order.

  9. #9
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Smile Re: Identify records where sales order contains multiple items

    Here's a combination of both 'sales order' and 'Item ID'

    =IF(COUNTIF($A$2:$A$100,A2)>1,IF(COUNTIF($B$2:$B$100,B2)=1,"Yes","No"),"No")
    Have also attached a worksheet as an example!
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    09-09-2011
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Identify records where sales order contains multiple items

    Ace_XL,

    Thank you for the suggestion, and I appreciate that somewhat is making an effort to help me, but your formula erroneously assigns "No" to a record when an item on a sales order has multiple accessories.

    Allow me to expand my example:

    Sales Order Item ID Accessory
    ABC100 302 1A
    ABC100 443 2A
    EFG200 105 1A
    EFG200 105 1B
    EFG200 523 1A
    HIJ300 790 3A

    What I'd like to see:

    Sales Order Item ID Accessory Multiple?
    ABC100 302 1A Yes
    ABC100 443 2A Yes
    EFG200 105 1A Yes
    EFG200 105 1B Yes
    EFG200 523 1A Yes
    HIJ300 790 3A No

    So EFG200 would be "Yes" because it is associated with multiple items. The number of accessories on an item doesn't matter. I just want to identify the sales orders that are associated with multiple items.
    Last edited by hk106; 06-22-2012 at 03:54 PM.

  11. #11
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Identify records where sales order contains multiple items

    Try this..

    =IF(COUNTIF($A$2:$A$100,A2)>1,IF(COUNTIF($B$2:$B$100,B2)=COUNTIF($A$2:$A$100,A2),"No","Yes"),"No")
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    09-09-2011
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Identify records where sales order contains multiple items

    Ace_XL,

    Clever, but unfortunately, an item can be associated with multiple sales orders.

  13. #13
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Identify records where sales order contains multiple items

    Haha.. I was hoping to do this without the aid of a helper column, but you leave me little choice

    Refer the attached.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    09-09-2011
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Identify records where sales order contains multiple items

    Ace_XL,

    Perfect! Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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