+ Reply to Thread
Results 1 to 5 of 5

Help require to create a signature

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Help require to create a signature

    Hi friends,
    There is a list of teachers on ‘Information’ sheet.
    I want a signature on ‘Card’ sheet on the following conditions.
    If the name of teacher has a title/prefix ‘Mr.’ then there will be a signature starting with ‘Sir’
    Else
    The signature will start with ‘Madam’

    I have attached a workbook for your kind perusal.

    Thanking you,
    Attached Files Attached Files
    Sincerely,

    mso3

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,077

    Re: Help require to create a signature

    =IF(LEFT(A1,3)="Mr.","Sir","Madam")

    This will also turn any "Miss" into "Madam"
    Are you sure that's what you want?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: Help require to create a signature

    Hi,

    You can create the function for the same..

    Function MySign(Name As String)
    
        If InStr(1, Name, "Mr.", vbTextCompare) <> 0 Then
            MySign = "Sir: " & Name
        ElseIf InStr(1, Name, "Mrs.", vbTextCompare) <> 0 Or InStr(1, Name, "Ms.", vbTextCompare) <> 0 Then
            MySign = "Madam: " & Name
        Else
            MySign = "No Titles"
        End If
        
    End Function
    Here is your attachment..Sign.xlsm


    If your question is resolved, mark it SOLVED using the thread tools. Click on the star if you think some-1 helped you.
    Lokesh Kumar
    Stay Hungry.. Stay Foolish..
    _________________________________________________________
    Please Click STAR to Add Reputation if my/someone's answer helped!

  4. #4
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Help require to create a signature

    Hi Special-K,
    Perfect! It's working absolutely fine as per my requirement. Thank you,

    Hi LokeshKumar,
    Thank you for a function. It's a nice approach.

    Thank you to both of you.
    Last edited by mso3; 04-15-2015 at 07:09 AM.

  5. #5
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: Help require to create a signature

    If your question is resolved, mark it SOLVED using the thread tools. Click on the star if you think some-1 helped 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. Replies: 3
    Last Post: 04-15-2015, 09:34 PM
  2. Macro to create a signature
    By madbloke in forum Outlook Programming / VBA / Macros
    Replies: 4
    Last Post: 10-21-2011, 07:56 AM
  3. Create PDF from active worksheet, attatch to mail and add signature
    By Draikonis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-09-2010, 05:05 AM
  4. Create a signature field?
    By lightecho in forum Excel General
    Replies: 4
    Last Post: 04-12-2010, 08:43 AM
  5. trying to create a formula and require help.
    By Amste in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-24-2006, 04:35 PM

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