+ Reply to Thread
Results 1 to 5 of 5

Formula in cell messing up logical test

  1. #1
    Registered User
    Join Date
    11-07-2012
    Location
    nj
    MS-Off Ver
    excel 2007
    Posts
    68

    Formula in cell messing up logical test

    Hey,

    I've got a spreadsheet where I'm trying to identify where 2 criteria are true and count them. one column is Y N or blank. the other is numerical value, but it's the result of a couple layers of indexing.... so there is a formula living in that column.

    here's what I have:

    Please Login or Register  to view this content.
    AG13 has this living in it:

    Please Login or Register  to view this content.
    J13 has this:

    Please Login or Register  to view this content.
    in this case, AG 13 displays a Y, but J13 is blank. I look in the formula bar and see this:

    i cant logic.jpg

    is it reading the indigenous formula as being greater than 0? how would you get past this one?
    self taught and painfully ignorant

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,142

    Re: Formula in cell messing up logical test

    That would be because a space is less than zero.


    http://www.robelle.com/smugbook/ascii.html


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Formula in cell messing up logical test

    =if(or(j13<=0,j13=""),"",1)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,142

    Re: Formula in cell messing up logical test

    Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  5. #5
    Registered User
    Join Date
    11-07-2012
    Location
    nj
    MS-Off Ver
    excel 2007
    Posts
    68

    Re: Formula in cell messing up logical test

    actually, i just changed it from j13>0 to j13<>"" and it works now.

    thanks anyway though!

    I appreciate this place and youse guise.

+ 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