Vlookup problem in checking university category

Kevincwk2000

Board Regular
Joined
Mar 23, 2008
Messages
82
I work in school and need to check the university information from the provided sheet yearly.
for convenient, I try to create a formula for checking but not fully successful.

Is there any guy to provide an solution?

the formula is
=IF(ISBLANK(VLOOKUP(C7,'mainland U'!$B$6:$E$118,2,0)),IF(ISBLANK(VLOOKUP(C7,'mainland U'!$B$6:$E$118,3,0)),IF(ISBLANK(VLOOKUP(C7,'mainland U'!$B$6:$E$118,4,0)),"211","DFCB"),"DFCA"),"C9")

The result are:-
NoName (English)by formularesult compareby Category lookup
71Peking UniversityC9correctC9
24Chongqing UniversityDFCAcorrectDFCA
45Hunan UniversityDFCBcorrectDFCB
36Hainan University211correct211
Bohai UniversityC9incorrectnot found
 

Attachments

  • Utable.png
    Utable.png
    25.1 KB · Views: 13

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi
Try
Excel Formula:
 =If( Vlookup(...)....=0
Instead of is blank
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
.. the best solution often varies by version.
If you have the LET & FILTER functions, try ..

Excel Formula:
=LET(a,{1,1,1},f,FILTER('mainland U'!$C$6:$E$118,'mainland U'!$B$6:$B$118=C7,a),IF(OR(f=a),"not found",FILTER({"C9","DFCA","DFCB"},f<>"","211")))
 
Upvote 0
If you have the LET & FILTER functions, try ..

Excel Formula:
=LET(a,{1,1,1},f,FILTER('mainland U'!$C$6:$E$118,'mainland U'!$B$6:$B$118=C7,a),IF(OR(f=a),"not found",FILTER({"C9","DFCA","DFCB"},f<>"","211")))
thanks Peter,
The formula looks work, but the function LET, FILTER are new to me, I have to investigate how they work.
 
Upvote 0

Forum statistics

Threads
1,215,523
Messages
6,125,318
Members
449,218
Latest member
Excel Master

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