+ Reply to Thread
Results 1 to 2 of 2

Lookup for Range in formula

  1. #1
    Registered User
    Join Date
    08-10-2016
    Location
    California
    MS-Off Ver
    2010
    Posts
    2

    Lookup for Range in formula

    http://imgur.com/a/Tktba

    I have two tabs: "Inputs" and "Master Data". The values in D2:O7 of Master Data are derived from the Inputs tab as a calculation based upon the date of the column above and the corresponding percentage located in the range from Inputs!$C$3:$N$3.

    I want that range to be dynamic, based upon the job title in column B in the Master Data tab.
    Basically, the job title in D2 of Master Data is "I", therefore the range is correct in the formula. However, I want the range to change in D3 to Inputs!$C$4:$N$4 because the job title in column B is "II".

    How do I change my formula to lookup and output a range in this formula?
    Please Login or Register  to view this content.
    I believe all that I need to modify is the first parameter in the index function. Please let me know if you need me to clarify anything, I''m not sure if I explained everything properly. I'm hoping the pictures will clarify what I'm attempting to do.
    Thanks in advance for your help!!
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Lookup for Range in formula

    Hi, welcome to the forum

    What would some expected answers be there?

    Will this work for you?
    =IFERROR(IFERROR(IF(D$1>=$A2,INDEX(Inputs!$C$3:$N$3,MATCH($B2,Inputs!$A$3:$A$6,0),MATCH("month "&DATEDIF($A2,D$1,"ym")+1,Inputs!$C$2:$N$2,0)),0),Inputs!$N$3)*(VLOOKUP($B2,Inputs!$A$3:$B$6,2,FALSE)/12),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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: 2
    Last Post: 02-16-2016, 03:23 PM
  2. [SOLVED] VLOOKUP, gives #N/A error (if Range lookup=0) or wrong data (if Range lookup=empty)
    By Ebalinska in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 01-14-2016, 05:55 AM
  3. Lookup formula against a dynamic range
    By andrewc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-26-2013, 07:12 AM
  4. [SOLVED] range lookup and array formula
    By wellsw in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-26-2013, 12:57 AM
  5. [SOLVED] LOOKUP or IF Formula when cell is between a range
    By 19magic75 in forum Excel General
    Replies: 5
    Last Post: 06-25-2012, 01:04 PM
  6. formula to lookup a value in a range
    By richardmont in forum Excel General
    Replies: 4
    Last Post: 05-31-2006, 03:20 PM
  7. [SOLVED] Need formula to lookup a named range
    By DMDave in forum Excel General
    Replies: 5
    Last Post: 05-06-2006, 10:25 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