+ Reply to Thread
Results 1 to 10 of 10

Need help with multiple conditions and table

  1. #1
    Registered User
    Join Date
    06-18-2016
    Location
    Charlotte, NC
    MS-Off Ver
    MS 365
    Posts
    30

    Need help with multiple conditions and table

    Hi all. I am sorry if I am not seeing a similar thread on here anywhere. I am trying to make an excel file that will allow me to score some testing faster. The testing is based on statistical norms within an age group. For example, if an examinee is between the age of 20 and 39 I need to use the norms for age 20-39. I am making worksheets for each age group; that is simple enough. However, the data is on a table where raw score on the left most column needs to match to the raw score on the top most row. I am having difficulty with a formula that looks at the age to switch to the proper worksheet and then matching the data. I have attached an example of the worksheet entitled "Help" As an example, if the raw score of List Learning is "25" and the raw score for Story Memory is "12," I need to have a formula that will find the cell where the two meet, i.e. N28. My goal is to have a separate sheet to put raw scores on that will then use the formula to populate the fields on a more professional looking scoresheet. Any suggestions?
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,607

    Re: Need help with multiple conditions and table

    Please Login or Register  to view this content.
    Replace: Raw Score & Mem Score with cell addresses
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    06-18-2016
    Location
    Charlotte, NC
    MS-Off Ver
    MS 365
    Posts
    30

    Re: Need help with multiple conditions and table

    Thank you! That works perfectly. There are six different age groups (20-39, 40-49, 50-59, 60-69, 70-79, & 80-89) that have different norms. Would an If/Then statement work to direct the index/match formula based on an age input on the raw score sheet? Thanks again for the help!

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,607

    Re: Need help with multiple conditions and table

    On each age group sheet, select cells $B$3:$Z$43 and create named ranges corresponding to the sheet, e.g.: _20_39 & _40_49 (notice the underscores).

    Since the list/mem score ranges both begin with zero, the INDEX formula can be simplified to
    =INDEX('20-39'!B3:Z43,Raw Score+1,Mem Score+1)

    To access the different age group sheets, use a data validation dropdown with the sheet names as the source.

    Modify the INDEX formula to:
    Please Login or Register  to view this content.
    On the sample sheet, F2 holds the sheet name, G2 the List Score and H2 the mem score.
    20-39 --> INDIRECT("_"&SUBSTITUTE(F2,"-","_")) --> _20_39, i.e., the named range per sheet passed to INDEX.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-18-2016
    Location
    Charlotte, NC
    MS-Off Ver
    MS 365
    Posts
    30

    Re: Need help with multiple conditions and table

    Thank you; that makes sense. However, there's an order that the assessment is scored and I'm trying to make it as close to the form as the examiners are already used to completing by hand. For some reason I am not able to post an attachment; I've attached screen shotsScore Conversion Page.png. Not all of the data has been input yet, and the formulas on the Supp Discrep Analysis Page have not been put in yet. I was hoping to have the examiners fill in demographics and total scores on the Score Conversion page. The Score sheet and the Supp Discrep Analysis Page are hopefully going to autopopulate. Once the Score Conversion Page is complete, I was hoping to put a macro button on the page that would print the Score sheet and the Supp Discrep Analysis. All of the worksheets excepting the first three are going to be hidden to keep people from messing up the data. With the layout that I have, is there anyway to have the formula search for the appropriate age worksheet based on the input from the Score Conversion Page, cell G4? I'm sure I'm complicating it much more than it needs to be, but I do appreciate your help.

  6. #6
    Registered User
    Join Date
    06-18-2016
    Location
    Charlotte, NC
    MS-Off Ver
    MS 365
    Posts
    30

    Re: Need help with multiple conditions and table

    Sorry for the confusion; it was not letting me attach the file...not even under the Advanced options. Attached please find the file with all of the worksheets to give you an idea of what it is that I am hoping to do. Thank you for all of your help.
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,607

    Re: Need help with multiple conditions and table

    sheet score conversion page V1selects a sheet name:
    Please Login or Register  to view this content.
    cell D3 returns the conversion value via:
    Please Login or Register  to view this content.
    D6, D9,D12,D15 will use the same formula, but replacing the List Learning/Story Mem address with Fig Copy/Line Orientation, etc.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-18-2016
    Location
    Charlotte, NC
    MS-Off Ver
    MS 365
    Posts
    30

    Re: Need help with multiple conditions and table

    Thank you so much! I apologize for the delay in responding. I have been traveling extensively. I greatly appreciate your help!

  9. #9
    Registered User
    Join Date
    06-18-2016
    Location
    Charlotte, NC
    MS-Off Ver
    MS 365
    Posts
    30

    Re: Need help with multiple conditions and table

    Thank you again for your help. I had to make a slight change to the formula because the ages were messing up. I added a 30-39 page and edited the formula to:

    =CHOOSE(INT(G4/10),"'20-29'!","'20-29'!","'30-39'!","'40-49'!","'50-59'!","'60-69'!","'70-79'!","'80-89'!")


    For the final touch I want to add a button that the user can click and it will print two pages, the Score Sheet and the Supp Discrep Analysis Page. I'm getting the Cannot run the macro error and it's driving me quite mad. I've used print button macros before (after xladept on this forum taught me); however, nothing I've tried works. Any thoughts? I tried building the macro from this code; I've even tried using this code that I know has worked before:

    Sub PrintSecond()
    Dim w2 As Worksheet
    Set w2 = Sheets(2)
    w2.PrintOut
    End Sub

  10. #10
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,607

    Re: Need help with multiple conditions and table

    Your code prints sheet #2 which happens to be "Score Sheet".
    All you need is:
    Please Login or Register  to view this content.
    or:
    Please Login or Register  to view this content.

+ 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. [SOLVED] Find sum with multiple conditions of 'top n values of a table'.
    By Sarangsood in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 03-14-2016, 09:12 AM
  2. Replies: 2
    Last Post: 01-14-2016, 03:53 PM
  3. Multiple conditions with matrix table
    By redjess555 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-01-2015, 09:20 AM
  4. [SOLVED] A complicated Look UP table with multiple conditions
    By Excel Dumbo in forum Excel General
    Replies: 14
    Last Post: 07-16-2012, 10:36 PM
  5. Insert multiple values from seperate table based on multiple conditions
    By drakesong in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-28-2011, 06:04 PM
  6. Help with multiple conditions with lookup table
    By Paul Harris in forum Excel General
    Replies: 6
    Last Post: 11-09-2006, 09:19 PM
  7. [SOLVED] look up table values with multiple conditions
    By TechMGR in forum Excel General
    Replies: 3
    Last Post: 01-09-2006, 08:55 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