+ Reply to Thread
Results 1 to 6 of 6

Formula for Counting Age based on a scale

  1. #1
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Formula for Counting Age based on a scale

    In my attached worksheet, I have a list of 6 names with an age attached using a decimal. I want the person's age to pull a point total based on the scale in columns E and F. I want it to include the decimals of the age when factoring in. So a name with an age of 26.1 is not the same as an age of 26.4 even though only the age 26 is listed a whole in the scale.

    Please let me know if there are any questions. Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Formula for Counting Age based on a scale

    Hi mlbcd,

    What you are asking for is called interpolation. That means you can take the two closest points and interpolate between them to estimate the fractional amount. The problem with your example above is the line is flat (zero) between the points you give. That means that 26.1 WILL be the same value as 26.4.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Re: Formula for Counting Age based on a scale

    Quote Originally Posted by MarvinP View Post
    Hi mlbcd,

    What you are asking for is called interpolation. That means you can take the two closest points and interpolate between them to estimate the fractional amount. The problem with your example above is the line is flat (zero) between the points you give. That means that 26.1 WILL be the same value as 26.4.
    Ok that's fine, I would just like it to understand the cutoff point, so 26 is not the same as 27.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Formula for Counting Age based on a scale

    Hi,

    Upon drawing the curve for your age vs points graph, it looks like some sort of parabola to me. It also seems the vertex is somewhere between 28 and 29. If I knew how, I'd draw a Least Squares Parabola that got as close to your points as possible. Some thing like y = -(X - 28.5)^2 - ??. I'd then use this curve for your data instead of the sample you have. Perhaps that would give you a better "cutoff point".

  5. #5
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Re: Formula for Counting Age based on a scale

    So age 26-30 would be flat if I was drawing it on a piece of paper, those ages should all have zero points, anything before 26 or after 30 will have a decline based on the points scale. Does that make sense?

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Formula for Counting Age based on a scale

    That makes perfect sense to me. Because I'm a "math guy" I'd like to see the formula that gave you your data and then use it for all the "in between" points. That is where I wanted a formula that fit "most closely" to your points. That was my upside down parabola. I'm not smart enough to night to give you the equation to it. Maybe one of the smart guru's can find it....

    Look on the net at http://www.had2know.com/academics/qu...alculator.html
    and plug in your points and it will give you what I'm thinking of.

    Using the above web site it gives this formula for your points

    y = -0.4516x^2 + 26.0635x - 370.9715

    Plug your 26.1 and other age and see what the above equation gives for the y (points) value.
    That would be my guess, and final answer (as far as I understand the problem).
    Attached Files Attached Files
    Last edited by MarvinP; 02-09-2015 at 11:42 PM.

+ 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. Formula to calculate cost based on increasing scale
    By shenshall in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-04-2013, 12:05 AM
  2. Colour Based Counting Formula
    By MYEM1983 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-03-2013, 10:29 PM
  3. [SOLVED] Formula to calculate commission based on sliding scale
    By Excel Dumbo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-31-2013, 10:52 PM
  4. Replies: 4
    Last Post: 03-04-2012, 12:21 PM
  5. Large scale counting
    By rhoknee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2010, 05:17 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