#Name? Error

Gerhard7777777

New Member
Joined
Dec 28, 2016
Messages
2
Hi,

I have a column with names in. I want to reflect a certain number connected to the name in the next column.
I have tried numerous formulas which result in a #name? error. This is my formula below. Please help? :confused::confused:


VLOOKUP(W6,TRUE,IFS(W6=Bushbuckridge,"1",Thaba Chweu,"2",Mbombela,"3",Nkomazi,"4",Umjindji,"5",Dr JS Moroka,"6",Thembisile,"7",Victor Khanye,"8",Emalahleni,"9",Steve Tshwete,"10",Emakhazeni,"11",Dipaleseng,"12",Govan Mbeki,"13",Msukaligwa,"14",Albert Luthuli,"15",Lekwa,"16",Pixley Ka Seme,"17",Mkhondo,"18",""))
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
You need to put the inverted commas around the names, not the numbers. Like this:

=VLOOKUP(W6,TRUE,IFS(W6="Bushbuckridge",1,"Thaba Chweu",2, etc.
 
Upvote 0
Which version of Excel are you using> Does it support the IFS function?
 
Last edited:
Upvote 0
Also note that using TRUE for the second argument of your VLOOKUP won't work.
 
Upvote 0

Forum statistics

Threads
1,215,745
Messages
6,126,626
Members
449,323
Latest member
Smarti1

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