+ Reply to Thread
Results 1 to 5 of 5

How to calculate how many sums of an increasing number fits into another number ?

  1. #1
    Registered User
    Join Date
    05-31-2016
    Location
    Spain
    MS-Off Ver
    2011
    Posts
    41

    How to calculate how many sums of an increasing number fits into another number ?

    The title may be a bit misleading but I dont know how to name it better.
    Here is the issue: Im designing a game and I need to develop a formula for my excel.

    I have a table with 3 different types of weapons. Each weapon has 5 upgrades and each upgrade costs certain gold which increases per upgrade.
    For example: Sword 1 UPGRADE 1 costs 100 gold, upgrade 2 costs 200 gold etc.

    Now to my issue: On column A, I have 20 levels player can play. On Column B, I have how much GOLD player has in that level.
    On Column C, I need to calculate maximum upgrade of weapon player can afford at that level.

    For example, at level 1 player has 500 gold. Therefore for sword 1 he can afford a maximum upgrade 2 (because 500-(100+200)).

    I hope it makes sense, thanks for your help guys.
    Attached Files Attached Files
    Last edited by metal.stuff; 06-22-2016 at 06:56 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,642

    Re: How to calculate how many sums of an increasing number fits into another number ?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window (don't use the paperclip icon).

    otherwise we do not know what is Sword senquence for further upgrades is it 100-200-300-400 or may be 100-200-400-800, or anything else? etc. And how about BOW or AXE ? may be 50-100-XXX? or all are 100-200-xxx?
    Best Regards,

    Kaper

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,642

    Re: How to calculate how many sums of an increasing number fits into another number ?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window (don't use the paperclip icon).

    otherwise we do not know what is Sword senquence for further upgrades is it 100-200-300-400 or may be 100-200-400-800, or anything else? etc. And how about BOW or AXE ? may be 50-100-XXX? or all are 100-200-xxx?

  4. #4
    Registered User
    Join Date
    05-31-2016
    Location
    Spain
    MS-Off Ver
    2011
    Posts
    41

    Re: How to calculate how many sums of an increasing number fits into another number ?

    Ive uploaded an example. Thank you

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,642

    Re: How to calculate how many sums of an increasing number fits into another number ?

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

    and copy down/right

    PS. I originally thought about more complicated one. say in I9:L10 you have:
    Base (upg1) 100 300 500
    Each UP+ 100 200 300
    then in D3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    would return the same results. But first approach is by far better
    (I left original concept for reference in last few rows of the table, so you could compare results)

    if upgrades are not just numbered but have some specyfic names in I4:I8 then formula for D3 would be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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] Formula to determine if a number fits in a range
    By hwishman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-03-2014, 06:06 PM
  2. Find smallest number that fits a criteria
    By HalPlz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-10-2014, 03:49 PM
  3. [SOLVED] Increasing Number
    By jatolo in forum Excel General
    Replies: 3
    Last Post: 03-07-2014, 04:04 PM
  4. Increasing by a number diagonaly.
    By system0 in forum Excel General
    Replies: 9
    Last Post: 10-13-2013, 06:34 AM
  5. abc-us2, last number increasing....
    By sharan.ashutosh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-31-2013, 10:18 AM
  6. Increasing number by one for tickets
    By poohbear802 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-12-2008, 02:13 PM
  7. Increasing Number
    By David in forum Excel General
    Replies: 2
    Last Post: 03-08-2006, 09:45 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