+ Reply to Thread
Results 1 to 2 of 2

How to count the number of 'values' in a cell

  1. #1
    Registered User
    Join Date
    07-11-2006
    Posts
    2

    How to count the number of 'values' in a cell

    Hi

    I am after something that seems simple, but I can't figure out a way to do it.

    If I have a single cell containing a list of values seperated by a comma (ie a csv list in a cell), how do I count the number of values. I figure it must be by counting the commas somehow and then adding one as the last doesn't have it, but there is no way to tell how many there will be.

    My cell contents look like this
    18911, 18801, 18825, 18482, 18941

    so I want to have another cell return the number 5.

    Does anyone have any ideas?

    Regards
    Sandi

  2. #2
    Registered User
    Join Date
    07-11-2006
    Posts
    2

    I think I have worked it out.

    I think I have the answer I think the following function calculation would work....

    if
    a1 contains 18911, 18801, 18825, 18482, 18941

    then the following could give me the number of values in the cell

    =LEN(A1)-LEN(SUBSTITUTE(A1,",",""))+1

+ 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