+ Reply to Thread
Results 1 to 11 of 11

Displaying unique results from a custom made lookup formula.

  1. #1
    Forum Contributor
    Join Date
    06-24-2004
    MS-Off Ver
    Excel 2013 Pro Plus
    Posts
    122

    Displaying unique results from a custom made lookup formula.

    Hello friends, Hope all is well with you all!

    The attachment has a sheet. the sheet has a database with information.

    I kindly request that you please help me with a formula to show the results just like it is displayed in cells H2:H4.

    The results that I am getting from the formula that I have is displayed in G2:G4; which is wrong.

    i.e. I wish to please see unique names (without repetition) based on the conditions and the combinations of the cells F2:F4.

    thank you so much!
    Attached Files Attached Files

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,373

    Re: Displaying unique results from a custom made lookup formula.

    Hope this works, copy this on G2

    =INDEX($C$2:$C$16;SMALL(IF($A$2:$A$16=LEFT($F2;SEARCH(" ";$F2;1)-1);ROW($C$2:$C$16)-ROW($C$2)+1);COUNTIF($F$2:F2;F2)))

    then press F2 button to open the formula, then enter with press all together CTRL+SHIFT+ENTER button, if succes will show curly bracket that enclosed the formula "{formula}" (array formula type)
    last step copied down as necessary

  3. #3
    Forum Contributor
    Join Date
    06-24-2004
    MS-Off Ver
    Excel 2013 Pro Plus
    Posts
    122

    Re: Displaying unique results from a custom made lookup formula.

    Thank you very much, but the formula still needs a slight adjustment. Please open the attachment and apply the formula that you suggested on cell F2:F4 (btw I did apply CTRL+SHIFT+ENTER button). And change the cell C3 to the word CAR.

    The results should be CAR BIKE BUS. But, instead I am getting CAR CAR BUS.

    I am hoping to only get the unique names please, thank a lot!

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

    Re: Displaying unique results from a custom made lookup formula.

    This array formula** entered in H2:

    =LOOKUP("zzzzz",CHOOSE({1,2},"",INDEX(C$2:C$16,MATCH(0,IF(A$2:A$16&" "&B$2:B$16=F$2,COUNTIF(H$1:H1,C$2:C$16)),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.

  5. #5
    Forum Contributor
    Join Date
    06-24-2004
    MS-Off Ver
    Excel 2013 Pro Plus
    Posts
    122

    Re: Displaying unique results from a custom made lookup formula.

    Thank you so much Tony, but please note that ranges of column H, have nothing to do with formula. I want to please show the unique results based on the columns A, C, and F. Really appreciate it!

    I am referring to the last part of the formula that you provided: COUNTIF(H$1:H1,C$2:C$16)),0))))

    thanks
    Last edited by countryfan_nt; 08-12-2016 at 08:07 PM.

  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: Displaying unique results from a custom made lookup formula.

    In your sample file column H is where you show us what results you expect so I assumed that's where you want the formulas to go. If that's not where you want the formulas to go then tell us where.

    Here's your file with the formula implemented.
    Attached Files Attached Files
    Last edited by Tony Valko; 08-12-2016 at 08:43 PM.

  7. #7
    Forum Contributor
    Join Date
    06-24-2004
    MS-Off Ver
    Excel 2013 Pro Plus
    Posts
    122

    Re: Displaying unique results from a custom made lookup formula.

    I apologize, I miss understood. thank you, I thought that column H was a database, but in fact it is where the formula is placed!
    thank you very much!

  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: Displaying unique results from a custom made lookup formula.

    You're welcome. Thanks for the feedback!

  9. #9
    Forum Contributor
    Join Date
    06-24-2004
    MS-Off Ver
    Excel 2013 Pro Plus
    Posts
    122

    Re: Displaying unique results from a custom made lookup formula.

    Hello, and sorry to bother you again!

    I am now trying to connect 3 different scenarios; Please help, because I keep getting FALSE. I want to connect the following 3 possibilities (Yes, I am applying the { } to the combined formulas:

    A.
    =IF(P9="Nursing",IF(COUNTIFS('Approved Salary - Nursing'!$I$3:$I$363,O9,'Approved Salary - Nursing'!$B$3:$B$363,R9),MIN((IF('Approved Salary - Nursing'!$B$3:$B$363=R9,IF('Approved Salary - Nursing'!$I$3:$I$363=O9,IF('Approved Salary - Nursing'!$J$3:$J$363>0,'Approved Salary - Nursing'!$J$3:$J$363),

    ( WITH )

    B.
    =IF(OR(P10="Administrative & Support Service",P10="Paramedical"),IF(COUNTIFS('Approved Salary Admin&Paramedic'!$C$3:$C$1330,'INPUT SHEET'!R10,'Approved Salary Admin&Paramedic'!$H$3:$H$1330,'INPUT SHEET'!O10),MIN(IF('Approved Salary Admin&Paramedic'!$B$3:$B$1330=R10,IF('Approved Salary Admin&Paramedic'!$I$3:$I$1330>0,'Approved Salary Admin&Paramedic'!$I$3:$I$1330)))))

    if A & B equal FALSE then result will be: "NO MATCH"

    sorry & thank you very much!

  10. #10
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Displaying unique results from a custom made lookup formula.

    The Pivot table was invented for this............
    Kind regards,
    Piet Bom

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

    Re: Displaying unique results from a custom made lookup formula.



    I would have to see the file to put that all in context.

+ 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] Retention formula to count unique customers that made a purchase in both years
    By stu40 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-23-2016, 01:24 AM
  2. Replies: 2
    Last Post: 07-28-2015, 09:22 PM
  3. Lookup formula that returns unique multiple search results
    By wit2001large in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-23-2013, 08:09 AM
  4. Lookup formula that returns unique multiple search results WITH ATTACHMENT
    By wit2001large in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-23-2013, 06:02 AM
  5. Help debugging a macro - Searching for a unique string and displaying results
    By Timmo246 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2012, 04:37 PM
  6. Displaying formula rather than results...
    By RUSH2CROCHET in forum Excel General
    Replies: 3
    Last Post: 04-10-2006, 12:25 PM
  7. one cell entry made up of two lookup results
    By Orion in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2005, 08:06 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