+ Reply to Thread
Results 1 to 4 of 4

determine value based on range of sub values

  1. #1
    Registered User
    Join Date
    09-14-2014
    Location
    Dubai
    MS-Off Ver
    2013
    Posts
    9

    determine value based on range of sub values

    Hello

    I'm new to this forum.

    I have a list of categories listed on excel table, and each category could have (any) number of sub categories. The sub categories could have values YES or NO.

    Category Sub Category Value
    Category A sub 1 YES
    Category A sub 2 NO
    Category A sub 3 YES
    Category B sub 1 NO
    Category B sub 2 NO
    Category C sub 1 NO
    Category C sub 2 NO
    Category C sub 3 YES
    Category C sub 4 YES
    Category D sub 1 YES


    I want to create a summary table that marks Category X as YES only if all sub categories contain the value YES, as so the results would be:

    Category Value
    Category A NO
    Category B NO
    Category C NO
    Category D YES

    How do I calculate the formula under the Value column in the second table? I have a feeling I have to use HLOOKUP in combination with something else (Countif? Indirect?) but I can't seem to get a grasp around it. I don't mind using helper columns.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: determine value based on range of sub values

    With your first table in Sheet1...beginning in cell A1
    and
    your second table in Sheet2...beginning in cell A1

    First, I converted your first table to an Excel Table (Home.Format_as_table...follow the prompts) for 2 reasons:
    1) Tables are a great Excel feature
    2) Tables make this example easier to understand

    Then, on Sheet2, this formula begins the list of Yes/No categorization...Assigning YES only if there are not any NO values.
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    09-14-2014
    Location
    Dubai
    MS-Off Ver
    2013
    Posts
    9

    Re: determine value based on range of sub values

    Thank you so much Ron, it worked like a charm

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: determine value based on range of sub values

    Glad you got something you can use!

    If that resolves your issue, please take a moment to mark this thread as SOLVED (from the Thread Tools menu)

    ...BTW: If anybody in this forum is ever particularly helpful, you can thank them by clicking the "Add Reputation" star under one of their posts.

+ 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. How to determine values based on a previous cell
    By Kastalarial in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-10-2013, 06:26 AM
  2. [SOLVED] determine a rate from a range of values based on a weekly fuel price
    By djgoody9 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-29-2013, 12:48 PM
  3. Replies: 2
    Last Post: 04-04-2013, 02:12 PM
  4. determine what my multiplier should be based on a range of numbers
    By BbAaSsSs in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-10-2007, 03:48 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