+ Reply to Thread
Results 1 to 20 of 20

LOOKUP and Find Next Unique Value

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    146

    LOOKUP and Find Next Unique Value

    I've attached an example of how my data is organize. I'm looking to enter formulas in cells of column C on sheet2 which reference a single cell in column B which it then looks for in sheet 1 and finds the next un-used value in the same row:column C. The data is not organized nicely and I would like to only have to enter a single letter in column B on sheet2 and have all the information in coumn C populate. Having the information in column C(sheet2) alphabetical or smallest to largest is not important. Basically I'm just looking to have it start in row 2 on sheet1 and cycle down and fill in the information that way. I'd like to do it with a formula because the quantity of rows on sheet2 varies and where I enter "A", "B" etc...but if it must be VBA I'd like to note that there will be other information running down in column B(sheet2) which is not relevant to the data which must stay. Any help in sorting out a lookup/match/index etc formula would be greatly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: LOOKUP and Find Next Unique Value

    maybe with a pivot table
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    146

    Re: LOOKUP and Find Next Unique Value

    Thanks for the tip @oeldere! Unfortunately I have it all in colorful rows and formatting which I cannot replicate with a pivot table and why I've been doing everytihng by hand and wasting a lot of time so I figured there's probably a formula out there hahah!

  4. #4
    Forum Contributor
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    146

    Re: LOOKUP and Find Next Unique Value

    Maybe theres a way to use the "GETPIVOTDATA" formula?

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: LOOKUP and Find Next Unique Value

    IN that case I don't understand your (fully) request.

  6. #6
    Forum Contributor
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    146

    Re: LOOKUP and Find Next Unique Value

    Sorry for any confusion. I was thinking of producing a pivot table on another sheet then use that formula to search the pivot table and potentially find the proper information. I'm not totally sure if its possible.

  7. #7
    Forum Contributor
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    146

    Re: LOOKUP and Find Next Unique Value

    Would it be possible to put a formula for example in cell C6 to reference B1 and look for it on sheet1 then once found grab the value in the same row of column C then paste it if it is not currently in sheet2 C6:C13?

  8. #8
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,304

    Re: LOOKUP and Find Next Unique Value

    And if we apply the AGGREGATE function and drop-down list.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    146

    Re: LOOKUP and Find Next Unique Value

    So when I change the drop down menu I'm not seeing the values change. Could I be using a different version of Excel (2007)? Also, I appologize that maybe I didnt mean for it literally to say "Should Be", rather just the numbers i.e. 30,21,32,33...etc

  10. #10
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,304

    Re: LOOKUP and Find Next Unique Value

    Added version for Excel 2007.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    146

    Re: LOOKUP and Find Next Unique Value

    I think its 95% of what I'm looking for. I'll need to have it repeated in random orders down the sheet and I'm getting blank when I tried?
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,304

    Re: LOOKUP and Find Next Unique Value

    Once again, see the Attached Files.
    In all cases, the first formula should be of this form.
    Formula: copy to clipboard
    =IFERROR("SHOULD BE:  "&SMALL(INDEX(Sheet1!C$2:C$23*(Sheet1!E$2:E$23=B$16),0),COUNTIF(Sheet1!E$2:E$23,"<>"&B$16)+ROW(1:1)),"")
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    146

    Re: LOOKUP and Find Next Unique Value

    Thanks Czselaw! So I've tried it on my actual sheet where I have the more confidential information and its not quite working...Does this not work if I enter the formula in a merged cell? Also what should the array be?

  14. #14
    Forum Contributor
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    146

    Re: LOOKUP and Find Next Unique Value

    I've actually determined the reason the formula isnt working is becasue in the actual sheet I have values with - in them such as F-1-101A. Is there a way for the formula to still work with values like this in column C on sheet1?

  15. #15
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,304

    Re: LOOKUP and Find Next Unique Value

    Attach an example.

  16. #16
    Forum Contributor
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    146

    Re: LOOKUP and Find Next Unique Value

    Please see attached
    Attached Files Attached Files

  17. #17
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,457

    Re: LOOKUP and Find Next Unique Value

    Try

    =IFERROR(INDEX(Sheet1!C$2:C$23,SMALL(IF(Sheet1!E$2:E$23=B$1,ROW($A$2:$A$23)-ROW($A$2)+1,""),ROWS($A$2:A2))),"")

    Enter with Ctrl+Shift+enter

  18. #18
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,304

    Re: LOOKUP and Find Next Unique Value

    Please see the result.
    Attached Files Attached Files

  19. #19
    Forum Contributor
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    146

    Re: LOOKUP and Find Next Unique Value

    I have one last question I thought of for down the road. I think I might likely be entering this forumla in a merged cell. From my previous experience I know that array formulas dont work and wondering how I'd modify this in order for the array to work?

  20. #20
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: LOOKUP and Find Next Unique Value

    I think I might likely be entering this forumla in a merged cell
    .

    My advice is NOT to work with merged cells, you get in trouble with it sooner or later.

+ 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. Replies: 2
    Last Post: 07-28-2015, 09:22 PM
  2. [SOLVED] Find unique values and make them unique
    By unitlted_1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-18-2015, 11:10 AM
  3. [SOLVED] Lookup formula to find lowest value with variable lookup criteria
    By brharrii in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-27-2015, 03:00 AM
  4. [SOLVED] Unique Total Value Count per Unique Lookup Values
    By KnightVision in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-02-2014, 05:03 AM
  5. [SOLVED] A lookup function based on two criteria; one unique & one not unique to the lookup table
    By Trevasaurus in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-18-2014, 11:35 AM
  6. Search lookup array to find lookup value contained within text string
    By Cookstein2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-02-2011, 09:42 AM
  7. Lookup Unique ID / STDEV and MAX
    By dreicer_Jarr in forum Excel General
    Replies: 4
    Last Post: 01-29-2009, 01:28 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