Results 1 to 7 of 7

Assign Yes/No to Cell Based on Meeting Some Criteria

Threaded View

  1. #1
    Registered User
    Join Date
    12-04-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2013
    Posts
    41

    Assign Yes/No to Cell Based on Meeting Some Criteria

    Hi,

    I need to write an excel function/macro/code to assign yes or no to a cell if the Description fits a certain category. I have attached a sample workbook and will explain what I mean.

    In the sample workbook, there is data on a company. This included a unique ID, city, state, and description. What I want to do is fill out the yes/no column. So if a particular company has 2 of the 4 necessary "Descriptions", then column G will return yes, otherwise No. It must return yes for a particular company/ID if 2 of the "Descriptions" are "Sale", "Service", "Business", or "Par". I only want it to count at least two unique descriptions.

    For example, in the sample workbook, Company A has all 4 of the necessary descriptions, thus everything in column G for this specific client should be yes. For Company B, only 1 of the 4 descriptions matches, so it returns No for all Company 2 columns. Company C has 2 of 4, so it returns yes for these columns. Note, it doesn't matter for Company C that "Business" was listed twice. It only needs to count the first unique time that description occurs.

    Any suggestions on how to approach this?

    Thanks.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 9
    Last Post: 12-22-2013, 09:29 PM
  2. [SOLVED] Totals based on meeting multiple criteria
    By JerryS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-08-2006, 05:40 PM
  3. Show top five records based on meeting multiple criteria
    By Joe D in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-20-2005, 07:55 PM
  4. Top Five selections based on sum of items meeting criteria
    By Joe D in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-20-2005, 07:50 PM
  5. [SOLVED] calculation based on meeting two criteria
    By jerry in forum Excel General
    Replies: 2
    Last Post: 10-06-2005, 08:05 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