+ Reply to Thread
Results 1 to 5 of 5

extract an element out of a single-cell array

  1. #1
    Registered User
    Join Date
    09-08-2020
    Location
    Santa Cruz
    MS-Off Ver
    I dont know
    Posts
    2

    extract an element out of a single-cell array

    Is there a formula that I can use to extract an element from an array that exists within one cell?

    Capture.PNG

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: extract an element out of a single-cell array

    Are you required to use Excel formulas only, or can you use a different spreadsheet? Google Sheets has a SPLIT() function that will do this easily =SPLIT(F1,"[],",TRUE,TRUE) will split the text into the three numeric elements (SPLIT() function documentation: https://support.google.com/docs/answer/3094136?hl=en ). Then use the INDEX() function to choose one element =INDEX(SPLIT(...),2) to get the 2nd number.

    Any chance that will work for you?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,408

    Re: extract an element out of a single-cell array

    Quote Originally Posted by mfragugl View Post
    Is there a formula that I can use to extract an element from an array that exists within one cell?
    What element? Exactly what are you trying to do? Can you provide a little more explanation of your ultimate goal?

  4. #4
    Registered User
    Join Date
    09-08-2020
    Location
    Santa Cruz
    MS-Off Ver
    I dont know
    Posts
    2

    Re: extract an element out of a single-cell array

    Thanks MrShorty! That split function was exactly what I needed!

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: extract an element out of a single-cell array

    Glad that worked for you. To my knowledge, Google Sheets is the only spreadsheet that supports the SPLIT() function, so this solution will only work in Google Sheets (at least until the other spreadsheets incorporate this function). As long as you don't need this to export to Excel or other spreadsheet, then it appears to work for you.

+ 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. Access a specific element of a cell array
    By dhhamilton0 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-21-2019, 06:34 PM
  2. Replies: 12
    Last Post: 01-14-2014, 01:56 PM
  3. macro to sum all element in array and output it in one cell of excel.
    By mithil in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-14-2010, 04:28 PM
  4. Extract a single element from an array formula
    By JDavies in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-04-2009, 09:10 PM
  5. Replies: 4
    Last Post: 05-09-2009, 04:45 AM
  6. Array problem: Key words-Variant Array, single-element, type mismatch error
    By davidm in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-09-2005, 01:54 AM
  7. Array problem: Key words-Variant Array, single-element, type mismatch error
    By davidm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2005, 12:30 AM

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