+ Reply to Thread
Results 1 to 9 of 9

Lookup, but "embedded"

Hybrid View

  1. #1
    Registered User
    Join Date
    08-04-2007
    Location
    London
    MS-Off Ver
    work: 2003, home: 2008 for Mac
    Posts
    32
    option one isn't an option, it has to be completely contained within the one file,

    I'll have a go at option two, ta

  2. #2
    Registered User
    Join Date
    08-04-2007
    Location
    London
    MS-Off Ver
    work: 2003, home: 2008 for Mac
    Posts
    32
    Hi guys, I've been having a think about this, how would I write this as a function, so that I can put =gltext(A1)?

    at some point I'll get round to learning VBA!

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    Hi again, Zonino.

    To use as a function, place this code into a standard module:
    Function FINDGL(rng As Range)
        Select Case rng.Text
            Case "1234-5678", "4567-8901"
                FINDGL = "Engineering"
            Case "2345-6789"
                FINDGL = "Production"
            Case "3456-7890"
                FINDGL = "Sales"
            Case Else
                FINDGL = ""
        End Select
    End Function

+ 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