+ Reply to Thread
Results 1 to 4 of 4

Return blank cell for formula is there's a match in a column?

  1. #1
    Forum Contributor
    Join Date
    10-29-2004
    Posts
    291

    Return blank cell for formula is there's a match in a column?

    I use the following formula to check for an email address in a column and return a blank cell if there's a match.

    =IFERROR(IF(COUNTIF(DoNotEmail!A:A,A3),"",VLOOKUP(A3,AccountList!$A$1:$AA$1003195,16,FALSE)),"")

    I want to apply the same filter to this formula:

    =INDEX(AccountList!P:P,MATCH(A3,AccountList!A:A,0))

    I tried doing this:

    =IFERROR(IF(COUNTIF(DoNotEmail!A:A,A3),"",INDEX(AccountList!P:P,MATCH(A3,AccountList!A:A,0)),"")

    but it doesn't seem to work. Is there something wrong in that formula?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,703

    Re: Return blank cell for formula is there's a match in a column?

    I think you have a missing close-bracket - try this:

    =IFERROR(IF(COUNTIF(DoNotEmail!A:A,A3),"",INDEX(AccountList!P:P,MATCH(A3,AccountList!A:A,0))),"")

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Return blank cell for formula is there's a match in a column?

    Oops! Error on my part, pls ignore
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Contributor
    Join Date
    10-29-2004
    Posts
    291

    Re: Return blank cell for formula is there's a match in a column?

    Quote Originally Posted by Pete_UK View Post
    I think you have a missing close-bracket - try this:

    =IFERROR(IF(COUNTIF(DoNotEmail!A:A,A3),"",INDEX(AccountList!P:P,MATCH(A3,AccountList!A:A,0))),"")

    Hope this helps.

    Pete
    Yeah, I think that was it. I also removed the IFERROR since I really didn't need it in this case.

    =IF(COUNTIF(DoNotEmail!A:A,A3),"",INDEX(AccountList!P:P,MATCH(A3,AccountList!A:A,0)))

+ 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. Index/ Match Formula, How to return blank cell as a blank not 0
    By MDResearcher in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-24-2016, 08:40 PM
  2. Formula to match a cell with value in a column and return a specific value
    By code_excel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-20-2014, 12:50 AM
  3. [SOLVED] How to return value blank cell, if criteria do not match
    By devawad in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-25-2013, 08:14 AM
  4. [SOLVED] How to return value blank cell, if criteria do not match
    By devawad in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-25-2013, 05:21 AM
  5. Index/Match to return a blank cell
    By Nick_in_Dubai in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-26-2012, 06: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