+ Reply to Thread
Results 1 to 2 of 2

Not Display of Occurrences, After SortUniq UDF Added

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-21-2012
    Location
    miami, florida usa
    MS-Off Ver
    Excel 2007
    Posts
    260

    Unhappy Not Display of Occurrences, After SortUniq UDF Added

    Hello all,

    I have 8 boxes with Ranges each one,

    Last five Boxes wit Ranges had the Occurrences of each string,

    Occurrences where display at all the time, using this Function :
    Let say in Cells G32 to E32 Its was displaying 3,4,5,3 (Cell F, G, H, J )

    I Added a SortUniq Code and Formulas, But then the SortUniq didn't work with Leading zero
    (In each Cell where displaying the "00", But in in the Formula bar it was showing like single digit)

    I changed to custom and "00", After that stop working the occurrences

    It seems that problem is with Format cells properties
    then i changed the Formats Cell properties, As text, General, then Custom (using 00)
    also add the apostrophe, etc,etc.. then Sortuniq not sort, and not Occurrences.. so i had to
    set back to custom wit '00' but occurrences disappear.. Problem still.



    Please, any suggestion?


    I'm using the the following Functions :

    For Occurrences
    =IF(AND(COUNT(C25:C31)>3,COUNT(C25:C31)<7),COUNT(C25:C31),"")
    SortUniq Function
    =sortuniq("-",C16:C22,D16:D22)
    If and LEN function
    =IF(LEFT(AO2,1)="-",MID(AO2,2,LEN(AO2)), IF(RIGHT(AO2,1)="-",LEFT(AO2,(LEN(AO2)-1)),AO2))
    SortUniq Code
    Function SortUniq(delim As String, ParamArray a()) As String
        Dim r As Range, e, x
        With CreateObject("System.Collections.ArrayList")
            For Each x In a
                For Each r In x
                    For Each e In Split(r.Value, delim)
                        If Not .Contains(Trim$(e)) Then .Add Trim$(e)
                    Next
                Next
            Next
            .Sort
            SortUniq = Join$(.ToArray, delim)
        End With
    End Function


    Find sample File attachment


    Thank You

    David
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    10-21-2012
    Location
    miami, florida usa
    MS-Off Ver
    Excel 2007
    Posts
    260

    Re: Not Display of Occurrences, After SortUniq UDF Added

    Hi All,

    After many days Trying, i solved the problem.

    This forum is one of a kind, that excel newbee like me, found lot help and i learn a lot (thanks)

    But i realised that for some or many excel solution, people can find information on the net,
    Indeed, But is Tooo much information, many of the Info won't help.
    or confuse more to lil dum like me. (just kidding, is auto critic )

    Other issue is that to find help for for specific topic, we have to type many different "keyword"
    till we catch the right help or solution...

    and well, i found this video, that the lady who done it, explain exactly the problem i had,
    no experience people like me need to watch it (and i don't forget the lesson)

    http://www.youtube.com/watch?v=CD0gJqShUmA

    at the beginning it was a huge problem for me, and didn't know how easy was to solve it,
    we have to keep trying, that's the only way to learn..




    Thank you guys !!!


    Cheers.

    David
    Last edited by david gonzalez; 02-02-2014 at 12:52 PM. Reason: clean few extra word.

+ 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] Sortuniq not sorting, Trim, not trimming, and not leading zero
    By david gonzalez in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-22-2014, 03:28 PM
  2. [SOLVED] Userform Dependent Lists fails to display when OptionButtons added
    By rwabennett in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-13-2013, 03:24 PM
  3. [SOLVED] SortUniq to Get 3 or more string from Different Row/column of Workbook
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-31-2013, 04:15 PM
  4. Show All Occurrences
    By Larry.LeBlanc@O in forum Excel General
    Replies: 5
    Last Post: 08-17-2010, 05:53 PM
  5. [SOLVED] # of occurrences
    By gbeard in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-05-2005, 05:06 PM

Tags for this Thread

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