+ Reply to Thread
Results 1 to 13 of 13

Unique No with conditions

  1. #1
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Unique No with conditions

    Hi to All,

    I am facing a problem with
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Please help out me.

    Sample file is attached for your reference.

    Thanks
    Ankur
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,043

    Re: Unique No with conditions

    What you trying to do?
    Never use Merged Cells in Excel

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Unique No with conditions

    I want to extract unique numbers based on condition..

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,043

    Re: Unique No with conditions

    Can you write expected result?

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Unique No with conditions

    If any of data sheets BL column match with "FC" then this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    should be run for extracting unique numbers. A well as this formula works perfectly for unique numbers but with condition it give me FALSE...

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Unique No with conditions

    See if you can adapt this example...

    Data Range
    A
    B
    C
    D
    1
    ------
    ------
    ------
    ------
    2
    Fg
    1
    1
    3
    Fc
    1
    3
    4
    AA
    2
    5
    5
    Fc
    3
    6
    Fc
    3
    7
    AD
    4
    8
    Cf
    4
    9
    HG
    5
    10
    Fc
    5


    This array formula** entered in D2:

    =IFERROR(INDEX(B$2:B$10,MATCH(0,IF(A$2:A$10="Fc",COUNTIF(D$1:D1,B$2:B$10)),0)),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).

    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Unique No with conditions

    Its working perfectly Mr. Tony. can you pls explain why we can not put if condition first??

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Unique No with conditions

    Because the INDEX function can only return a single result. But, when you put the IF logical test first, it tries to force INDEX to return an array of results.

  9. #9
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Unique No with conditions

    Oh! then how will I'll know to put the condition in exact location pls.

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Unique No with conditions

    That usually comes with experience and lots of trial and error.

  11. #11
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Unique No with conditions

    it means I have to learn too long excel first. ...

    Thats O.K you guys will help surly help me for the same. "I Hope"

    Thanks once again for help

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Unique No with conditions

    You're welcome. Thanks for the feedback!

  13. #13
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Unique No with conditions

    What are you wanting to achieve with that formula.

    It may be that a Pivot Table would give you any analysis you need.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. unique across three conditions, then sumif
    By icestationzbra in forum Excel General
    Replies: 3
    Last Post: 05-28-2014, 05:57 PM
  2. Sum unique with conditions
    By Brian D via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-29-2005, 05:05 PM
  3. count unique with conditions
    By Domenic in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-06-2005, 07:05 AM
  4. [SOLVED] count unique with conditions
    By Domenic in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-06-2005, 04:05 AM
  5. count unique with conditions
    By \ditzman via OfficeKB.com\ in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  6. count unique with conditions
    By \ditzman via OfficeKB.com\ in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. count unique with conditions
    By \ditzman via OfficeKB.com\ in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-08-2005, 07:41 AM

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