+ Reply to Thread
Results 1 to 9 of 9

Creating list from data with blank spaces and also eliminating a repeating value

  1. #1
    Forum Contributor
    Join Date
    12-22-2006
    Posts
    114

    Creating list from data with blank spaces and also eliminating a repeating value

    I have a list of data that has in one column, fund provider, then below, the fund, then "fund provider" and then below another fund, how do I eliminate the "fund provider" text in the column so I get a list of all the actual funds. Sample data has been uploaded

    Thanks in advance

    Alex
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Creating list from data with blank spaces and also eliminating a repeating value

    Not exactly clear to me where you want the results but it would make sense to make use of the AutoFilter capabilities XL has to offer, in VBA terms and based on your sample file:

    Please Login or Register  to view this content.
    The above when run should provide the listing in F1 onwards based on content in A.

    You could replicate the above with formulae but it would not be the best approach IMO.

  3. #3
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Creating list from data with blank spaces and also eliminating a repeating value

    Another approach. This one is w/o VBA code, using array formula.
    Please Login or Register  to view this content.
    Last edited by contaminated; 06-29-2009 at 05:02 PM.
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Creating list from data with blank spaces and also eliminating a repeating value

    Vusal, if interested, you could shorten that slightly:

    Please Login or Register  to view this content.
    You could also add a LOOKUP hander for the errors rather than letting the function return an error and using Conditional Formatting to hide them, see additions in red:

    Please Login or Register  to view this content.

  5. #5
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Creating list from data with blank spaces and also eliminating a repeating value

    DonkeyOte
    Thanks for revising. I'll research them...

  6. #6
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Creating list from data with blank spaces and also eliminating a repeating value

    DonkeyOte
    Thanks...
    Everything is clear but REPT()
    Can u please explain what this function is supposed to do here.
    I understood like it returns 255 pt of Z letters????

    PS: I'm just sudying....I aint expert as you... but I'll become, sooner or later..

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Creating list from data with blank spaces and also eliminating a repeating value

    Yes, REPT("Z",255), creates a string of 255 Z's... ie to represent a "large" text string such that the LOOKUP returns the last text string in the 2 value Array... if the INDEX returns an Error the LOOKUP will return the Null, else it will return the output of the INDEX.

    If the INDEX were returning numerics and you wanted to retun 0 instead of error you would use

    =LOOKUP(9.99999999999999E+307,CHOOSE({1,2},0,INDEX(...)))

    ie ensure that the criteria > possible outcomes such that the LOOKUP returns the last value of same data type as criteria (errors are ignored)

    And I am no expert, I'm still learning myself.

  8. #8
    Forum Contributor
    Join Date
    12-22-2006
    Posts
    114

    Re: Creating list from data with blank spaces and also eliminating a repeating value

    Hi,

    The first formula worked well, but the other two formulas didnt seem to work. The first formula comes back with "#VALUE". How do you eliminate these automatically, so that they are blank cells?

    Thanks

    Alex

  9. #9
    Forum Contributor
    Join Date
    12-22-2006
    Posts
    114

    Re: Creating list from data with blank spaces and also eliminating a repeating value

    When I said the first formula, I meant the first array formula. Not using VBA.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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