+ Reply to Thread
Results 1 to 4 of 4

Resolved >>> Comma separated values in a cell

  1. #1
    Registered User
    Join Date
    10-24-2007
    Posts
    5

    Resolved >>> Comma separated values in a cell

    Skill level - Newbie

    I have a cell in a table containing user entered Comma separated values.
    How can I process it so that user entered values can be referred to just like in an array? Is it possible to do something like cell.value[0]?

    For example --
    cell A1 has values red, blue, green. B1 has a formula that can refer to "red" in A1 by writing something like A1.value[0]

    Is it possible to have a function return values to another cell reference than from the cell where it is called?

    Like a UDF called functionIndividualValues(InputcellReference, OutputCellReference)
    functionIndividualValues(A1, A2) meaning that the input string for the function is in A1 and the output should go to the cell A2

  2. #2
    Valued Forum Contributor
    Join Date
    10-15-2007
    Location
    Home
    MS-Off Ver
    Office 2010, W10
    Posts
    373
    Hi

    How can I process it so that user entered values can be referred to just like in an array?
    A solution is to use a UDF, like

    Please Login or Register  to view this content.
    With you example, with A1 with red, blue, green, in B1

    =CSV_Item(A1,2)

    gives blue.

    Another solution would be a formula. It could get the element index from a cell.

    Remark: I did not include error processing

    Is it possible to have a function return values to another cell reference than from the cell where it is called?
    Used as a UDF, no. Like a worksheet formula a UDF is passive, it simply calculates the value of the cell. A UDF cannot take any active action like inserting a row, deleting a cell, writing another cell, etc.

  3. #3
    Registered User
    Join Date
    10-24-2007
    Posts
    5
    Wonderful.
    Thanks much.

  4. #4
    Registered User
    Join Date
    10-24-2007
    Posts
    5
    @lecxe
    --But your function had to be modifed this way to run without error

    Please Login or Register  to view this content.
    Thanks

+ 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