+ Reply to Thread
Results 1 to 10 of 10

Grouping Cols with similar Values to Return Y or N

  1. #1
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Grouping Cols with similar Values to Return Y or N

    Hi Folks

    Where Cols B and C have rows grouped with the same value and Col X has a value >=3 then Col P is to return Y or N

    Sample Workbook with expected outcome attached.

    Cheers
    hammer
    Attached Files Attached Files
    If you have found solving my problem/s to be an interesting and educational exercise then how about Repping me up?
    No idea why I need Rep, other than feeling left out....

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Grouping Cols with similar Values to Return Y or N

    try this formula in cell P2 & drag down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Grouping Cols with similar Values to Return Y or N

    Hi jewelsharma
    Thanks for the reply but I need the Groups to return either Y or N only.

    So if just one of the values is less than 3 then the entire Group must return N

    Cheers

  4. #4
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Grouping Cols with similar Values to Return Y or N

    maybe this...

    P2: =IF(MIN(IF((B$2:B$20=B2)*(C$2:C$20=C2),X$2:X$20))<3,"N","Y")

    Array formula: Press Ctrl+Shift+Enter, not just Enter

    Copy down

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,980

    Re: Grouping Cols with similar Values to Return Y or N

    Just Enter ...

    =IF(AGGREGATE(15,6,X$2:X$20/(B$2:B$20=B2)/(C$2:C$20=C2),1)<3,"N","Y")

  6. #6
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Grouping Cols with similar Values to Return Y or N

    No luck with either of the last two posts either folks.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,424

    Re: Grouping Cols with similar Values to Return Y or N

    Hi hammer,

    So if just one of the values is less than 3 then the entire Group must return N
    Teethless mama's does that. I tested it. I see no reason why Phuocam's won't do that, either.



    Can you post something that will show why those aren't doing what you want?
    Dave

  8. #8
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Grouping Cols with similar Values to Return Y or N

    hammer2,
    I've tried both formulas, and they both return the desired result. (see attached)
    What results are you getting?

    Please review and also consider to "Add Reputation" to both Teethless Mama and Phuocam for their brilliant formulas.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Grouping Cols with similar Values to Return Y or N

    The formulas would not work for subsequent groups in the actual Workbook.
    The problem with both was the $ lock in the second part of (B$2:B$20)

    After removing that '$' both formulas worked fine (I do get some things worked out all by myself)

    Thanks to all for the solutions and input.

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,424

    Re: Grouping Cols with similar Values to Return Y or N

    Good to hear 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] Formulas required to lookup Multiple Cols and return Values
    By hammer2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-20-2016, 07:48 PM
  2. [SOLVED] Return occurences of similar values from text string
    By GreenWheels in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 05-21-2015, 11:04 AM
  3. [SOLVED] Formula to Lookup the highest Value in Col and return Values Cols in same Row
    By hammer2 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-04-2015, 04:17 AM
  4. Reformatting a sheet with many iterations of a similar grouping of dates and values
    By Bobby Green in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-14-2013, 02:19 PM
  5. [SOLVED] Compare and return similar values
    By jackyong1985 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-30-2012, 11:59 AM
  6. Replies: 1
    Last Post: 07-12-2012, 08:13 AM
  7. Excel 2007 : Grouping Cells with similar values
    By L_U_D_I_A in forum Excel General
    Replies: 3
    Last Post: 10-28-2011, 05:40 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