+ Reply to Thread
Results 1 to 17 of 17

Multi-Function Equation Using LOOKUP, VLOOKUP, MATCH, INDEX?

  1. #1
    Forum Contributor
    Join Date
    12-16-2014
    Location
    Riverside, IA
    MS-Off Ver
    2010
    Posts
    156

    Multi-Function Equation Using LOOKUP, VLOOKUP, MATCH, INDEX?

    Hello All,

    This is hard to articulate but here goes……I need a formula that can do the following:

    Data Inputs with Examples from Sheet 1:

    Body Weight: 166.5 (Already have this LOOKUP formula that selects the most current weight from a series of weigh-ins)
    Exercise Name: Incline Push Up
    Exercise Height #: 3 (= 20 inches)
    Unit of Measure Codes: W or T or J or B or P (All 5 of these designate the exercise is a bodyweight exercise instructing the formula to either utilize body weight or a % of it; the only remaining code, R, not associated with a body weight exercise would allow indirect input of a barbell weight referenced from another cell on Sheet 1)

    From an Array in Sheet 2:

    I have already plugged in all the data. Key is that formula must recognize the exercise name on sheet 1

    Formula Outputs in Sheet 1:

    Exercise Weight: 82 (166.5 x 49%; which is already calculated in the array on Sheet 2)

    Thank you,

    Patrick
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Multi-Function Equation Using LOOKUP, VLOOKUP, MATCH, INDEX?

    Long-winded, but it works. Someone may be able to provide a more concise method. Paste into D9 and drag across:

    Please Login or Register  to view this content.
    Hope this helps!
    Last edited by mcmahobt; 01-22-2015 at 04:34 PM.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Forum Contributor
    Join Date
    12-16-2014
    Location
    Riverside, IA
    MS-Off Ver
    2010
    Posts
    156

    Re: Multi-Function Equation Using LOOKUP, VLOOKUP, MATCH, INDEX?

    mcmahobt,

    Thanks for your quick solution! I cut and paste into my spreadsheet and after updating the sheet names from the generic "Sheet1" etc., I got a calculation error. Since this formula was entered into cell D9 on Sheet1 according to your instruction, I deleted that sheet name since it was already on that sheet - was that the correct thing to do?

    However cell D9 is blank, so shouldn't this formula go in cell C14 where this calculation should occur?

    My Formula Changes:
    =INDEX('Grading-Tables'!B$6:B$18,MATCH($C$9,INDIRECT('Grading-Tables'!&ADDRESS(6,7+IF($B$1="men",MATCH($B$2,'Grading-Tables'!$H$5:$M$5,0),MATCH($B$2,'Grading-Tables'!O5:T5,0)))&":"&ADDRESS(18,7+IF($B$1="men",MATCH($B$2,'Grading-Tables'!$H$5:$M$5,0),MATCH($B$2,'Grading-Tables'!$O$5:$T$5,0)))),0))

    Your Original Formula:
    =INDEX(Sheet2!B$6:B$18,MATCH($C$9,INDIRECT("Sheet2!"&ADDRESS(6,7+IF(Sheet1!$B$1="men",MATCH(Sheet1!$B$2,Sheet2!$H$5:$M$5,0),MATCH(Sheet1!$B$2,Sheet2!$O$5:$T$5,0)))&":"&ADDRESS(18,7+IF(Sheet1!$B$1="men",MATCH(Sheet1!$B$2,Sheet2!$H$5:$M$5,0),MATCH(Sheet1!$B$2,Sheet2!$O$5:$T$5,0)))),0))

    Thanks much,

    Patrick

  4. #4
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Multi-Function Equation Using LOOKUP, VLOOKUP, MATCH, INDEX?

    Since there is a lot of offsetting cell ranges going on in this formula, it would be hard to assist you without seeing how your actual file is setup.

  5. #5
    Forum Contributor
    Join Date
    12-16-2014
    Location
    Riverside, IA
    MS-Off Ver
    2010
    Posts
    156

    Re: Multi-Function Equation Using LOOKUP, VLOOKUP, MATCH, INDEX?

    mcmahobt,

    The actual file is attached.

    All of the involved cells, rows, columns are highlighted in orange to help locate them quicker:

    In CIRCUIT-BUILDER sheet:

    Parts of Row 55

    Parts of Row 391

    Parts of Row 560

    In GRADING-TABLES sheet:

    Array E36:H57

    Thank you!

    Patrick
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Multi-Function Equation Using LOOKUP, VLOOKUP, MATCH, INDEX?

    It looks like your Sheet2 from the previous workbook you attached is actually on Sheet4 of your new workbook. Some of the ranges are also off because of different cell locations.

  7. #7
    Forum Contributor
    Join Date
    12-16-2014
    Location
    Riverside, IA
    MS-Off Ver
    2010
    Posts
    156

    Re: Multi-Function Equation Using LOOKUP, VLOOKUP, MATCH, INDEX?

    Sheet 4 is not related to this formula but at first glance it appears that way. That's another complicated formula somewhat sorted out. By sending you the entire spreadsheet, it is easier to dial in the formula with the original cell coordinates. Sorry for the confusion!

  8. #8
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Multi-Function Equation Using LOOKUP, VLOOKUP, MATCH, INDEX?

    I realize you highlighted certain cells for the sake of making the process easier, but I am not logically following the process.

  9. #9
    Forum Contributor
    Join Date
    12-16-2014
    Location
    Riverside, IA
    MS-Off Ver
    2010
    Posts
    156

    Re: Multi-Function Equation Using LOOKUP, VLOOKUP, MATCH, INDEX?

    This formula was born out of the necessity to improve the following.

    Speeding up data entry by eliminating several steps which meant...

    Automatically calculating what % of their own body weight they are lifting with certain exercises rather than manually figuring it.

    Standardizing this % body weight so that it can be used to convert pounds lifted divided by time divided by heart rate into points

    So in the the Formulaic Exercise Adjustments section, this % body weight will display there; it will show up in the Previous Session Results section; And finally in the Session Recording Templates on Sheet 3.

  10. #10
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Multi-Function Equation Using LOOKUP, VLOOKUP, MATCH, INDEX?

    EverClever,

    I'd be happy to help more, but I'm not following your logic within your sheet. Your initial example was kept concise and to the point; however, I'm not sure I am able to accurately form a solution when I'm to reference multiple cells and ranges throughout your sheet.

    If you re-upload a sample that takes out extraneous data, I may be able to assist more.

  11. #11
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Multi-Function Equation Using LOOKUP, VLOOKUP, MATCH, INDEX?

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

    in D9 and drag horizontally.
    Last edited by Vikas_Gautam; 01-26-2015 at 03:05 PM.
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  12. #12
    Forum Contributor
    Join Date
    12-16-2014
    Location
    Riverside, IA
    MS-Off Ver
    2010
    Posts
    156

    Re: Multi-Function Equation Using LOOKUP, VLOOKUP, MATCH, INDEX?

    mcmahobt and Vikas_Gautam,

    My apologies to both of you as I just realized that I had originally sent the wrong spreadsheet So sorry for the mix up! The correct one is attached.

    Sincerely,

    Patrick

  13. #13
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Multi-Function Equation Using LOOKUP, VLOOKUP, MATCH, INDEX?

    This makes much more sense then. Assuming I interpreted your problem correctly, would something like this work in C14?

    Please Login or Register  to view this content.

  14. #14
    Forum Contributor
    Join Date
    12-16-2014
    Location
    Riverside, IA
    MS-Off Ver
    2010
    Posts
    156

    Re: Multi-Function Equation Using LOOKUP, VLOOKUP, MATCH, INDEX?

    mcmahobt,

    It works! However, it is not affected by anything or nothing in Cell E14 in the Circuit-Builder Sheet. So whether it is blank or any of the other code letters are used = same result. It should......

    = Cell G8 when Cell E14 = blank

    = 82 when Cell E14 = W or T or J or B or P (All 5 of these designate the exercise is a body weight exercise instructing the formula to either utilize body weight or a % of it; the only remaining code, R, not associated with a body weight exercise would allow indirect input of a barbell weight referenced from another cell on Sheet 1)

    Patrick

  15. #15
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Multi-Function Equation Using LOOKUP, VLOOKUP, MATCH, INDEX?

    This may help:

    Please Login or Register  to view this content.
    However, when you say you want "R" to correspond to another cell in Sheet1, I cannot amend the formula to reflect this unless an actual example is given. The above formula has been altered so that if cell E14 is left blank, C14 will equal G8.

  16. #16
    Forum Contributor
    Join Date
    12-16-2014
    Location
    Riverside, IA
    MS-Off Ver
    2010
    Posts
    156

    Re: Multi-Function Equation Using LOOKUP, VLOOKUP, MATCH, INDEX?

    That did it That unnamed sheet 1 cell reference will be G8 so that will work as you constructed it for that as well. Many thanks for all your help. I would have never figured this out on my own.


    PS To help me understand the syntax better, why are brackets,{}, used in a formula?

  17. #17
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Multi-Function Equation Using LOOKUP, VLOOKUP, MATCH, INDEX?

    It is hard coding for an array formula.

+ 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: 6
    Last Post: 04-30-2014, 02:42 AM
  2. Index + Match/Multi-Vlookup for Items with shared names
    By excelhelporfavor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-28-2013, 09:32 PM
  3. [SOLVED] Multi-conditional INDEX, MATCH, VLOOKUP... finding Lat & Long in a geographic square grid
    By heinemannj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-03-2013, 12:38 PM
  4. SOS:Return multiple values against multi criteria match and index function
    By nitesh_inin in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-26-2012, 05:45 PM
  5. Excel 2007 : Index, Match, or multi Vlookup
    By tlafferty in forum Excel General
    Replies: 3
    Last Post: 04-18-2012, 03:40 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