Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-12-2016, 04:31 AM
monisankar monisankar is offline HLookup Formula Windows 7 32bit HLookup Formula Office 2007
Novice
HLookup Formula
 
Join Date: Dec 2016
Posts: 3
monisankar is on a distinguished road
Default HLookup Formula


I have some date in Sheet1 of colom A, B, C..... like below
A B C
1. YR_2008 YR_2009 YR_2010
2. 04/01/2008 07/02/2009 12/01/2010
3. 17/02/2008 12/03/2009 17/02/2010
4. 19/03/2008 15/04/2009 03/04/2010
5. 10/04/2008 11/05/2009 21/05/2010
6. 05/05/2008 13/06/2009 30/06/2010

Now I have create name range like YR_2008 (i.e. A2:A20), YR_2009 (i.e. B2:B20), YR_2010 (i.e. C2:C20).

In F1 I have put an year 2010 to pull down the date of the year, so that I have used a formula in F2 like below

=hlookup(F1,"YR_"&F1,2,Flase)
result show "#Value!"

help me what should be the correct formula
Attached Files
File Type: xlsx Problem with HLOOKUP.xlsx (9.5 KB, 9 views)
Reply With Quote
  #2  
Old 12-12-2016, 05:35 AM
xor xor is offline HLookup Formula Windows 10 HLookup Formula Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Take a look at the attached.
Attached Files
File Type: xlsx Problem with HLOOKUP_2.xlsx (10.5 KB, 8 views)
Reply With Quote
  #3  
Old 12-12-2016, 06:18 AM
xor xor is offline HLookup Formula Windows 10 HLookup Formula Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Or, if you prefer HLOOKUP:

=HLOOKUP("YR_"&$F$1,$A$1:$C$6,$G$1,0)

with 2 in G1.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
HLookup Formula Match, Vlookup or Hlookup from Word music_al Word VBA 4 02-17-2016 04:20 AM
Indirect with hlookup jamesjts Excel 3 01-05-2016 09:13 AM
HLookup Formula Vlookup/hlookup Ntema Excel 4 10-14-2013 08:49 AM
HLookup Formula HLOOKUP, if,? OR MACRO bobbyarnold Excel 22 01-14-2013 08:44 AM
HLOOKUP with VLOOKUP into different Doc freeman Excel 0 09-18-2012 02:04 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:43 PM.


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