How to fill cells from a maximum to minimum

Hi very simply if I have a column of twenty cells and in cell 1 I put the number 1 and in cell 20 I put the number 20 is there a way numbers can automatically fill the cells 2-19 with the appropriate increments?  I know you can drag a corner of two cells and it will continue the pattern but I have two values in mind an upper and a lower and want to fill the gap between the two.
Thanks

"I wanted to award the top mark of 20 points and slowest time or more of 1 point and just spread the gap evenly across points 2-19."
How does a participant get a time that is "more" than the "slowest time"? (see NOTE appended)
Using the described method of assigning points, here's an example.
For two races, each with three competitors, the points awarded could be (rounded or truncated from) the calculated values below:
Note that the 'best' times and the 'second best' times in both races are the same. Only the time of the slowest runner (and the consequent score of the 'second best') are different.
If the (huge) difference in score for an identical performance when compared with the winning time is acceptable, here's a solution that will calculate those results directly from the list of times (in seconds, expressed as a decimal number).
Notes:
Columns C, D and E are independent calculations, each using the in column B. C shows the raw point value; D shows the same calculation with the result truncated to show only the integer part, E shows the same calculation with the result rounded to the nearer integer value. See the scores for Runners 4, 7, 9 (and others) for differences when reducing the point values to whole number values.
For test and demonstration purposes, I entered the fastest and slowest times in the first two cells of column B, and generated the rest using the RANDBETWEEN function. The entered scores can be in any order. Runners who did not participate, or did not finish should have their column B cell left empty.
Formulas: The three formulas are identical except for truncating or rounding parts (shown in bold). Pick the one that best suits your needs. They're placed in the top row containing race times, and filled down from there.
C2: =IF(LEN(B)>0,1+19*(MAX(B)-B)/(MAX(B)-MIN(B)),"")
D2: =IF(LEN(B)>0,INT(1+19*(MAX(B)-B)/(MAX(B)-MIN(B))),"")
E2: =IF(LEN(B)>0,ROUND(1+19*(MAX(B)-B)/(MAX(B)-MIN(B)),0),"")
Regards,
Barry
NOTE: Your mention of 'the slowest time or more' might offer a way around the score variation noted above. The organization governing F1 racing introduced a new rule recently restricting qualifying times to those less than seven per cent slower than the fastest time in the qualifying rounds. A similar rule, defining a floor value at and below which finishers will be awarded a single point would also make points above that floor dependent only on the runner's performance relative to the race winner.
Here's an example, using the same three-runner races shown above, but with the 'floor' set at 50% more than the winning time.
Formula (in row 2, then filled down)
B2: =IF(LEN(A)>0,IF(A>1.5*MIN(A),1,1+(19)*(1.5*MIN(A)-A)/(1.5*MIN(A)-MIN(A))),"")
Copied to column D, the A references are replaced with D.
Conversion to integer values would use the same modifications as shown above.
The results seem a fairer reflection of the second and third place times wrt the winning times in the two races.
B.

Similar Messages

  • How to fill table from datatable(MySQL)

    hi;
    I am starting with Visual web java server faces, and I want to fill a Table using an information from MySQL data base, i am trying to modify a example code I have found on netbeans totorials but they are using droplist and I want firts to use a texfield to set a "name" and button to search using a MySQL query to seek on data table and get the return and set it to Table.
    Basicly I dont Know HOW to connect a data base using same code like a desktop application but in Visual Web Java Server Faces.
    thank you in advance.
    Miguel V.

    Hi;
    I hava done this code but still geting a mistake with tomcat
    Next steps i follow to conectand display on data table:
    1.-Create conecction with MySQL usen service.
    2.-On service drag "directorio" to Table
    3.-Binding all objets (Textfield1, Table and Button)
    4.-On button1 create the next code:
    Object optener =3;
    //set the dataprovider with element number 3, on DIRECTORIO.ID of datatable directorio
    directorioDataProvider.setCursorRow(directorioDataProvider.findFirst("DIRECTORIO.ID", optener));
    //Get the row with same ID=3
    getSessionBean1().getDirectorioRowSet().setObject(1, optener);
    //Shows the inf on table
    getSessionBean1().getDirectorioRowSet().execute();
    directorioDataProvider.refresh();

  • Automatically fill cells from reference table

    Not sure if this is even possible, but I thought I'd ask and see if anyone knows of a way to do this. Here goes.
    Can I have cells fill in information automatically from a reference table in another sheet? What I'm trying to do is this:
    I need to keep training records for a group. What I've created is a numbers document with two sheets. In the first sheet, I have a single table with two columns that lists all of the training courses in column B with their course codes in column A. For example, let's say that course C32 (listed in Column A) is a "Basic Training" course (so "Basic Training" is in column B). On the next row is the next course, the next row is the next course, etc. This is my reference table.
    Now in the second sheet, I have a table for each person. Each table is three columns. In the first I enter the course code they've taken, in the second I enter the date they took it, and what I'd LIKE to have happen is that when I enter the course code in Column A, the description from the reference table automatically fills into the third column. That way I don't have to type all the course descriptions over and over. (Some of them are fairly lengthy).
    Is there any way to do this in numbers?
    Thanks

    Yes, it is possible. Use the LOOKUP function. However, your lookup table must be in the same document, but can be on a separate sheet.
    Create a table of the course names (2 columns, code in A and name in B) and call the table (not the containing sheet) something significant such as "Course names". Then in Column C of each persons table use the formula =LOOKUP(A, Course Names :: A, Course names :: B). This says take the code reference from the first cell on the line (local column A) and compare it with the codes in the first column (Course names :: A) of the Course names table, and return the value from the second column (Course names :: B) of the matching row.
    Remember to enter the formula as a column formula to save having to repeat it in each cell.

  • How to prevent Cell from getting focus when I click on a cell in JTable

    Hi,
    I have a new problem which I did not have when using jdk1.3. I have a non editable JTable. Now whenever I select a row the row gets highlighted - which is ok but at the same time the cell on which I click ( to select the row ) also gets focus.
    Previously I used to extend JTable and override the isManagingFocus method to return false. But now it doesnt seem to work
    What should
    Thanks
    --J                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Well, I'm still using JDK1.3 and I don't get the behaviour you describe.
    When isManagingFocus is true then using the tab key will cause focus to move from cell to cell within the JTable and focus will never leave the JTable.
    When isManagingFocus is false then using the tab key will cause focus to move the the JTable to the next component on the JFrame.
    In both cases once focus is on the JTable an individual cell is always highlighted to indicate it has focus.
    The question is if your program only cares which row has been selected, why do you care if an individual cells appears to have focus?

  • How to fill cells

    Is it possible to select a row of cells with formulas and have them filled down like in Excel?

    Is it possible to select a row of cells with formulas and have them filled down like in Excel?

  • How to fill info from database

    I have the database talking to livecycle. I am using OLEDB via the ODBC in server 2003 for the connection. I can access the database in PHP no problem using the ODBC functions.
    All I want to do is query a customer ID and return a first and last name. The SELECT statement is simple however what goes in front and after the SELECT statement is not clear to me.
    I just need a bare bones example to get going. with what the fields need and the button to execute the query.
    Any help would be greatful.
    Thanks in advance Charlie

    Is this data being retrieved after the user enters the Customer ID?
    If so then you can set up th econnection to have a delayed open (so that you can control when the connection to the DB is established). There is a checkbox on the 2nd screen of the data connection wizard.
    Now you can create the SQL statement and set a property of the DtaaConnection (programmatically) and open the data connection. If you post your email address I will send you a sample. You will not have my DB but you will get the idea.

  • How to dynamically copy cells from different tables?

    Hi,
    I've created an invoice and have 2 different tables. First is at top with Recipient information, the invoice number, their address, etc. Below that, I have a 2nd table laying out the items they are being charged for.
    I would like to copy the invoice number from the 1st table, to a cell in the 2nd table or a 3rd table I will create later on. I know how to copy cells in 1 table, ie. =D4. But not sure how to target a different table altogether.
    Also, is it possible to copy a cell from 1 table to a text box field?
    Thanks!!

    Yvan's point is true.  Please use the User Guides first; they're actually pretty readable.
    However, there's a very quick & easy way to try it out as well.  Go to the cell where you want your data to end up.  Type "=" (without quotes) to indicate you're going to input a formula of some kind.  Then without clicking inside any tables, use the list of sheets and tables to the left to get to your source table and click on the cell that contains the data you want to copy.  Presto!  Go back to your destination cell, and the formula is now filled in, following the scheme Yvan provided.
    Vince

  • Grep: How to fill a table cell with certain color

    I have an excel sheet with 5000 rows that needs to be formatted in Indesign.
    1. Is there a way to get a certain color fill of the cell depending on text. Lets say if the text is "apple", the cell should fill with red (and text also color red to make it disappear).
    2. How do I make two different character styles to appear in the same cell (information is tab-separeted but sometimes I would like to have 2 "paragraphs" in one cell sometimes – with that I mean two tab-delimited cells from excel to appear in ONE cell in indesign).
    Thanks in advance
    Example of what I would like to accomplish:  http://tinypic.com/r/vo4och/6

    Yes but wouldn't that make the field contain a string?
    I tried something like that, and every field I edit becomes left-justified, and String (instead of int, float which is right-justified)
    Matthew

  • How to add a cell from 2 different tables in 2 different Matrix(s) that reside on the same rdlc report?

    Hello Community
        Using Visual Studio 2008 I have created a Windows Forms Application in which I created
    Embedded Reports (rdlc).
        The embedded reports (rdlc) uses Matrix(s).
        Now on this one rdlc I have dragged 2 Matrix(s) onto the body.
        One of the Matrix datasource dataset name and table name is "DataSet1_Table1.
        A cells in the Matrix has a total column on the end as follows:
    =FormatNumber(Sum(Fields!fld1.Value)+Sum(Fields!fld2.Value)+Sum(Fields!fld3.Value)+Sum(Fields!fld4.Value)+Sum(Fields!fld5.Value),"0")
        The other Matrix datasource dataset name and table name is "DataSet2_Table2.
        The cell in this Matrix has a total column on the end as follows:
    =Sum(Fields!fld1.Value)+Sum(Fields!fld2.Value)+Sum(Fields!fld3.Value)+Sum(Fields!fld4.Value)+Sum(Fields!fld5.Value)
        As you can see each Matrix has a different table.
        I would like to add the total columns from each table in each Matrix but I haven't been
    able to do it successfully. If I have to drag another Matrix or a Textbox on the
    body to do it that is okay and/or add another/different formula to a cell onto the body that is
    okay too.
        So my question is how can I add the contents of the total in cell from each table in each matrix
    which will create the "grand total"?
        Thank you
        Shabeaut

    It is possible to reference SSRS elements directly using the ReportItems collection. If your total tablix cell is outside of yoour matrix groups, you can use this collection to accomplish what you want:
    =ReportItems!Matrix1Total.Value + ReportItems!Matrix2Total.Value
    where Matrix1Total and Matrix2Total is the name of the cell that contains your totals. Note that for this to work, the cell name must be unique. If the total cell is inside a group, it will be repeated once for each instance of the group and will not be
    unique.
    You may be able to do it using the Sum aggregate and specifying the dataset for the scope variable:
    =Sum(Fields!fld1.Value, "DataSet1")+Sum(Fields!fld2.Value,
    "DataSet1")+Sum(Fields!fld3.Value,
    "DataSet1")+Sum(Fields!fld4.Value,
    "DataSet1")+Sum(Fields!fld5.Value,
    "DataSet1")+Sum(Fields!fld1.Value,
    "DataSet2")+Sum(Fields!fld2.Value,
    "DataSet2")+Sum(Fields!fld3.Value,
    "DataSet2")+Sum(Fields!fld4.Value,
    "DataSet2")+Sum(Fields!fld5.Value,
    "DataSet2")
    This will work as long as you are not filtering the dataset in your Matrix properties. If you are, those
    filters will not apply to this expression and the numbers will not total correctly.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • How do I create a shortcut to fill cells with the same background colour

    I have recently starting using Numbers, being an Excel user for years.
    I often fill cells with a yellow background to highlight them.
    In Excel you can do this from a simple colour menu in the toolbar at the top.
    I have found no quick and easy way to do this in Numbers.
    Any advice would be appreciated.
    thank you

    As far as I can tell there's no direct equivalent of the little paintbucket button in Excel that remembers the last colour you filled with.
    One quick and relatively easy way to achieve it would be with an AppleScript:
    tell application "Numbers" to tell front document to tell active sheet
      try
      set active_table to (first table whose class of selection range is range)
      on error
      display alert "No selection" buttons {"OK"} default button 1
      return
      end try
      tell active_table
      set background color of selection range to {62466, 65535, 28003}
      end tell
    end tell
    This could be run from Numbers' script menu (screen grab below) or saved as an Automator Service and run from a popup or keyboard shortcut (eg ctrl-y).
    Post back if you'd like to follow up either of those ideas.

  • How to fill the records from a User Define Table to PO item Grid

    Hi To all,
    I need to fill data from User Define table records into Purchase Order Item Grid.
    I created an UDF Filed in PO - Header Part - "PRS"(Filed Name)
    By using Formatted Search in itemcode column, i called a query,
    "Select itemcode, qty from (@user define tablename) where PRS = $http://OPOR.U_PRS"
    For eg:
    Output from querry
    ItemCode Qty
    ABC 1
    DEF 2
    DFG 7
    SDGD 9
    By using formatted search it is filling only first data in to itemcode column in PO Grid.
    Please help, how can i fill ALL the data in to my PO Grid?
    Thanks in Advance
    SAGAR

    The easisest way is to create datasource and the result bind to grid.
    Datasource:
               oDBDataSource = oForm.DataSources.DBDataSources.Add("@usertablename")
                Dim xoConditions As SAPbouiCOM.Conditions
                Dim xoCondition As SAPbouiCOM.Condition
                xoConditions = New SAPbouiCOM.Conditions
                xoCondition = xoConditions.Add
                xoCondition.BracketOpenNum = 1
                xoCondition.Alias = "u_zn"
                xoCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                xoCondition.CondVal = "cond"
                xoCondition.BracketCloseNum = 1
                oDBDataSource.Query(xoConditions)
    binding (example for matrix, in grid is simillar)
                oMatrix.Clear()
                Dim cols As SAPbouiCOM.Columns
                Dim column As SAPbouiCOM.Column
                cols = oMatrix.Columns
                column = cols.Item("colX")
                column.DataBind.SetBound(True, "@usertable", "u_x")
    oMatrix.LoadFromDataSource()
    hoep it helps
    Petr

  • How do I get a time value in days, hours and minutes returned to a cell from a calculation of distance divided by speed?

    How do I get a time value in days, hours and minutes returned to a cell from a calculation of distance divided by speed?

    Simon,
    you can use the duration function:
    B4=DURATION(0,0,B1/B2)
    you can further, format the cell as a duration like this using the cell inspector:

  • How do I set the text orientation in a Microsoft Word table cell from LabVIEW?

    In a table in Word (Office 2010) it's possible to change the text orientation in a cell (if you right click on a cell, it's the 'Text Direction...' option). 
    Has anyone figured out how to do this from LabVIEW?  I took a quick look at doing it via ActiveX, but haven't find the correct property/method.  Next step is to try .net.

    Previous post shows the constant values for Excel (my mistake). The following code will change the text orientation for a whole table in Word.
    Ben64

  • How to download pics from Verizon cell phone to ipad2?

    How to download pics from Verizon cell phone to ipad2?

    Is it an iPhone ? If it is and you don't want to go via your computer and iTunes, then the camera connection kit can connect the iPhone to the iPad and can copy photos to the iPad. Also there are photo transfer apps such as Simple Transfer which can copy photos between iOS devices via your wifi network.
    If it's not an iPhone then you probably need to go via your computer and sync them via iTunes, or if there aren't that many photos and your phone supports it you can email them to yourself

  • How to fill in a text box on a pfd form downloaded from the internet

    I am desperate to know how to fill in text boxes on a pdf form that has been downloaded from the internet

    Usually you just click in it and start typing... If that's not working then maybe what you're seeing is not a real text field.
    In that case you can probably use the Add Text Comment tool under the Comment panel to add text to the file.

Maybe you are looking for