+ Reply to Thread
Results 1 to 6 of 6

Having issue with an IF formula

  1. #1
    Registered User
    Join Date
    02-24-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    19

    Having issue with an IF formula

    Hello,

    I had a question on an if formula which I pasted below. I recently added the first IF (And) portion of the formula and when I did that, it gives me false. My intention is if the row meets the first test, to continue in the process of the if statement and produce a number. I've included my workbook with the formula before (see J3) and after (see J2) I added the first test. Any insight? Thanks!

    =IF(AND($M$3&$M$6&$M$9&$M$12<>"",NOT(ISNUMBER(SEARCH(A3,$M$3&$M$6&$M$9&$M$12)))),N(J2),IF(AND($M$15&$M$18&$M$21&$M$24<>"",NOT(ISNUMBER(SEARCH(B3,$M$15&$M$18&$M$21&$M$24)))),N(J2),IF(AND($M$27&$M$30&$M$33&$M$36<>"",NOT(ISNUMBER(SEARCH(C3,$M$27&$M$30&$M$33&$M$36)))),N(J2),IF(AND($M$39&$M$42&$M$45&$M$48<>"",NOT(ISNUMBER(SEARCH(D3,$M$39&$M$42&$M$45&$M$48)))),N(J2),IF(AND($M$51&$M$54&$M$57&$M$60<>"",NOT(ISNUMBER(SEARCH(E3,$M$51&$M$54&$M$57&$M$60)))),N(J2),IF(AND($M$39&$M$42&$M$45&$M$48<>"",NOT(ISNUMBER(SEARCH(D3,$M$39&$M$42&$M$45&$M$48)))),N(J2),IF(AND($M$51&$M$54&$M$57&$M$60<>"",NOT(ISNUMBER(SEARCH(E3,$M$51&$M$54&$M$57&$M$60)))),N(J2),IF(AND($M$63&$M$66&$M$69&$M$72<>"",NOT(ISNUMBER(SEARCH(F3,$M$63&$M$66&$M$69&$M$72)))),N(J2),N(J2)+1))))))))
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Having issue with an IF formula

    what exactly are you trying to do here?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    02-24-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Having issue with an IF formula

    Based on what I select as criteria in Column M, Column O will spit out anything from column G that meets all the criteria selected. However, I also want to a test on min budget and capacity (M75 and M78).If the amounts in either one of those cells are higher than the amounts in column F&H, it would eliminate that line. But I don't want the formula to produce a false, but treat it the same if it didn't meet the other criteria (i.e, I would select a neighborhood - River North, but that line is in another neighborhood).

    The formula works great before I tried to add the additional piece. J3 has my original formula where J2 is with my addition.

    Thanks!

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Having issue with an IF formula

    If you use the formula auditing window (click the cell with the formula, then click the Fx to the left of the formula bar), you will see that you have no "else" option for your 1st IF.

    if this part is NOT true...
    IF(AND(F2>=$M$78,H2>=M75)
    then what do you want to happen? (you need to add that at the end)

  5. #5
    Registered User
    Join Date
    02-24-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Having issue with an IF formula

    This was extremely helpful! Thanks!!!

    Marking thread as solved. Have a great night.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Having issue with an IF formula

    Glad it worked for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] IF Formula Issue
    By Leecedwards in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-11-2014, 08:34 AM
  2. Lookup Formula Issue, Search issue
    By kperitz in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-07-2014, 01:50 PM
  3. If formula issue
    By punter in forum Excel General
    Replies: 2
    Last Post: 09-17-2008, 04:29 PM
  4. Issue with Formula
    By oliver79 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-21-2008, 08:58 AM
  5. #DIV/0! issue - cant get rid of it within another formula
    By skymaster in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-12-2007, 09:36 AM

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