Closed Thread
Results 1 to 25 of 25

Formula to get unique data

Hybrid View

  1. #1
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,187

    Re: Formula to get unique data

    Hi,
    I managed to do that only with a helper though I'm sure it is possible without (with frequency function or something like that).

    So the helper in U5 and down would retrieve unique values, and leave blank cells for the duplicate lines (I couldnt find a way to overcome the blank cells):

    =IF(OR(COUNTIF($U$4:U4,INDEX($Q$1:$Q$14,SMALL(IF(Q5=$Q$1:$Q$14,ROW($Q$1:$Q$14),ROW(Q5)),1),1))>0,U4=INDEX($Q$1:$Q$14,SMALL(IF(Q5=$Q$1:$Q$14,ROW($Q$1:$Q$14),ROW(Q5)),1),1)),"",INDEX($Q$1:$Q$14,SMALL(IF(Q5=$Q$1:$Q$14,ROW($Q$1:$Q$14),ROW(Q5)),1),1))
    Then you can apply in Q15 and down the following formula that skips the blanks:

    =IFERROR(INDEX($Q$1:$Q$14,SMALL(IF($U$5:$U$13<>"",ROW($U$5:$U$13)),ROWS($U$5:U5)),1),"")

    Let me know if this what you need.
    Thanks.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-18-2020
    Location
    India
    MS-Off Ver
    2013
    Posts
    13

    Re: Formula to get unique data

    Hi Belinda,

    Thank you for your help on this, your formula given above works like charm.. taking helper is challenging, i am not sure how can i manage in future expenses or files. I may request you to check below formula which i have gathered over internet bits and pieces.. this will work without helper i guess, but i am not sure how to validate it properly. This formula works to some extent only. If i wanted to apply this formula in same excel sheet, say from Q23:Q30 for "Expenses of Hotel" for various months, results in blank cells. See whether you can help on this!

    Formula: copy to clipboard
    =IFERROR(INDEX(Q$5:Q$14,SMALL(IF(MATCH(Q$5:Q$14,Q$5:Q$14,)=ROW(Q$5:Q$14)-4,ROW(Q$5:Q$14)-4),ROW(A1))),"")
    Attached Files Attached Files

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Looking for a formula to rank data and output unique value
    By hawaean in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-06-2020, 02:16 AM
  2. Formula to Extract Unique Data
    By Legalhustler in forum Excel General
    Replies: 20
    Last Post: 07-16-2015, 11:23 AM
  3. Count formula for multiple and unique data
    By RMSmith3 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-10-2015, 05:29 PM
  4. Formula for finding unique data for lists
    By alcorp in forum Excel General
    Replies: 15
    Last Post: 07-21-2014, 03:49 PM
  5. [SOLVED] Summarising Data using a unique list formula
    By pauldaddyadams in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 07-25-2013, 11:11 AM
  6. Dynamic Formula that summarizes data by unique values only
    By Trax in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-15-2013, 09:08 AM
  7. How to get unique counts from large data by formula
    By irfan.rangrej in forum Excel General
    Replies: 5
    Last Post: 08-30-2011, 07:39 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