+ Reply to Thread
Results 1 to 3 of 3

IF Function with 2 variables

  1. #1
    Registered User
    Join Date
    03-30-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    90

    IF Function with 2 variables

    Hi,

    I wonder if someone can help me.

    I have the following formula:

    =IF('Sheet 1 '!E7=PRODUCTS!$C$4,1,0)

    and what i want the formula to do is when isheet 1 e7 is the same as product c4 AND when the value in that row in column J is bigger than 0, then put 1 if not 0.

    I only want a zero in that cell when both conditions are true.

    Thanks

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: IF Function with 2 variables

    Maybe
    =IF(and('Sheet 1 '!E7=PRODUCTS!$C$4,'Sheet 1 '!J7>0),0,1)

  3. #3
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: IF Function with 2 variables

    Maybe: =IF(AND('Sheet 1'!E7=PRODUCTS!$C$4,PRODUCTS!$J$4>0),1,0)

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

+ 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