+ Reply to Thread
Results 1 to 7 of 7

Using the IF function: Why does this forumla not work?

  1. #1
    icc56 via OfficeKB.com
    Guest

    Using the IF function: Why does this forumla not work?

    Why does this forumla not work? =IF(J2=N14:N26,"A",IF(J2=N27:N40,"B",IF
    (J2=N41:N52,"C")))

  2. #2
    bj
    Guest

    re: Using the IF function: Why does this forumla not work?

    It needs ot be entered as an array formula, but you also need to tell it
    whether you want the J2= to be an "Or" or an "and"
    in other words do you want it to have to equal any of the cells or all of
    the cells.
    if or use
    =IF(or(J2=N14:N26),"A",IF(or(J2=N27:N40),"B",IF(or(J2=N41:N52),"C")))
    and enter as an array control-shift-enter
    for and just repace the ors with ands


    "icc56 via OfficeKB.com" wrote:

    > Why does this forumla not work? =IF(J2=N14:N26,"A",IF(J2=N27:N40,"B",IF
    > (J2=N41:N52,"C")))
    >


  3. #3
    icc56 via OfficeKB.com
    Guest

    re: Using the IF function: Why does this forumla not work?

    Thank you so much. It still doesn't work for me. I've even changed to =IF
    (OR(J2=45-57),"A",IF(OR(J2=31-44),"B",IF(OR(J2=19-30),"C"))) and it still
    doesn't work. I want the cell to read "A" if the J2 totals 45-57, etc.

  4. #4
    bj
    Guest

    re: Using the IF function: Why does this forumla not work?

    If I am reading this correctly you want The cell to ="A" if J2 is between 45
    and 57
    try
    =if(J2>57,"",if(J2>44,"A",if(J2>30,"B",if(J2>18,"C"))))
    of
    if(And(J2<=57,J2>=45),"A",if(and(J2<=44,J2>=31),"B",if(and(J2<=30,J2>=19),"C","")))

    "icc56 via OfficeKB.com" wrote:

    > Thank you so much. It still doesn't work for me. I've even changed to =IF
    > (OR(J2=45-57),"A",IF(OR(J2=31-44),"B",IF(OR(J2=19-30),"C"))) and it still
    > doesn't work. I want the cell to read "A" if the J2 totals 45-57, etc.
    >


  5. #5
    icc56 via OfficeKB.com
    Guest

    re: Using the IF function: Why does this forumla not work?

    Still need help on this one if anyone has any ideas.

    --
    Message posted via http://www.officekb.com

  6. #6
    icc56 via OfficeKB.com
    Guest

    re: Using the IF function: Why does this forumla not work?

    BJ - thank you! This one works!

    --
    Message posted via http://www.officekb.com

  7. #7
    icc56 via OfficeKB.com
    Guest

    re: Using the IF function: Why does this forumla not work?

    You are a god!

    --
    Message posted via http://www.officekb.com

+ 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