Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-28-2012, 12:50 PM
kkerr kkerr is offline Vlookup Windows XP Vlookup Office 2007
Novice
Vlookup
 
Join Date: Aug 2012
Posts: 6
kkerr is on a distinguished road
Default Vlookup

Can somebody please help me with a vlookup formula? If A1 matches E1, I need it to insert F1 into B (I tired to copy and paste the table in, but it smooshed it all together)

A1 - 001
B1 - #N/A
C1 - 53729
D1 - 5024722001
E1 - 101


F1 - 20B

The formula I created is =VLOOKUP(A1,Divisions,2,FALSE)
Divisions = E & F

What am I doing wrong?
Attached Files
File Type: xls Test File.xls (32.5 KB, 11 views)

Last edited by kkerr; 08-29-2012 at 06:55 PM. Reason: Attaching a test file for example
Reply With Quote
  #2  
Old 08-29-2012, 05:34 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Vlookup Windows 7 64bit Vlookup Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Nothing I can see at first glance. What is going wrong?
You can post a sample sheet by clicking on "Go Advanced" and "Manage Attachments" in the additional Options window
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 08-29-2012, 06:56 PM
kkerr kkerr is offline Vlookup Windows XP Vlookup Office 2007
Novice
Vlookup
 
Join Date: Aug 2012
Posts: 6
kkerr is on a distinguished road
Default

I attached a file if it helps
Reply With Quote
  #4  
Old 08-29-2012, 11:27 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Vlookup Windows 7 64bit Vlookup Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Firstly, your the range named Divisions is not defined.
Select col E and F and type "Divisions" (no quotes) in the space left of the formula bar

Quote:
If A1 matches E1, I need it to insert F1 into B
In your exxample col A contains precinct values not values from col E

Is that what you want need ?
If so, try
Code:
=INDEX($E$2:$E$200,MATCH(A2,$F$2:$F$200,0),0)
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #5  
Old 08-30-2012, 12:16 AM
Kevin@Radstock Kevin@Radstock is offline Vlookup Windows 7 32bit Vlookup Office 2010 32bit
Office 365
 
Join Date: Feb 2012
Posts: 94
Kevin@Radstock is on a distinguished road
Default

The thing with a VLOOKUP, it looks up to the right. So in your example the lookup table is E2:F200, If you swap the Columns around it should work. Otherwise use the INDEX & MATCH, to which I prefer.
Reply With Quote
  #6  
Old 08-30-2012, 02:14 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Vlookup Windows 7 64bit Vlookup Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

@Kev

FYI you can also use VLOOKUP to look left like this

Code:
=VLOOKUP("x",CHOOSE({1,2},D2:D10,A2:A10),2,0)
( example unrelated to present thread)
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #7  
Old 08-31-2012, 01:23 AM
Kevin@Radstock Kevin@Radstock is offline Vlookup Windows 7 32bit Vlookup Office 2010 32bit
Office 365
 
Join Date: Feb 2012
Posts: 94
Kevin@Radstock is on a distinguished road
Default

Yes I know you can use the CHOOSE Function. I was pointing out to the OP the way the VLOOKUP works!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup Vlookup ibrahimaa Excel 5 03-04-2012 11:24 AM
Vlookup ibrahimaa Excel 8 01-03-2012 09:32 PM
Vlookup Karen615 Excel 4 09-12-2011 02:30 PM
Vlookup Can i do this with a VLookup? foodstudent Excel 1 01-21-2011 12:34 AM
Using IF & VLOOKUP together junction Excel 7 11-18-2010 05:15 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:15 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft