+ Reply to Thread
Results 1 to 9 of 9

hlookup formula .

Hybrid View

  1. #1
    Registered User
    Join Date
    03-27-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    53

    hlookup formula .

    Hi,

    I need help with hlookup formula..

    =HLOOKUP(TEXT(B35,"mmm"),All!G:T,MATCH("Grand Total",All!A:A,0),FALSE)

    Jul Aug Sep Oct Nov Dec Jan Feb Mar Apr May Jun
    Cost/Mile #N/A


    Iam trying to use the above Hlookup formula under Jul(B35)

    In the All Sheet , the months column starts from G(Jul) and end at S (Jun)

    Iam trying to populate the Grand Total(Column A row 36) for each month.

    I believe the formula fails at the highlighted text in the formula.i tested the match and text formulas individually, they work finr.


    Any help appreciated .

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: hlookup formula .

    Hlookup is a horizontal reference and you're table array argument is using a vertical reference. Try changing the All!G:T part of your equation to something like this All!10:40.
    Don't just use the answers provided for you. Try to understand how it works by reverse engineering or asking about it.

    Please mark the thread as [SOLVED] (Thread Tools->Mark thread as Solved) when answered.
    If you're happy with an answer given, please click the * under the person's name to boost their reputation.

  3. #3
    Registered User
    Join Date
    03-27-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    53

    Re: hlookup formula .

    still getting an error

    it is evaluating as =HLOOKUP("Jul",All!$7:$18,36,False)

    Still error at the same position

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,959

    Re: hlookup formula .

    You need to post a sample workbook.
    What's in sheet ALL row 1 starting at column G? Is it actual dates (like "27 Jul 2015") or just strings such as "Jan", Jul", etc.?
    Ben Van Johnson

  5. #5
    Registered User
    Join Date
    03-27-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    53

    Re: hlookup formula .

    It's all Strings.... "Jul","Aug".....


    but the Data in All Sheet is a Pivot Table.


    Thanks,

  6. #6
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: hlookup formula .

    The MATCH() function is returning a value that will inform which row the hlookup will return a value from. In this case MATCH("Grand Total",All!A:A,0) is returning 36 but there are only 12 rows in your hlookup array as defined by All!7:18. With this in mind, try the following:

    Formula: copy to clipboard
    =HLOOKUP(TEXT(B35,"mmm"),All!7:18,MATCH("Grand Total",All!A7:A18,0),FALSE)

  7. #7
    Registered User
    Join Date
    03-27-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    53

    Re: hlookup formula .

    Hi Craig,

    Tried

    The GrandTotal (A36)... and the Jul(G6), the data values starts at (G7 to R36--- table array) iam trying to pull up the Grandtotal for the month of Jul located at G36.


    Thank you so much for helping me out.


    Hope iam clear.

  8. #8
    Registered User
    Join Date
    03-27-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    53

    Re: hlookup formula .

    Iam able to figure it out.

    this is what i i have used:

    =HLOOKUP(TEXT(B35,"mmm"),All!6:36,MATCH("Grand Total",All!$A$6:$A$36,0),FALSE)


    Thanks craig for giving me inputs to work around it.


    Appreciate all the help.

  9. #9
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: hlookup formula .

    I'm glad I was able to help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] HLOOKUP Formula Help
    By dmcf123 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-21-2014, 09:52 AM
  2. IF or HLOOKUP formula
    By elanum in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2013, 12:08 PM
  3. HLOOKUP Help. HLOOKUP links to Drop down list problems
    By finalmike in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-02-2013, 07:08 PM
  4. HLookup formula
    By gaurav_dey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-12-2010, 10:24 AM
  5. HLOOKUP in HLOOKUP, Base Estimate Table in Excel
    By gqdallas in forum Excel General
    Replies: 20
    Last Post: 10-19-2009, 01:41 PM
  6. Replies: 2
    Last Post: 10-08-2009, 09:51 PM
  7. HLOOKUP formula
    By ExcelNewby in forum Excel General
    Replies: 3
    Last Post: 11-04-2007, 09:46 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1