+ Reply to Thread
Results 1 to 3 of 3

logic test

  1. #1
    toolman
    Guest

    logic test

    What formula would I use to say: [M2] = [H2] if [K2=yes], [M2] = [J2] if
    [K2=no], when cells [M2], [H2], and [J2] are dollar amounts, and [K2] is
    actually the word "yes" or "no"?

  2. #2
    Peo Sjoblom
    Guest

    Re: logic test

    What if K2 is neither yes or no? If K2 is always either yes or no you only
    need one test

    =IF(K2="yes",H2,J2)

    if K2 can be blank

    =IF(K2="","",IF(K2="yes",H2,J2))


    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "toolman" <[email protected]> wrote in message
    news:[email protected]...
    > What formula would I use to say: [M2] = [H2] if [K2=yes], [M2] = [J2] if
    > [K2=no], when cells [M2], [H2], and [J2] are dollar amounts, and [K2] is
    > actually the word "yes" or "no"?



  3. #3
    toolman
    Guest

    Re: logic test

    Thanks so much! This was driving me cazy!

    "Peo Sjoblom" wrote:

    > What if K2 is neither yes or no? If K2 is always either yes or no you only
    > need one test
    >
    > =IF(K2="yes",H2,J2)
    >
    > if K2 can be blank
    >
    > =IF(K2="","",IF(K2="yes",H2,J2))
    >
    >
    > --
    > Regards,
    >
    > Peo Sjoblom
    >
    > (No private emails please)
    >
    >
    > "toolman" <[email protected]> wrote in message
    > news:[email protected]...
    > > What formula would I use to say: [M2] = [H2] if [K2=yes], [M2] = [J2] if
    > > [K2=no], when cells [M2], [H2], and [J2] are dollar amounts, and [K2] is
    > > actually the word "yes" or "no"?

    >
    >


+ 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