+ Reply to Thread
Results 1 to 6 of 6

Marking cases in column A that has atributes from column B

  1. #1
    Registered User
    Join Date
    07-18-2018
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    3

    Marking cases in column A that has atributes from column B

    Hej Forum,

    I just can't figure out, how to make a formula that will write "combo" or "single" for case numbers who have atributes x and z or just x or just z.

    My table consist of case numbers duplicated in column A, and attributes in column B. (including a lot more columns with attributes) sort of like this: Column A (case numbers): a,b,b,b,b,c,c,c,c,d,d and column B (attribute x or z): x,z,z,z,x,x,x,z,z,x

    I want to make a column where for the given case number (not row), if it has attribute X and Z, its written combo, and if it has just x or just z "single".

    Hope someone can help, thanks!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Marking cases in column A that has atributes from column B

    Welcome to the forum!

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-18-2018
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    3

    Re: Marking cases in column A that has atributes from column B

    Attached a sample workbook with before and after. Thanks for the advice.
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Marking cases in column A that has atributes from column B

    In C3 copied down:

    =IF(COUNTIF($A$3:$A$18,A3)-COUNTIFS($A$3:$A$18,A3,$B$3:$B$18,B3)=0,"single","combo")

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Marking cases in column A that has atributes from column B

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  6. #6
    Registered User
    Join Date
    07-18-2018
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    3

    Re: Marking cases in column A that has atributes from column B

    Thank you, it worked, really clever way of doing it.

+ 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] Marking the latest date in a set with duplicates in a column
    By provanities in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-27-2018, 07:54 AM
  2. Replies: 1
    Last Post: 02-04-2015, 03:54 PM
  3. Add cases opened and closed for each month and specifics about the cases.
    By ChrisLaRoc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-04-2014, 08:19 PM
  4. [SOLVED] How to get the unique cases in a column?
    By BNCOXUK in forum Excel General
    Replies: 6
    Last Post: 08-07-2013, 07:13 PM
  5. 0% marking on the y axis clustered column chart
    By enialy in forum Excel General
    Replies: 2
    Last Post: 03-18-2012, 07:05 AM
  6. cell atributes
    By jrsirgo54 in forum Excel General
    Replies: 9
    Last Post: 08-10-2009, 09:32 PM
  7. Marking a column based on date in another column
    By Captain Carrot in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-16-2009, 02:09 PM

Tags for this Thread

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