+ Reply to Thread
Results 1 to 5 of 5

Array search (Vlookup, Hlookup, AverageIF) function help please

  1. #1
    Registered User
    Join Date
    05-08-2018
    Location
    Netherlands
    MS-Off Ver
    MS 2013
    Posts
    15

    Array search (Vlookup, Hlookup, AverageIF) function help please

    Hi,
    I have a table in Sheet (Advanced Process Signature), with a date in cell O1, and a range of tags in N2:N97.

    In Sheet (Data) I have in cells B1:AO1 the same tags (as column headings), with dates in A2:A8642 (multiple date entries for each date).

    I want a formula to return the average value (Sheet APS, cells O2:O97) for all values on selected Date (O1), for the corresponding tag (N2:N97) (i.e. looking across the 2nd sheet to find the tag, then looking down to find the dates)

    This works based on averaging the total data set for the tag number (entered as an array formula)

    Please Login or Register  to view this content.
    But when I try to also add the date portion I get it wrong. Can someone help with the second lookup part?

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Array search (Vlookup, Hlookup, AverageIF) function help please

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    05-08-2018
    Location
    Netherlands
    MS-Off Ver
    MS 2013
    Posts
    15

    Re: Array search (Vlookup, Hlookup, AverageIF) function help please

    Attached.
    Data is an example of raw data download.
    APS is the sheet with formulas on it.
    Attached Files Attached Files

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Array search (Vlookup, Hlookup, AverageIF) function help please

    Hi

    Try in O7 copied down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It could be simplified if the values in column A of the Data were not Date/Time numbers, and just dates. If so lose the second citeria in the function and change the first criteria to a simple $O$1

    Obviously change the row number 2523 as necessary. Better still create a dynamic range name for column B and substitute the range name in place of the $B$2:$B$2523
    Last edited by Richard Buttrey; 11-06-2018 at 11:15 AM.

  5. #5
    Registered User
    Join Date
    05-08-2018
    Location
    Netherlands
    MS-Off Ver
    MS 2013
    Posts
    15

    Re: Array search (Vlookup, Hlookup, AverageIF) function help please

    Perfect! Works great thanks Richard!

+ 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. Replies: 0
    Last Post: 09-08-2017, 09:31 AM
  2. Problem: HLOOKUP function as an array formula not working!
    By TomU in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-10-2014, 03:04 AM
  3. [SOLVED] Search in Table vlookup / Hlookup or INDEX - MATCH command
    By dalaie in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-13-2012, 07:42 AM
  4. [SOLVED] VLookup / HLookup Wildcard Search ?????
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-30-2006, 05:25 PM
  5. [SOLVED] Vlookup / Match / Hlookup / Array fundtion or What?
    By Winger in forum Excel General
    Replies: 5
    Last Post: 11-22-2005, 04:25 PM
  6. [SOLVED] HLookup? or an array function??
    By Murph in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-11-2005, 01:06 PM
  7. [SOLVED] How do I find a value in an array (VLOOKUP? HLOOKUP?)
    By M Skabialka in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-10-2005, 11:06 PM

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