Simple vlookup giving me #N/A error

Linzexcel

New Member
Joined
Sep 8, 2022
Messages
12
Office Version
  1. 365
Platform
  1. Windows
I am trying to do a very simple vlookup function but it only gives me the #N/A error. I am simply trying to pull a person's name that matches to an account name. I cannot see why it would give me this error??? Do i need to add a match function? It seems so simple and shouldn't need anything else?
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Can you post some sample data along with the formula you are using.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Sales PersonAccountSales PersonAccount
Person 1A
#N/A​
A
Person 1AB
Person 1BC
Person 1BD
Person 1CE
Person 1CF
Person 1DG
Person 1EH
Person 1EI
Person 1EJ
Person 1F
Person 2G
Person 2G
Person 2G
Person 2H
Person 2H
Person 2H
Person 2I
Person 2I
Person 2J

=VLOOKUP(E2,A:B,1,0)

So I am trying to make a clean list without all of the duplicates. Does this make sense?
 
Upvote 0
If you just want the distinct values, how about
Fluff.xlsm
ABCDE
1Sales PersonAccountSales PersonAccount
2Person 1APerson 1A
3Person 1APerson 1B
4Person 1BPerson 1C
5Person 1BPerson 1D
6Person 1CPerson 1E
7Person 1CPerson 1F
8Person 1DPerson 2G
9Person 1EPerson 2H
10Person 1EPerson 2I
11Person 1EPerson 2J
12Person 1F
13Person 2G
14Person 2G
15Person 2G
16Person 2H
17Person 2H
18Person 2H
19Person 2I
20Person 2I
21Person 2J
22
Data
Cell Formulas
RangeFormula
D2:E11D2=UNIQUE(FILTER(A2:B200,A2:A200<>""))
Dynamic array formulas.
 
Upvote 0
Hmmm, that is an interesting formula, I have never used it before but unfortunately it is not working. It simply gets rid of all the duplicate accounts but just listed out all of the sales employees without regard to which account they belong to.
 
Upvote 0
Wait, nevermind...I see what you are doing and what I did wrong. It did actually work how you intended...the only problem is I have a 3rd column of data that involves $ spent and that's I need it to be more of a vlookup style to match it to where I have each account listed.
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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