Sandoval's SharePoint Spot

A personal collection of links, notes and shortcuts.

  •     
  • Biography
  • Bloggers I Follow
  • Links and More Links
  • Welcome
  • 9
    Feb 10

    Repeat a String of Characters

      Posted by Sandoval
      0 comments

    Result = **********

    =REPT(”*”,10)

    =IF(LEN(Number)<10,REPT(0,(10-LEN(Number)))&Number,TEXT(Number,”0?))

     

    This formula literally steps along as:

     

    If the length of [Number] is less than 10, create an amount of zero’s equaling the difference between 10 and the length of [Number] then display these zero’s followed by the [Number]. If the length of [Number] is not less than 10, display the number using the “TEXT()” formatting option to display it in a number format.

     

    Examples:

    Number = 12345
    Result = 0000012345

      Calculated Columns, Functions and Formulas
      Repeat Characters
     
  • 9
    Feb 10

    Hyperlink with Custom Text “href”

      Posted by Sandoval
      0 comments

    This formula was used with a CorasWorks rollup to display a custom link that says “Click Here”. It does not appear to work as a link in list’s native view.

    ==================================

    =IF(NameCTEcorp<>”",CONCATENATE(“<a target=new href=https://xxxxx.com/sites/sitename/”,NameCTEcorp,”>click here<br>to view</a>”),”")

      Calculated Columns, Functions and Formulas
      hyperlinks
     
  • 9
    Feb 10

    Need to link to a custom EDIT form or VIEW form.

      Posted by Sandoval
      0 comments
    Need a link to a custom form?  Create a link in a calculated column.  Grab the URL of the list you are in and append it with the record ID.
    =CONCATENATE(“https://XXXXXX.com/SiteName/Lists/ListName/EditForm2.aspx?ID=”,ID)
      Calculated Columns, Functions and Formulas
      Concatenate, hyperlinks
     
  • 9
    Feb 10

    Create a hyperlink with a label and not displayed as a URL string

      Posted by Sandoval
      0 comments
    Below is a sample from http://pathtosharepoint.wordpress.com/2008/09/01/how-to-open-hyperlinks-in-a-new-window-or-not/

     

    =CONCATENATE(”<DIV><a href=’”,”http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.”,Title,IF([Open in new window?]=TRUE,”‘ target=’_blank’ “,”‘”),”>”,Title,”</a></DIV>”)
      Calculated Columns, Functions and Formulas
      hyperlinks
     
  • 9
    Feb 10

    Convert date into text string for sorting: 2008-01

      Posted by Sandoval
      0 comments

    I often create this additional calculated date column so that I can easily sort content in a chronological order.

    The following formula converts a date into a String “YYYY-MM

    General Rules Are:

    If Null then “None Assigned”
    Else format as such 2008-12
    Here is the corrected applied formula:
    =IF([Effective Date]=”",”n/a”,TEXT(YEAR([Effective Date]),”0000″)&”-”&TEXT(MONTH([Effective Date]),”00″)
      Calculated Columns, Functions and Formulas
      calculated column, Date Field
     
  • 9
    Feb 10

    Reformat the date

      Posted by Sandoval
      0 comments

    Create a calculated column and input this formula.  I prefer to not have slashes and find periods are easier on the eyes.  You can change the Month and Year to be MM or MMM and YY YYYY respectively.  You can even omit the day.


    =TEXT(Date,”mmm.dd.yyyy”)

      Calculated Columns, Functions and Formulas
      Date Field
     
  • 9
    Feb 10

    Date Converted to DAY

      Posted by Sandoval
      0 comments

    How do you convert a date into a day of the week?

    Create a calculated column that contains…

    =TEXT([End Time],”dddd”)

      Calculated Columns, Functions and Formulas
      Date Field
     
  • 9
    Feb 10

    Calculate DATE Column to Filter for “Recent” entries

      Posted by Sandoval
      0 comments

    Found this on some blog.  My notes aren’t complete.  But the results are listed.

    Q: “I would like to view all entries within the last 30 days or greater.

    A: Temporarily create a text column [Today]. You will need to delete this column to see if the formula works. Every time you edit a formula that references [Today] you will have to… “  <don’t know where rest of text is>

    “You can now filter a list to show any items where the [calc column] equals one.”

    This was used in an Calendar.

    “=IF(([Today]-30)>([Start Time]-30),1,0)”

      Calculated Columns, Functions and Formulas
      Date Field
     
  • 8
    Feb 10

    Does a Cell Contain a Specific String of Characters?

      Posted by Sandoval
      0 comments

    Verify that a cell column contains a sting of text.  This formula basis calculation on cell content vs. the entire cell value.

    “=ISNUMBER(FIND(“”BD”",[Column1]))”

      Calculated Columns, Functions and Formulas
      Compare Values
     
  • 8
    Feb 10

    Clean Text – Removes all nonprintable characters

      Posted by Sandoval
      0 comments

    Type in the following formula in a Calculated Column. Replace [Column] with the column you want to reference.

     

    =CLEAN([Column])

     

      Calculated Columns, Functions and Formulas, List/Document Library
      Calculated Columns
     
  • «
  • 1
  • 2
Recent Posts
  • Can not add the user because a user with that name already exists …
  • With WSS3 (or MOSS 2007) and Outlook 2007, we have the ability to not only view activity from multiple calendar sources in one virtual calendar view, but we can also edit these SharePoint calendars directly from Outlook.
  • Illegal Characters
  • Using TODAY As a calculated column
  • How to Repair/Replace a broken SharePoint List Form
Recent Comments
    Tags

    Alerts Attachments Calculated Columns Calendar Calendars Checkbox Compare Values Concatenate Contains Crawl Customize Date Field Edit Page Error Folders Form Letter Formulas & Functions History hyperlinks If Then Statement Illegal Characters index indexing InfoPath LDAP Query Master Page Migrate Minutes Move Content Multiple Items Notes Office Outlook Integration Repeat Characters Server Limits SharePoint Designer Solid Line SSP stsadm Task Pane Today Truncate URL Visio Word Count

    Feed
    •    Posts Feed
    •    Comments Feed
    • Archives

      • September 2011
      • April 2011
      • October 2010
      • September 2010
      • August 2010
      • May 2010
      • April 2010
      • March 2010
      • February 2010
    • Categories

      • Best Practices
        • Browsers
        • I.T. Know How
        • Tips & Tricks
      • Blog Spots
        • Other Bloggers
      • Code Library
        • HTML
        • jQuery
      • Microsoft
        • Excel Services
        • Functions and Formulas
        • InfoPath
        • Office
        • SharePoint Designer
      • SharePoint
        • Calculated Columns
        • Calendars
        • Central Administration
        • Content Editor Web Parts
        • Dataview Web Parts
        • Document Libraries
        • Error Messages
        • List/Document Library
        • Master Pages
        • Page Layout
        • Search
        • Security
        • Server Limits
        • SharePoint Forms
        • SharePoint Server
        • SSO – Single Server Sign On
        • Web Parts
        • Workflow
      • SQL

    Copyright © Sandoval's SharePoint Spot