Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #16  
Old 11-03-2015, 03:42 AM
djrobst djrobst is offline Can I use vlookup to choose what forumula to use in a cell? Windows 7 64bit Can I use vlookup to choose what forumula to use in a cell? Office 2010 64bit
Novice
Can I use vlookup to choose what forumula to use in a cell?
 
Join Date: Oct 2015
Posts: 13
djrobst is on a distinguished road
Default

thanks, i just worked this out what I done wrong about a minute before got the subscription email telling me you replied. thanks for all your help



the formula that seems to work i settled with is

Quote:
=VLOOKUP(P2,INDIRECT("'[2015 Cordell Valuation Lookup Tables.xlsx]"&BK2&"'!$A:$I"),5,FALSE)
I realised that the indirect wasnt closed properly.

I'm still wondering what part the & sign plays on the BK2 reference. I've never seen it before? what does that do when I use it? or is it something purely for indirect?
Reply With Quote
  #17  
Old 11-03-2015, 03:58 AM
macropod's Avatar
macropod macropod is offline Can I use vlookup to choose what forumula to use in a cell? Windows 7 64bit Can I use vlookup to choose what forumula to use in a cell? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The ampersand (&) joins the expression preceding it with the one following it. With:
"'[2015 Cordell Valuation Lookup Tables.xlsx]"&BK2&"'!$A:$I"
there are thus three expressions being joined:
• "'[2015 Cordell Valuation Lookup Tables.xlsx]"
• BK2
• "'!$A:$I"
The first and last of these are literal strings; the second one retrieves the contents of BK2. So, if BK2 contains 'Data type 1', you end up with a VLOOKUP formula referencing:
"'[2015 Cordell Valuation Lookup Tables.xlsx]Data type 1'!$A:$I"
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #18  
Old 11-03-2015, 03:59 AM
djrobst djrobst is offline Can I use vlookup to choose what forumula to use in a cell? Windows 7 64bit Can I use vlookup to choose what forumula to use in a cell? Office 2010 64bit
Novice
Can I use vlookup to choose what forumula to use in a cell?
 
Join Date: Oct 2015
Posts: 13
djrobst is on a distinguished road
Default

thanks, was amazed i couldnt find anything that mentioned how the & worked when googling, just loads about the old Dollar sign! $$ thanks again. my sheet is going to do its own work when i finish this macro.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Would like to return a row rather than a cell using VLookup canajun Excel 7 12-10-2014 01:03 PM
VLOOKUP looking at another cell for its range Rich18144 Excel 1 06-24-2014 07:56 AM
Can I use vlookup to choose what forumula to use in a cell? trying to use vlookup to calculate several different situations in one cell heastlund Excel 3 11-21-2013 12:38 PM
Choose your footer? KenZu Word 9 03-08-2012 01:40 AM
need help with a forumula bigbosky32 Excel 1 11-07-2008 03:15 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:47 PM.


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