+ Reply to Thread
Results 1 to 3 of 3

if statement for multiple cells

Hybrid View

  1. #1
    Registered User
    Join Date
    03-06-2011
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    1

    Unhappy if statement for multiple cells

    I am trying to use below metioned formula, unfortunatelly it calculates only data in cell i6 instead of the mentioned range i6:u6

    {=IF(I6:U6=1,"Not Working",IF(I6:U6=2,"Partial",IF(I6:U6=3,"Other","ok")))}

    I would really appriciate help in this matter.

    Thank you.

  2. #2
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: if statement for multiple cells

    Quote Originally Posted by Marekw View Post
    I am trying to use below metioned formula, unfortunatelly it calculates only data in cell i6 instead of the mentioned range i6:u6

    {=IF(I6:U6=1,"Not Working",IF(I6:U6=2,"Partial",IF(I6:U6=3,"Other","ok")))}
    Say for example you have this formula in cell A1 and cell I6 = 1 and Cell J6 = 2 and cell K6 = 3 and the other cells in the range = 100. What do you expect/want to appear in cell A1?

    Is there a raking system whereby you want the scan the range for 1, 2 and 3 and if all appear withing the range then choose 1?

    It may help to describe what you want to achieve rather than post a formula. May be a good idea to upload a sample too describing what you want.
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  3. #3
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: if statement for multiple cells

    =IF(OR(I5:U5=1),"Not Working",IF(OR(I5:U5=2),"Partial",IF(OR(I5:U5=3),"Other","ok")))

    Entered with Ctrl + Shift + Enter

    This assumes only one possible answer, 1 or 2 or 3 or ok and not 1 & 2 & 3......if there's a possibility of more than one match then the If will take the order of the IF's in place, so in this instance if there was a 1 and a 2 you will get "not working" as it will take the first argument

    hope that helps

    PS my formula was based on the ranges I5:U5, obviously adjust to suit
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

+ 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