+ Reply to Thread
Results 1 to 3 of 3

How can I expand the IF formula to take into account additional parameters?

  1. #1
    Registered User
    Join Date
    05-21-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    How can I expand the IF formula to take into account additional parameters?

    I am using the formula =IF(COUNTIF($A:$A,C1),B1,"") to return the details of column B that appear when details are matched in columns A and C.

    How would I expand this to also list the details in column B when contents of column C does not appear in column A?

    Thank you.

  2. #2
    Forum Contributor
    Join Date
    09-11-2009
    Location
    Paris
    MS-Off Ver
    Excel 2003
    Posts
    102

    Re: How can I expand the IF formula to take into account additional parameters?

    Hi,
    Try
    =IF(COUNTIF($A:$A,C1)=0,B1,"")
    Hope this helps!
    Last edited by duanzhuanming; 05-22-2013 at 05:03 AM.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,333

    Re: How can I expand the IF formula to take into account additional parameters?

    If I have understood correctly, you would have:

    =IF(COUNTIF($A:$A,C1),B1,B1)

    But the test is then redundant so you might just as well have: =B1


    If you mean, as the alternate to the version in the OP, then maybe:

    =IF(COUNTIF($A:$A,C1),"",B1)

    Or

    =IF(COUNTIF($A:$A,C1)=0,B1,"")


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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