+ Reply to Thread
Results 1 to 4 of 4

Using if statement for cells with VLOOKUP equations

  1. #1
    Registered User
    Join Date
    12-20-2013
    Location
    Oregon
    MS-Off Ver
    Excel 2010
    Posts
    11

    Using if statement for cells with VLOOKUP equations

    I have two cells with the following equations:
    H3=IFERROR(VLOOKUP(A3&TEXT($A$1,"m/d/yyyy"),'CLABSI_Raw'!$A$1:$M$300,13,FALSE)," ")
    I3=IFERROR(VLOOKUP(A3&TEXT($A$1,"m/d/yyyy"),'CLABSI_Raw'!$A$1:$M$300,10,FALSE)," ")

    In an adjacent cell, I am trying to use an if statement
    J3=if(and(H3<1,I3<1),"yes","no")

    I am not getting a return in cell J3.

    Would you happen to know what I am doing wrong?

  2. #2
    Forum Contributor
    Join Date
    04-24-2007
    Location
    NYC
    MS-Off Ver
    2k3/2k7/2010
    Posts
    270

    Re: Using if statement for cells with VLOOKUP equations

    " " = white space
    "" = Nothing, which can be interpreted as 0

  3. #3
    Registered User
    Join Date
    12-20-2013
    Location
    Oregon
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Using if statement for cells with VLOOKUP equations

    I made the changes you suggested, but I still don't get a value in J3. Any other thoughts?

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Using if statement for cells with VLOOKUP equations

    I added a set of () to your formulae. ( is added just after VLOOKUP and the ) just before CLABSI..... and they both worked:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The formula in J3 then worked just fine.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. Vlookup & Formula with Multiple Math Equations?
    By maverickballa24 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-19-2013, 04:23 PM
  2. Average if statement for specific years without separate equations
    By C2k in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-31-2012, 09:24 PM
  3. [SOLVED] different equations based on if statement
    By tom.gabriele in forum Excel General
    Replies: 4
    Last Post: 04-05-2012, 12:25 PM
  4. Different Equations for Multiple Cells
    By AmsterDan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-24-2011, 07:26 PM
  5. Dragging Cells with Equations
    By supernova5271 in forum Excel General
    Replies: 1
    Last Post: 10-23-2008, 03:04 PM

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