+ Reply to Thread
Results 1 to 5 of 5

Negate an array?

  1. #1
    Registered User
    Join Date
    02-02-2014
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    37

    Negate an array?

    As part of a formula I have the following evaluation:

    =CONCATENATE({"Example 1","Example 2"})

    I would like the CONCATENATE function to return "Example 1Example 2", but it doesn't because the preceding elements are in an array. Is there any way to negate the array so it appears as CONCATENATE("Example 1","Example 2") instead?

    Thanks.

    The document will be used with Excel 2010 and cannot contain VBA scripts.
    Last edited by zanguard80; 05-26-2017 at 05:10 AM.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Negate an array?

    There's no simple formula available to join an array. It's trivial with a small UDF:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Negate an array?

    You could do it with a helper range to split the array into distinct values, then concatenate those.

    Or you could come up with something truly horrible and inefficient like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    extended to cope with your expected array upper bound... but that's NASTY!

  4. #4
    Registered User
    Join Date
    02-02-2014
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    37

    Re: Negate an array?

    Thanks. Bumping to see if there are any other solutions.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,969

    Re: Negate an array?

    Why is that an array in the 1st place?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] Quick Array question - Copy array to another array then resize?
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-02-2013, 01:17 AM
  2. Negate Value of Drop Down Box "if"
    By Mel B in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2013, 12:15 AM
  3. [SOLVED] Negate a Lookup Calculation
    By Mel B in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-03-2013, 11:24 AM
  4. [SOLVED] Vlookup only shows the first result, is there a method to negate the already existing find
    By mdggraham in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-20-2012, 05:45 AM
  5. Negate Conditional Formatting in DATA BARS?
    By e4excel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-30-2010, 07:33 AM
  6. Find Last Filled Cell, Negate it, determine another cell and subtotal a column
    By kerl in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-30-2007, 06:50 PM

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