+ Reply to Thread
Results 1 to 4 of 4

Is there a way to use HLOOKUP to return a value derived by a formula?

  1. #1
    Registered User
    Join Date
    09-01-2019
    Location
    Singapore
    MS-Off Ver
    Office 365 ProPlus
    Posts
    23

    Is there a way to use HLOOKUP to return a value derived by a formula?

    I have an array with names in the headings that are derived from a separate array on a different worksheet. I'm using an HLOOKUP to find my name in the headings and return a numeric result from the column underneath my name. The problem is, my name in the array is derived from a formula, so the HLOOKUP is not finding it. How would I modify my HLOOKUP formula?

    - In the attached example, my first worksheet is called "Pre-Draft." F15 contains my name, and it is hard coded as text, so no problem there.

    - My second sheet is called "Roster Picks." My name is found in H1. This is NOT a text cell. My formula retrieves my name from an array on the "Pre-Draft" worksheet, and must remain as a formula since the order of the names in the Pre-Draft array can change:

    =IF('Pre-Draft'!$F5="","",'Pre-Draft'!$F5)

    If I use an HLOOKUP to find my name and return a cell reference, the formula does not find my name because it comes from a formula. How do I get around this? My hlookup is in cell C12, and returns the wrong number because it is not finding my name. The correct result should be "29", not "5".
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,306

    Re: Is there a way to use HLOOKUP to return a value derived by a formula?

    Removed by JT
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,306

    Re: Is there a way to use HLOOKUP to return a value derived by a formula?

    Try

    =HLOOKUP('Pre-Draft'!$F$15,'Roster Picks'!$A$1:$X$9,6,0)

  4. #4
    Registered User
    Join Date
    09-01-2019
    Location
    Singapore
    MS-Off Ver
    Office 365 ProPlus
    Posts
    23

    Re: Is there a way to use HLOOKUP to return a value derived by a formula?

    That fixed it. Thanks.

+ 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. HLOOKUP formula to return all the values in that column
    By SPA812 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-03-2020, 03:59 AM
  2. [SOLVED] hlookup or match formula to return a range of cells
    By spittingfire in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-10-2019, 05:14 PM
  3. Replies: 2
    Last Post: 07-29-2016, 07:40 PM
  4. [SOLVED] This code does not work if D12 value is derived by a formula.
    By omega0010 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-04-2013, 01:59 PM
  5. User entered value or formula derived one
    By twinfinfandango in forum Excel General
    Replies: 2
    Last Post: 02-24-2009, 04:27 PM
  6. Replies: 6
    Last Post: 01-25-2005, 12:06 PM
  7. Value from a derived formula
    By harisri in forum Excel General
    Replies: 0
    Last Post: 01-11-2005, 12:44 PM

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