+ Reply to Thread
Results 1 to 4 of 4

IF AND OR - an easy one!

  1. #1
    Registered User
    Join Date
    06-14-2005
    Posts
    22

    IF AND OR - an easy one!

    Trying to acheive the following :

    IF b2 = NEG and C2 = P-1 THEN "TO" ,OR If b2 = POST and c2= " " THEN "TO", ELSE "FROM"

    Ive tried to generated what should be an easy form. but to no avail

  2. #2
    Registered User
    Join Date
    06-14-2005
    Posts
    22
    also, on a date cell, how can i return the week number of the MONTH back?

    eg 01/07/06 = week 1
    22/07/06 = week 4 and so on..?

  3. #3
    Registered User
    Join Date
    01-11-2005
    Posts
    64

    Lightbulb

    Use this:
    =IF(OR(AND(B2="NEG", C2="P-1"), AND(B2="POST", C2=" ")), "TO", "FROM")

    pay particular attention to the - C2=" " - above. C2=" " and C2="" are different. Use the latter if C2 is blank and use the first one if C2 has a space in it.

    For your second problem with week numbers I couldn't find a simple solution so instead I used a combination of DAY and VLOOKUP functions. Basically I used DAY to return the day of the week and then used the VLOOKUP to lookup the corresponding week number from a separately created table. I've attached an example file for your convenience.

    If anyone has a more noble solution please post!
    Attached Files Attached Files
    Last edited by anar_baku; 09-01-2006 at 06:38 AM.

  4. #4
    Registered User
    Join Date
    08-17-2006
    Posts
    22
    If you can get away with your dates being text, then

    =ROUNDUP((LEFT(A1,2)/7),0)

    Assuming your "text" date is in A1

+ 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