+ Reply to Thread
Results 1 to 5 of 5

What am I doing wrong?

  1. #1
    Jeff
    Guest

    What am I doing wrong?

    Here is the formula I came up with but it doesn't do what I want it to.

    =IF(C2>47.999,IF(D2>143.999,"22222",IF(C2<47.998,IF(D2<143.998,"33333"))))

    If I type 48 or higher in C2 and 144 or higher in D2 it returns "22222"
    (this is what i want), but when I type anything lower in either column it
    returns "FALSE". I want it to return "33333".

    In other words, I want it to return "22222" only when both C2 and D2 are
    true, but when either one of them are not true, I want "33333" returned.

    Thank you,
    Jeff

  2. #2
    Dave Peterson
    Guest

    Re: What am I doing wrong?

    You have one guess at your post in .misc.

    Jeff wrote:
    >
    > Here is the formula I came up with but it doesn't do what I want it to.
    >
    > =IF(C2>47.999,IF(D2>143.999,"22222",IF(C2<47.998,IF(D2<143.998,"33333"))))
    >
    > If I type 48 or higher in C2 and 144 or higher in D2 it returns "22222"
    > (this is what i want), but when I type anything lower in either column it
    > returns "FALSE". I want it to return "33333".
    >
    > In other words, I want it to return "22222" only when both C2 and D2 are
    > true, but when either one of them are not true, I want "33333" returned.
    >
    > Thank you,
    > Jeff


    --

    Dave Peterson

  3. #3
    Bill Kuunders
    Guest

    Re: What am I doing wrong?

    =IF(AND(C2>47.999,D2>143.999),"22222","33333")

    Regards
    Bill K



    "Jeff" <[email protected]> wrote in message
    news:[email protected]...
    > Here is the formula I came up with but it doesn't do what I want it to.
    >
    > =IF(C2>47.999,IF(D2>143.999,"22222",IF(C2<47.998,IF(D2<143.998,"33333"))))
    >
    > If I type 48 or higher in C2 and 144 or higher in D2 it returns "22222"
    > (this is what i want), but when I type anything lower in either column it
    > returns "FALSE". I want it to return "33333".
    >
    > In other words, I want it to return "22222" only when both C2 and D2 are
    > true, but when either one of them are not true, I want "33333" returned.
    >
    > Thank you,
    > Jeff




  4. #4
    Ken Wright
    Guest

    Re: What am I doing wrong?

    =1111*(OR(C2<48,D2<144)+2)

    --
    Regards
    Ken....................... Microsoft MVP - Excel
    Sys Spec - Win XP Pro / XL 97/00/02/03

    ----------------------------------------------------------------------------
    It's easier to beg forgiveness than ask permission :-)
    ----------------------------------------------------------------------------

    "Jeff" <[email protected]> wrote in message
    news:[email protected]...
    > Here is the formula I came up with but it doesn't do what I want it to.
    >
    > =IF(C2>47.999,IF(D2>143.999,"22222",IF(C2<47.998,IF(D2<143.998,"33333"))))
    >
    > If I type 48 or higher in C2 and 144 or higher in D2 it returns "22222"
    > (this is what i want), but when I type anything lower in either column it
    > returns "FALSE". I want it to return "33333".
    >
    > In other words, I want it to return "22222" only when both C2 and D2 are
    > true, but when either one of them are not true, I want "33333" returned.
    >
    > Thank you,
    > Jeff




  5. #5
    Jeff
    Guest

    Thanks Everyone! NT

    Thanks,
    Jeff

+ 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