+ Reply to Thread
Results 1 to 4 of 4

countif & vlookup

  1. #1
    Forum Contributor
    Join Date
    05-09-2010
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    212

    countif & vlookup

    Hi all,


    I had get the correct answer if separate the formula (countif and vlookup)
    Once i combine it, answer become blank. Please advice.

    Formula :
    IF(C4="",IF(COUNTIF(M:M, C4&B4)=1,VLOOKUP(C4,I4:K4,2,0),""),"")

    Please refer to attachment.

    Thank you

    Regards,
    Attached Files Attached Files
    Last edited by Shermaine2010; 07-31-2011 at 07:19 AM.

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    1,252

    Re: countif & vlookup

    I think you want:

    =IF(C4<>"",IF(COUNTIF(M:M, C4&B4)=1,VLOOKUP(C4,I4:K4,2,0),""),"")
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Kalgoorlie Australia
    MS-Off Ver
    Excel 2007/10
    Posts
    251

    Re: countif & vlookup

    You could try
    =IF(C4="","",IF(COUNTIF(M:M,C4&B4)=1,VLOOKUP(C4,I4:K4,2,0)))
    regards
    peter

  4. #4
    Forum Contributor
    Join Date
    05-09-2010
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    212

    Re: countif & vlookup

    thanks you both.

+ 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