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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,911
Messages
6,122,194
Members
449,072
Latest member
DW Draft

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