Specific result from Vlookup

robinmech

New Member
Joined
Feb 25, 2016
Messages
37
Hi,

I,m trying to vlookup one cell value with the other. And I got the result also. But I want only one particular result if the cell values are matching. Rest results I want to keep blank even if its matching.

For example I have a list of drawing no's in first sheet and second sheet have the same drawing no's with the status. For eg: approved, Rejected, commented etc. So If drawing no's are matching then I need the only "approved" result in first sheet rest all matching results should be left blank.

Please help.

Thanks in advance
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
You are welcome. Looks like we have errand spaces around the entries in column 7 of REG, hence TRIM.

Thank you once gain.

Now I'm facing one more issue with the result. When I'm using pivot table, its counting the non blank cells which contain "approved" in the formula. How can I resolve this.
 
Upvote 0
You are welcome.

What is the formula? And what is your intent: not count the occurrences of "approve"?


Sorry for the delay in reply.

I used the formula like this.

=iferror(if(trim(vlookup(cell,name,col,0))=”Approved”,”Approved”,””),””)

And I'm getting the result also..l

But when I'm trying to count the occurrence of approved; getting the result form the blank cells also. because its counting the test from the formula also.

my formula is COUNTIF(range,"Approved")
 
Upvote 0
COUNTIF(range,"Approved")

won't count any blank.

Let's analyze: You used

=iferror(if(trim(vlookup(cell,name,col,0))=”Approved”,”Approved”,””),””)

then:

=COUNTIF(INDEX(name,0,col),"Approved")

must tell us how many times approved occurs.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,179
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top