Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-22-2015, 02:53 AM
shabbaranks shabbaranks is offline Trying to get value from second sheet based on a cell Windows 7 64bit Trying to get value from second sheet based on a cell Office 2007
Advanced Beginner
Trying to get value from second sheet based on a cell
 
Join Date: Mar 2011
Posts: 89
shabbaranks is on a distinguished road
Default Trying to get value from second sheet based on a cell

Hi,



Im not sure if vlookup is the best method or even if Im going about it incorrectly.

I have 2 sheets - sheet 1 is where the data is entered and sheet 2 is where the data to select from is located (and will be hidden)

I have a drop down which selects a value from sheet 2 and places it into sheet 1. What Im then trying to do is get other records relating to that selected record and populate it in a different cell - would I use a vlookup for this and if so how because when Ive tried it returns #N/A

The code used is
Code:
=VLOOKUP(Sheet1!Q:Q,Sheet1!B12,Sheet1!A:A,FALSE)
Sheet1Q:Q is the value I want
Sheet1!B12,Sheet1!A:A is the value which relates to the value I want
FALSE as I understand is it that I want an exact match?

Thanks
Reply With Quote
  #2  
Old 07-22-2015, 04:41 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Trying to get value from second sheet based on a cell Windows 7 64bit Trying to get value from second sheet based on a cell Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,943
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

The syntax for VLOOKUP (exact match) is =VLOOKUP(what-to-look-for-1st column-of-the-lookup-range,lookup-range,column-number-in-the-range, false)
Now if you want to retrieve a series of adjacent cells this is possible with an array formula.
Eventually post a sample sheet?
__________________
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 07-22-2015, 05:56 AM
shabbaranks shabbaranks is offline Trying to get value from second sheet based on a cell Windows 7 64bit Trying to get value from second sheet based on a cell Office 2007
Advanced Beginner
Trying to get value from second sheet based on a cell
 
Join Date: Mar 2011
Posts: 89
shabbaranks is on a distinguished road
Default

Quote:
Originally Posted by Pecoflyer View Post
The syntax for VLOOKUP (exact match) is =VLOOKUP(what-to-look-for-1st column-of-the-lookup-range,lookup-range,column-number-in-the-range, false)
Now if you want to retrieve a series of adjacent cells this is possible with an array formula.
Eventually post a sample sheet?
Thanks, I quickly wrote some sample data to see if I was doing it correctly and I was so I think the problem is with the columns of data. The result I am after is formatted as general and the source data is formatted as text - would this result in #N/A? And if so how would I over come it?

Thanks
Reply With Quote
  #4  
Old 07-23-2015, 12:20 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Trying to get value from second sheet based on a cell Windows 7 64bit Trying to get value from second sheet based on a cell Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,943
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

Post a small sample so we can have a look?
__________________
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 07-23-2015, 12:33 AM
shabbaranks shabbaranks is offline Trying to get value from second sheet based on a cell Windows 7 64bit Trying to get value from second sheet based on a cell Office 2007
Advanced Beginner
Trying to get value from second sheet based on a cell
 
Join Date: Mar 2011
Posts: 89
shabbaranks is on a distinguished road
Default

Hi,
I got the Vlookup working by creating linked cells of the data and standardising it to "text" filtering out the content I didn't want. Seems to work really well
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Hide/Un-hide a worksheet based on cell on another sheet. easton11 Excel Programming 1 06-02-2015 12:07 PM
Move data from one sheet to the next available row or cell of another sheet bwwalker08 Excel 0 04-10-2015 11:51 AM
Trying to get value from second sheet based on a cell Help Coloring a cell in Sheet one if data is missing from another sheet Aeducan Excel 1 06-22-2014 04:49 PM
Change formula cell range based on cell value Scoth Excel 4 10-25-2012 07:51 AM
copy cell from sheet 2 to sheet 3 macro slipperyjim Excel Programming 1 02-18-2010 01:31 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:07 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