+ Reply to Thread
Results 1 to 3 of 3

IF Statements

  1. #1
    Registered User
    Join Date
    04-30-2012
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    88

    IF Statements

    Hi

    I've created an IF statement where I want to put people into 6 and then 12 month categories from when they started their job. For example, if they started on 10/06/2012 then they should be in 0-6 month category. So the statement I wrote was....

    =IF(AND(B2<=19/06/2012,B2>=18/12/2011),"0-6",IF(AND........

    the statement then continues with subsequent dates. The formula returrns with FALSE for a reason I can't work out and has an error saying

    Text Date with 2-Digit Year
    Convert XX to 19XX
    Convert XX to 20XX

    I've changed the dates in the formula and B2 to 2 digit years but still it doesn't work. In the end I resorted to replacing the Dates with their Number equivalent and it has worked but it's something I'll need to do again in the future so would like to be able to do it without resorting to that!

    Also, once the formulae with the numbers worked, I copied and pasted special Values into a new worksheet. For some reason the cells with 12-24 are returning the same "Text Date with 2-Digit Year" error, even though cell is formatted as text and it doesnt do it for any of the others - 0-6, 6-12, 24-36, 36-48.

    Can't get my head round it so any assistance greatly received!

    Thanks

    Steve

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF Statements

    Hi Steve

    It would be usefull for all of us, if you upload a sample workbook.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    04-30-2012
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    88

    Re: IF Statements

    Thanks Fotis. Cell B2 is the one with the original formula, B3-6 are the amended formula.

    Cheers

    Steve
    Attached Files Attached Files

+ 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