+ Reply to Thread
Results 1 to 5 of 5

rpg style level up formula?

  1. #1
    Registered User
    Join Date
    10-17-2014
    Location
    london
    MS-Off Ver
    7
    Posts
    33

    rpg style level up formula?

    this may be an odd request, but is there any way to check a cell for a numeric value and display a level depending on what it is?

    for example, i would like to check cell A1 (experience points). if its value is more than 100, cell B1 (level) will display 1. if A1 is greater than 200, B1 will display 2. if A1 is greater than 300, B1 will display 3 etc. etc.

    basically i want to check the value of one cell, and adjust the value of another accordingly.

    I hope that makes sense.... its pretty late here.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: rpg style level up formula?

    Put this formula in B1:

    =if(isnumber(A1),INT((A1-1)/100),"")

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    10-17-2014
    Location
    london
    MS-Off Ver
    7
    Posts
    33

    Re: rpg style level up formula?

    thanks for that, but is there a way to manually set the requirements?

    I should have explained myself a little better but I was extremely tired when writing my original post :p

    Here is an experience table that i would like to replicate.

    http://tibia.wikia.com/wiki/Experience_Table

    as you can see,

    level 1 = 0 experience
    level 2 = 100
    level 3 = 200
    level 4 = 400
    level 5 = 800
    level 6 = 1500
    level 7 = 2600

    etc. etc.

    I dont mind manually entering the values to avoid complex equations but sadly my knowledge with excel is limited. I have however played around with various game making programs and have made some crude rpgs with level up systems, again with crude lines of code along the lines of

    if global.experince > 0
    global.level=1

    if global.experince > 100
    global.level=2

    if global.experince > 200
    global.level=3

    and so on.

    is there anyway to do something similar in excel? for example

    if A1 > 0
    B1 = 1

    if A1 > 100
    B1 = 2

    if A1 > 200
    B1 = 3

    etc.

    again, i dont mind manually entering the variables if it makes things easier.

    At this point, i think i should explain why im doing this haha. im trying to get my son to exercise more and he is really into his video games, so i wanted to create an excel file that keeps track of how many meters he has run in total. if he runs 100m he is level 1. if he runs 200m he is level 2. the plan is to give him some small rewards every 10 levels.

    Im using the experince table i posted as an example because its one of the games he spends the most time on and Im hoping it will motivate him to keep fit and get outside a little :p
    Last edited by Sezra; 04-07-2017 at 07:06 PM.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: rpg style level up formula?

    You can use this formula in B1:

    =IF(A1="","",MATCH(A1,{0,100,200,400,800,1500,2600}))

    Just put a number in A1 to see the appropriate level in B1.

    Hope this helps.

    Pete

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: rpg style level up formula?

    vlookup will also be advisable to use. create a table of experiences and level.
    or
    If you have some kind of a calculation to determine the level like the one you posted in the link you can post it.


    this is the formula in the link to determine the Experience in the table
    =50*A2^3/3-100*A2^2+850*A2/3-200

    so if you have the table use vlookup or index/match
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ 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. Modify 3rd level of row in powerpivot format style
    By stephme55 in forum Excel General
    Replies: 0
    Last Post: 11-10-2016, 07:19 PM
  2. [SOLVED] Transform Data From Pivot Style to a Table Style
    By The_Snook in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-18-2016, 04:13 AM
  3. Posisible to Disable Save As at Program level (not workbook level)??
    By brian6464 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2014, 02:49 PM
  4. Bill of Materials conversion from multi level to single level
    By susmitpatel in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-11-2013, 12:53 AM
  5. Normal Style to No Spacing Style by default.
    By dogberry in forum Word Formatting & General
    Replies: 1
    Last Post: 12-23-2012, 11:48 PM
  6. Can't get VBA code to do task at worksheet level not workbook level
    By lealea1982 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2011, 10:22 AM
  7. Using macro to convert single level BOM to Multi Level BOM
    By andrew_chong in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-07-2006, 04:57 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