+ Reply to Thread
Results 1 to 9 of 9

Excel Math problem

  1. #1
    Registered User
    Join Date
    09-09-2021
    Location
    Stockholm, Sweden
    MS-Off Ver
    365 MSO 64 bits Excel version 1910
    Posts
    11

    Question Excel Math problem

    Hi

    I have a math challenge that proved to be to much for me. Anyone up for the challenge?

    I need to build an Excel model that handles to split a groups total price to price per group member, given some parameters.

    Group price: this is given in the model but can be any price.
    Number of Adults in the group: this can be 0-300
    Number of Children in the group: this can be 0-300
    The price for a single child must be 20% below the price for an adult.

    Ok an Example

    We have agreed on the price 16650 sek for a group with 10 adults and 20 children. I can trial and error my way to that the price for an adult should be roughly 638 sek and 513 sek for a child. But this only applies for this input. I want to build the model so I can enter any number of adults and children and any total price and get the price per adult and child automatically.

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Excel Math problem

    Adults price:
    Agreed total / (Xchildren * 0.8 + Yadults)

    EDIT: sorry instead of gives benefit for child I've raise for adult.
    Attached Files Attached Files
    Last edited by KOKOSEK; 09-09-2021 at 10:16 AM.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,300

    Re: Excel Math problem

    A child is equivalent to 0.8 of an adult based on 20% discount

    For x adults and y children = x+0.8y adults

    cost per adult =total cost/(x+0.8y)

    Using your number: x=10, y=0.8*20=16

    so we have 26 "adult equivalents": cost per adult=16650/26= 640.38

    cost per child =640*0,8 = 512
    Last edited by JohnTopley; 09-09-2021 at 10:44 AM.

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,069

    Re: Excel Math problem

    x = adult price
    y = child price = x*(1-20%) = x*80%

    10 adults + 20 children = 16650
    => 10x + 20y = 16650
    => 10x + 20x*80% = 16650
    => x*(10+20*80%) = 16650
    => x*26 = 16650
    => x = 16650/26 = 640.38
    => y = x*80% = 16650/26 * 80% = 512.31

  5. #5
    Registered User
    Join Date
    09-09-2021
    Location
    Stockholm, Sweden
    MS-Off Ver
    365 MSO 64 bits Excel version 1910
    Posts
    11

    Re: Excel Math problem

    Hi

    Thanks for all answers.

    I am sorry, I was not clear when I started the thread.

    My problem is that I want to build an model in Excel were I can insert 1) any value for the Group 2) any value for number of adults and 3) any value for Children and the model gives me the price per Child and price per adult with 20% price differenc (or as close to 20% we can come).

  6. #6
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Excel Math problem

    Quote Originally Posted by Mackjavalli View Post
    Hi
    My problem is that I want to build an model in Excel were I can insert 1) any value for the Group 2) any value for number of adults and 3) any value for Children and the model gives me the price per Child and price per adult with 20% price differenc (or as close to 20% we can come).
    Did you check attached file into my post #2?
    Capture.PNG

  7. #7
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,069

    Re: Excel Math problem

    Here is my solution:

    Excel Math problem.png
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    09-09-2021
    Location
    Stockholm, Sweden
    MS-Off Ver
    365 MSO 64 bits Excel version 1910
    Posts
    11

    Re: Excel Math problem

    Hi. Sorry KOKOSEK I missed that. looks good. Thank you!

    Thanks everyone who helped me / Mackjavalli
    Last edited by Mackjavalli; 09-14-2021 at 10:09 AM.

  9. #9
    Registered User
    Join Date
    09-09-2021
    Location
    Stockholm, Sweden
    MS-Off Ver
    365 MSO 64 bits Excel version 1910
    Posts
    11

    Re: Excel Math problem

    Thanks Josephteh, looks good!

+ 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. Help Math problem in excel reversing a formula
    By born2dive00 in forum Excel General
    Replies: 6
    Last Post: 12-18-2020, 12:29 PM
  2. Excel Math problem
    By joerob88 in forum Excel General
    Replies: 6
    Last Post: 09-21-2009, 11:52 PM
  3. Math problem in excel
    By sisterpete in forum Excel General
    Replies: 5
    Last Post: 04-15-2007, 01:04 AM
  4. [SOLVED] More math than excel, but a fun problem
    By S Davis in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-06-2006, 05:10 PM
  5. [SOLVED] Excel Math problem
    By Djbaker70 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-24-2006, 02:10 PM
  6. [SOLVED] I have a math problem in Excel.
    By Djbaker70 in forum Excel General
    Replies: 2
    Last Post: 03-23-2006, 08:00 PM
  7. Replies: 3
    Last Post: 02-16-2006, 07:00 AM

Tags for this Thread

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