+ Reply to Thread
Results 1 to 4 of 4

Multiple IF logical tests

  1. #1
    Registered User
    Join Date
    02-14-2012
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Question Multiple IF logical tests

    Hi there! I am working on a system than needs to eliminate lines of data.

    I have used the function below to ID if a row (in this case 21) is not equal to the text in J37.

    =IF(G21<>$J$37,(SUM(J21:L21)))

    It works great: if it is not equal, it adds the numbers I need, and if it is, it comes back FALSE.

    However, I need it to check if G21 is not equal to two different cells: J37 and H37. If it is equal to either, I need it to come up FALSE. More over, I need this to work with up to 25 different checks.

    Is this possible?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Multiple IF logical tests

    =IF(AND(G21<>$J$37,G21<>$H$37),(SUM(J21:L21)))

    You can add many conditions in the AND... but perhaps if there is some pattern to the checks that you can define, it might be possible to shorten to one condition....
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-14-2012
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Multiple IF logical tests

    How would that work? I have a patter where I would want to add in every 3rd column.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Multiple IF logical tests

    Maybe a sample workbook might help visualize it?

    To attach a file to your post, you need to be using the main 'New Post' or 'New Thread' page and not 'Quick Reply'.
    To use the main 'New Post' page, click the 'Post Reply' button in the relevant thread.

    On this page, below the message box, you will find a button labelled 'Manage Attachments'.
    Clicking this button will open a new window for uploading attachments.

    You can upload an attachment either from your computer or from another URL by using the appropriate box on this page.
    Alternatively you can click the Attachment Icon to open this page.

    To upload a file from your computer, click the 'Browse' button and locate the file.

    To upload a file from another URL, enter the full URL for the file in the second box on this page.
    Once you have completed one of the boxes, click 'Upload'.

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

+ 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