+ Reply to Thread
Results 1 to 5 of 5

Having trouble pulling the correct values based on several criteria

  1. #1
    Registered User
    Join Date
    11-20-2013
    Location
    United States
    MS-Off Ver
    MS Office 365
    Posts
    20

    Having trouble pulling the correct values based on several criteria

    Hi All!

    I'm having a little bit of trouble creating a formula for my situation. I am using this for a weight training template for clients of mine. On one sheet, I have a list of exercises in the A Column. In the first row I have a list of set and repetition possibilities. On the other sheet I have daily exercise prescription with drop down menus for both exercise selection and the set and rep possibility. I would like the heading titled "1RM" on the 2nd sheet to return the correct value based on the exercise choice and the set and repetition choice. I'm attaching a sample sheet which has the problem in it.

    The actual values I would like to be returned are from F2:AW300 in Sheet1 and the formula in Sheet 2 D6

    The criteria I would like:

    Sheet1 A2:A300=Sheet2 A6

    Sheet1 F1:AW1=Sheet2 C6

    I would really appreciate your all's help with my problem and thank you to anyone who takes the time to lend a hand!

    Thanks,

    Kevin
    Attached Files Attached Files

  2. #2
    Spammer
    Join Date
    02-04-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    190

    Re: Having trouble pulling the correct values based on several criteria

    Can this help you
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-20-2013
    Location
    United States
    MS-Off Ver
    MS Office 365
    Posts
    20

    Re: Having trouble pulling the correct values based on several criteria

    Jean-Paul,

    Thank you for your reply! Yes this is helpful, it seems to work! I was curious what the words in the formula indicate? "DataTemplate" and "ValSetXRep" for instance. Are these corresponding to range values?

  4. #4
    Spammer
    Join Date
    02-04-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    190

    Re: Having trouble pulling the correct values based on several criteria

    Name range, they automatically expand as data is being attached.


    How note that my native language is not English

  5. #5
    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: Having trouble pulling the correct values based on several criteria

    Jean, just an observation - regular named ranges do not expand as you add data. You used Dynamic range names, and yes, these do adjust for extra data - nice trick

    However, in this case, this will work just as well, and will cater for growing rows, without the need for a volatile named range...
    =IFERROR(INDEX(Sheet1!$A:$AW,MATCH(Sheet2!$A6,Sheet1!$A:$A,0),MATCH(Sheet2!$C6,Sheet1!$A$1:$AW$1,0)),"")

    copied down
    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: 15
    Last Post: 11-25-2014, 08:14 AM
  2. Help with pulling text / values with based on multiple criteria
    By bkuchen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2014, 01:33 PM
  3. Replies: 1
    Last Post: 10-01-2014, 04:50 PM
  4. Pulling info based on certain criteria
    By Arcadia in forum Excel General
    Replies: 4
    Last Post: 08-07-2014, 06:30 PM
  5. [SOLVED] Formula not pulling the correct data based on a drop down list
    By pleasesmile in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-27-2013, 10:46 AM

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