+ Reply to Thread
Results 1 to 5 of 5

IF formula with logical " Less than Or Equal To" NOT WORKING (Data is week number)

  1. #1
    Registered User
    Join Date
    08-13-2012
    Location
    Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    72

    IF formula with logical " Less than Or Equal To" NOT WORKING (Data is week number)

    Hello !

    I can't believe that such a thing, not work???

    I have too values (week number.year)...
    I want compare which number is greater but if statement don't work

    Please look attachment !!!!

    Tnx a lot really !!!
    Attached Files Attached Files
    Last edited by zeko90; 02-28-2013 at 02:50 PM.

  2. #2
    Registered User
    Join Date
    12-11-2012
    Location
    cincinnati, ohio
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: IF formula with logical " Less than Or Equal To" NOT WORKING (Data is week number)

    Dates are a tricky thing to work with....

    Your "Comparison Column(D)" should just have the formula =if(value(a2)<value(today()),1,0).

  3. #3
    Registered User
    Join Date
    08-13-2012
    Location
    Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    72

    Re: IF formula with logical " Less than Or Equal To" NOT WORKING (Data is week number)

    Hi.... Yes i know but with this formula i can't help because i need week for after calculation.
    I have find a solution is very funny

    First column is right 2013,2013... i get year
    then the second and third one is just week number now and propose ..
    Then i just do if if ..........

  4. #4
    Forum Contributor
    Join Date
    09-24-2012
    Location
    York, England
    MS-Off Ver
    Excel 2003/07/10
    Posts
    165

    Re: IF formula with logical " Less than Or Equal To" NOT WORKING (Data is week number)

    Hello
    The problem is that your dates are expressed as strings and there are no string values in column B that are greater than the one in C.
    They can be equal, which is where 0 is returned.
    As a number date, 10.2013 is greater than 9.2013, but as a string it isn't, because 1st character 9 is greater than 1st character 1.
    You can resolve this by formatting the weeks to two digits, so the comparison is 10.2013 is then greater than 09.2013.

    HTH

  5. #5
    Registered User
    Join Date
    08-13-2012
    Location
    Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    72

    Re: IF formula with logical " Less than Or Equal To" NOT WORKING (Data is week number)

    Hey Hercules wooow works great tnx

+ 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