Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2002
    Location
    Kirkland, WA
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    SharePoint: Calculated Column Formula (Nesting Help)

    Running MOSS 2007 and have created a calculated column. I could use a hand coming up with a proper formula for it. There are 3 states the calculation needs to display (New, Refresh, <blank>). Here is what the formula needs to accomplish:

    • IF ORD >= TODAY, "New"
    • IF ORD < TODAY & NRD >= TODAY, "Refresh"
    • Else, ""

    I know how to do a formula for one or the other IF/THEN/ELSE statements (see below), but don't know how to combine them.

    Code:
    =IF(ORD>=TODAY),"New","" 
    =IF(AND(ORD<TODAY,[NRD]>=TODAY),"Refresh","")
    I've tried putting these together in various ways but so far no joy. This is what I've attempted to use but obviously don't have the syntax correct...

    Code:
    =IF(([ORD]>=[TODAY],"New"),(AND([ORD]<[TODAY],[NRD]>=[TODAY]),"Refresh"))
    How should I write this better?

    The second question I have is where can I find a good source on educating myself on this? So far I've found very good information on the functions supported by SharePoint but they only explain what each of the Functions, Operators & Constants are. Nesting them is where I stumble. Assistance on this would be very appreciated.
    Richard L. Palmer

    If trees could scream would we be so cavalier to cut them down?
    We might. If they screamed all the time, and for no good reason...

  • #2
    New Coder
    Join Date
    Jul 2002
    Location
    Kirkland, WA
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Anything?
    Richard L. Palmer

    If trees could scream would we be so cavalier to cut them down?
    We might. If they screamed all the time, and for no good reason...

  • #3
    New Coder
    Join Date
    Jul 2002
    Location
    Kirkland, WA
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well, if anyone's interested, here's the syntax for what I was looking for:

    Code:
    =IF([ORD]>=[TODAY],"New",(IF(AND([ORD]<[TODAY],[NRD]>=[TODAY]),"Refresh","")))
    And I found this great resource of logical functions: http://office.microsoft.com/en-us/sh...032621033.aspx

    Basically, I just needed a 2nd "IF" function...
    Richard L. Palmer

    If trees could scream would we be so cavalier to cut them down?
    We might. If they screamed all the time, and for no good reason...


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •