Results 1 to 14 of 14

How do I get this Function to Work in G-Docs

Threaded View

  1. #1
    Registered User
    Join Date
    05-29-2012
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    31

    How do I get this Function to Work in G-Docs

    Please help! need to get this formula to work on google docs.

    Got some great help in getting an excel formula that references cell B1 with a list of names on A1:A833 .

    Entered The following into module 1:

    Function GetNames(Paragraph As Range, Names As Range) As String
    Dim Cell As Range
    GetNames = ","
    For Each Cell In Names
        If Cell <> "" Then
            NameArray = Split(Cell, ",")
            If InStr(Paragraph, Trim(NameArray(0))) > 0 And InStr(GetNames, "," & Trim(NameArray(0)) & ",") = 0 Then
                GetNames = GetNames & Trim(NameArray(0)) & ","
            End If
        End If
    Next Cell
    If Len(GetNames) > 0 Then GetNames = Mid(GetNames, 2, Len(GetNames) - 2)
    End Function

    Entered :
    =getnames(B1,A1:A833)

    into cell 3. and it works great! But I can't upload it to googledocs with the macros enabled. Anyone know how to enter this into to google or have a formula that does something similar?

    Excel sheet attached. THANK YOU SO MUCH!

    Copy of wuzwrong-2.xlsm
    Last edited by jeffreybrown; 07-12-2013 at 10:11 AM. Reason: As per Forum Rule #3, please use code tags…Thanks.

Thread Information

Users Browsing this Thread

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

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