Problem with Vlook up formula

majhar420

New Member
Joined
Feb 25, 2014
Messages
20
Office Version
  1. 2010
Platform
  1. Windows
I put the the "vlookup" formula in customer Name Column. but it show

"#N/A"error

<tbody>
</tbody>

 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
OK.it works .but why vlookup formula does not work here.

Hello I'm glad the formula Workks
The VLOOK works only if the value that you search is located on the lefft of the table
in your case if the value was in Column H (left of the table) the VLOOKUP would work but in you case the value was in the middle of the table (column I)
So if you wnat use VLOOKUP you need to move column H to Column I
like this IFERROR(VLOOKUP(B2,$H$2:$K$10,2,0),"")



Book1
HIJK
1MOV_ORDER_NOCUSTOMER_NAMEMOVE_WAREHOUSE_ORG_NAMEREGION_NAME
2MO/SCOU/426733M/S Md. AlamgirDaudkandi GhatComilla
3MO/SCOU/426713M/S Saudia TradersDaudkandi GhatComilla
4MO/SCOU/430378Mannan TradersDaudkandi GhatComilla
5MO/SCOU/431383Mannan TradersDaudkandi GhatComilla
6MO/SCOU/436771A.R TradersDaudkandi GhatNoakhali
7MO/SCOU/432962Abedin TradersDaudkandi GhatNoakhali
8MO/SCOU/426697Abu Naser & SonsDaudkandi GhatNoakhali
9MO/SCOU/431480Abu Naser & SonsDaudkandi GhatNoakhali
10MO/SCOU/426715Amin & SonsDaudkandi GhatNoakhali
Truck Wise Trip
 
Upvote 0
Anyway you can improve your first formula with IFERROR function to avoid to see #N/A
=IFERROR(INDEX($H$2:$H$10,MATCH(B2,$I$2:$I$10,0)),"")
let me know!
 
Last edited:
Upvote 0
Here a modified VLOOKUP formula that should work for you

=VLOOKUP(B2,CHOOSE({1,2},$I$2:$I$10,$H$2:$H$10),2,0)
 
Upvote 0
You are welcome and thank you for your feedback!
 
Upvote 0

Forum statistics

Threads
1,216,105
Messages
6,128,859
Members
449,472
Latest member
ebc9

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