+ Reply to Thread
Results 1 to 6 of 6

Fine value in chart based off two critera

  1. #1
    Registered User
    Join Date
    02-02-2017
    Location
    Georgia, US
    MS-Off Ver
    Office 2016 ProPlus
    Posts
    3

    Fine value in chart based off two critera

    First, thanks for the help. I hope to explain this properly. I'm also open to VBA/Macro/Add-Ins if that is a possible solution.

    Basic language:
    I have a workbook for a character database. Sheet 1 contains summary of a Character information (Race, XP, Level, Lives). I am currently keeping this up-to-date manually. I'd like this populate based off values in other sheets. Sheet 2, for example, contains Race information. Race, Level, XP, Body, Live increase. I want to find what level someone should be based off comparing sheet 1 to 2.

    Excel example:

    Sheet 1
    Please Login or Register  to view this content.

    Sheet 2
    Please Login or Register  to view this content.
    The expected results should return:
    Ansley - Level 5 (Row 6, Column C)
    Bert - Level 2
    Carter - Level 4

    I can add another cell to have XP Min and XP Max if need be, but I could not get my logic to work around that either.
    Last edited by thunderchld; 03-01-2017 at 06:45 PM. Reason: Chart was poorly formatted

  2. #2
    Valued Forum Contributor
    Join Date
    10-15-2007
    Location
    Home
    MS-Off Ver
    Office 2010, W10
    Posts
    373

    Re: Fine value in chart based off two critera

    Hi
    Welcome to the board

    Try in Sheet1!D2:

    =LOOKUP(C2,Sheet2!$B$2:$B$13/(Sheet2!$A$2:$A$13=B2),Sheet2!$C$2:$C$13)

    Copy down.

    Remark:
    This solution assumes the setup of your table in Sheet2, namely XP in ascending order for each race
    Last edited by lecxe; 03-01-2017 at 07:44 PM.

  3. #3
    Registered User
    Join Date
    02-02-2017
    Location
    Georgia, US
    MS-Off Ver
    Office 2016 ProPlus
    Posts
    3

    Re: Fine value in chart based off two critera

    Thank you! I could sort to make sure XP is in ascending order; but there is a chance that the sort could change (vs just being filtered). This gives me an amazing start! I really appreciate it.

  4. #4
    Valued Forum Contributor
    Join Date
    10-15-2007
    Location
    Home
    MS-Off Ver
    Office 2010, W10
    Posts
    373

    Re: Fine value in chart based off two critera

    I'm glad it helped.

    If you say that the table in Sheet2 may not have XP values in ascending order, you may use, for ex.:

    =SUMPRODUCT((Sheet2!$A$2:$A$13=B2)*(Sheet2!$B$2:$B$13=AGGREGATE(14,6,Sheet2!$B$2:$B$13/(Sheet2!$A$2:$A$13=B2)/(C2>=Sheet2!$B$2:$B$13),1)),Sheet2!$C$2:$C$13)

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

    Re: Fine value in chart based off two critera

    Assuming your answer lies in D2, try the following ARRAY formula entered by pressing CTRL+SHIFT+ENTER:

    D2: =INDEX(Sheet2!$C$2:$C$13,MATCH($C2,IF(Sheet2!$A$2:$A$13=$B2,Sheet2!$B$2:$B$13),1))

    Data does not need to be in any particular order.
    Attached Files Attached Files
    Spread the love, add to the Rep

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

  6. #6
    Registered User
    Join Date
    02-02-2017
    Location
    Georgia, US
    MS-Off Ver
    Office 2016 ProPlus
    Posts
    3

    Re: Fine value in chart based off two critera

    Thanks!

    I did try all three, and I'll keep those in my pocket. They did all work and provided the functionality I needed. For this particular issue, the array worked great! I'll be using the others in the spreadsheet as well! Thank you!

+ 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. Charts not recognizing label column. Chart values appear to be fine.
    By chad.botbyl in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-13-2016, 05:26 AM
  2. [SOLVED] Help with modifying VBA Macro - Works fine but needs fine tuning !
    By stefan27 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-06-2015, 10:27 AM
  3. Ranking Based on Critera
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-21-2014, 06:48 AM
  4. [SOLVED] Add total values based on within range based on critera
    By johnny_p in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2013, 06:50 AM
  5. Average based on 2 critera
    By k8bug79 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-01-2013, 10:55 AM
  6. [SOLVED] Return a Value Based on 3 Critera
    By mvp23 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-19-2006, 07:10 PM
  7. Moving data Based on critera.
    By RQtech in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-31-2006, 03:00 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