+ Reply to Thread
Results 1 to 6 of 6

adjusting a cells formula based on different input in another cell

  1. #1
    Registered User
    Join Date
    09-05-2016
    Location
    Vancouver, Canada
    MS-Off Ver
    365
    Posts
    63

    adjusting a cells formula based on different input in another cell

    I am looking to adjust the following formula or find a better way to get the data i want.

    What I am trying to do is find a way to calculate the amount of heats that athlete are doing based on their final result and the amount the competition is taking into finals. Normally they run heats with 4 people and the options are 4, 8, 16, 32, 48, 64, 128
    so the Number of heats would be for each (placing is on the left and # of heats is on the right)

    If heats of 128
    1-8 will be 6
    9-16 it will be 4
    17-32 it will be 3
    33-64 it will be 2
    65-128 it will be 1
    less then 16 will be 0

    If heats of 64
    1-8 will be 5
    9-16 it will be 3
    17-32 it will be 2
    33-64 it will be 1
    less then 64 will be 0

    If heats of 32
    1-8 will be 4
    9-16 it will be 2
    17-32 it will be 1
    less then 16 will be 0

    If heats of 16
    1-8 it will be 3
    9-16 it will be 1
    less then 16 will be 0

    If heats of 8
    1-8 it will be 2

    If heats of 4
    1-8 it will be 2


    the formula that I am using is this
    2*($B2<9) + ($C2>8)*($B2<17)+($C2>16)*($B2<33)+($C2>32)*($B2<65)+($C2>64)*($B2<129)+($C2>128)

    which works for those ones.
    where I am running into an issue is there is another format that will have heats that run as 6 man heats which is a totally separate format and the amount they would take to finals is 24, or 48 so similar to above but based on 6 man heats

    If heats of 48
    1-12 will be 4
    13-24 it will be 2
    25-48 it will be 1
    less then 48 will be 0

    If heats of 16
    1-12 it will be 3
    13-24 it will be 1
    less then 24 will be 0

    I need to have a formula that would be able to be in the same cell and if it were 4 man heats (4, 8, 16, 32, 48, 64, 128) then it would use one calculation but if it were to be (24, or 48) it would use another calculation.

    I have included a file that hopefully shows it. Column B is the athletes placing. Column C is the format for qualifying and then Column D is where the formula needs to go D2-8 is filled in with my formula but I need the addition to it for D10,11 to work properly. so if cell C says 24 or 48 it calculates on the different criteria.


    hopefully this makes sense

    thanks
    Attached Files Attached Files
    Last edited by cnak; 05-25-2017 at 06:19 PM.

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: adjusting a cells formula based on different input in another cell

    Hi cnak - If both formats use a 48-member field size, you'll need some other indicator to distinguish the correct one.
    Questions:
    1)How many people advance from each heat? Half?(=2?)
    2)What does the bottom line ("less than 16 will be 0") of each grouping mean?
    Last edited by leelnich; 05-25-2017 at 05:53 PM.

  3. #3
    Registered User
    Join Date
    09-05-2016
    Location
    Vancouver, Canada
    MS-Off Ver
    365
    Posts
    63

    Re: adjusting a cells formula based on different input in another cell

    would it make sense to add a column in there that would say the # of people in the heat?
    so either 4 man heats or 6 man heats?

    and yes the top 2 advance from each heat. when it gets to semi finals then the top 2 go to finals and the bottom 2 go to a small finals to sort out seeding.

  4. #4
    Registered User
    Join Date
    09-05-2016
    Location
    Vancouver, Canada
    MS-Off Ver
    365
    Posts
    63

    Re: adjusting a cells formula based on different input in another cell

    and that last less then 16 should actually read less then 24 for that one..... so if in qualifying someone was ranked 25 or below they would not make it into finals and be ranked on their time trail time only... so no heats for them.

  5. #5
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: adjusting a cells formula based on different input in another cell

    Quote Originally Posted by cnak View Post
    ...the options are 4, 8, 16, 32, 48, 64, 128 Does this mean total number of competitors?

    If heats of 128
    1-8 will be 6
    9-16 it will be 4
    17-32 it will be 3
    33-64 it will be 2
    65-128 it will be 1

    less then 16 will be 0

    If heats of 64

    1-8 will be 5
    9-16 it will be 3
    17-32 it will be 2
    33-64 it will be 1

    less then 64 will be 0
    Sorry, I still don't understand the highlighted stuff.

  6. #6
    Registered User
    Join Date
    09-05-2016
    Location
    Vancouver, Canada
    MS-Off Ver
    365
    Posts
    63

    Re: adjusting a cells formula based on different input in another cell

    So what it is there are different formats for the races which are based on how many people they take to finals 4, 8, 16, 32, 48, 64, 128 Those are the total number of people that they will take to finals. there are 4 people in each heat.

    the highlighted stuff
    If heats of 128 that is the format they are following so 128 people in finals
    1-8 will be 6
    9-16 it will be 4
    17-32 it will be 3
    33-64 it will be 2
    65-128 it will be 1
    less then 16 will be 0 that is a mistake it should say 128 so anything above that would be in no heats because they didnt qualify for finals.

    and then the same for the others i just broke it down so you understand how many heats for each format 4, 8, 16, 32, 48, 64, 128


    hopefully this makes sense.

    I have included another file that shows the way heats are broken down for 32's maybe that will make more sense the top 2 placings from each heat will make it to the next round.

    thanks for the help
    Attached Images Attached Images

+ 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. Adjusting Cells Based On Completion
    By MrPifster in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2017, 05:37 PM
  2. [SOLVED] Adjusting a Macro for Highlighted cell input changes
    By eguirocker3 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-06-2014, 10:10 AM
  3. Locking cells based on another cell's input
    By friscer in forum Excel General
    Replies: 1
    Last Post: 05-23-2013, 08:14 AM
  4. Adjusting a formula based on a value of another cell...
    By Finalfrontier1976 in forum Excel General
    Replies: 9
    Last Post: 05-28-2010, 07:47 AM
  5. trying to change a cells value to negative based on another cell input
    By cjwanat in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-08-2010, 04:37 PM
  6. To make several cells mandatory based on other cell input.
    By nukecity83 in forum Excel General
    Replies: 1
    Last Post: 10-13-2009, 05:35 PM
  7. unlock cell based on another cells input
    By 2funny4words in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2009, 02:18 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