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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
It's giving me all the values in column 7 if criteria matches.

For Eg: Approved, RWC, Not Approved etc. I want to ignore all other results except "Approved"

When "approved" is returned by the VLOOKUP bit, the IF bit also returns "approved"; for any other result invluding #N/A, we get blank.

Does this return "approved" when VLOOKUP does so?

=IFERROR(IF(TRIM(VLOOKUP(A2,REG,7,0))="APPROVED","APPROVED",""),"")
 
Upvote 0
When "approved" is returned by the VLOOKUP bit, the IF bit also returns "approved"; for any other result invluding #N/A, we get blank.

Does this return "approved" when VLOOKUP does so?

=IFERROR(IF(TRIM(VLOOKUP(A2,REG,7,0))="APPROVED","APPROVED",""),"")


Now it's working perfectly. Thank you
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,603
Members
449,038
Latest member
Arbind kumar

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