Numbers syntax problem

I use this equation in Ms Excel. Numbers does not seem to like it. I'm trying to identify a column and a random row between two mumbers. Here is the EXCEL equation: INDIRECT("q"&INT(RANDBETWEEN(50,52))). In EXCEL, it will go to column "q" and select a random row between rows 50 and 52.

1st thing to look for is to ensure that you have the proper number of rows. I just did it on my ipad and it worked fine. if you dont have the number of rows, or it references outside the range the table is set up for, you might get an error.
Odd how the int is required though considering that Randbetween returns on integer between the two values.
Thinking about how I would have accomplished it, I think the offset command is a little more elegant than concatenation in indirect.
Yours
INDIRECT("q"&INT(RANDBETWEEN(50,52)))
Alternate
offset(Q50,randbetween(0,2),0,1,1)
This gives you the ability to change the column, as well as the number of rows or columns to include in the range. (maybe you have a variable range to sum or count, could be any number of rows or columns)
Jason

Similar Messages

  • Some syntax problems (I guess)

    Hi, I'm having problem with the first constructor in this simplified example code... I want to create a "default" Comparator. I'm not quite sure how to do this.
    public class MyClass<E> {
        private Comparator<E> comp;
        public MyClass() {
            MyClass(new ComparableComparatorBridge());
        public Myclass(Comparator<E> comp) {
            this.comp = comp;
        private class ComparableComparatorBridge<E extends Comparable> implements Comparator<E> {
            public int compare(E o1, E o2) {
                return ((Comparable)o1).compareTo(o2);
    }

    Event if you fix the syntax problems, following the advice of the other posters, you'll have a semantic problem:
    MyClass<E> is parameterized with an unbounded type parameter.
    You cannot assume that E implements Comparable<E>.
    What you'd really need is a parameterizd constructor like this (won't compile):public <C extends E & Comparable<E>> MyClass() {
    this(new ComparableComparatorBridge<C>());
    }Unfortunately, this isn't valid Java. I see two possibilities:
    1. Derive from MyClass and introduce the additional bound on the type parameter of the subclass. Then you can create a default-constructor using the ComparableComparatorBridge in that subclass.
    2. Add a static factory function to MyClass, like this:
    public class MyClass<E> {
        private final Comparator<E> comp;
        public MyClass(Comparator<E> comp) {
            this.comp = comp;
        public static <E extends Comparable<E>> MyClass<E> defaultComparable() {
            return new MyClass<E>(new ComparableComparatorBridge<E>());
        private static class ComparableComparatorBridge<E extends Comparable<E>> implements Comparator<E> {
            public int compare(E o1, E o2) {
                return o1.compareTo(o2);
    }

  • Dreamweaver silently detects syntax problem

    I have a .cfm file which I've been maintaining for a few years. Recently while editing the file in DW6, DW began to fail to recognize that the file is a Cold Fusion file.  Common keyboard shortcuts, both general and CF-specific just won't function.  Menu items under "Insert...ColdFusion Objects" are all disabled.
    After 90 minutes of progressively removing a few lines of code, saving and closing, then reopening the file, I tracked the problem down to the presence of 1 line of ColdFusion code.
    I happened to see at the bottom of the edit window (in the part of the status bar which shows CF code nesting) that <cfinvoke> was listed, where there was none in the file I was having trouble with.  It turns out the line of "bad" code was a <cfinclude>, and the file it referenced had a <cfinvoke> without a closing </cfinvoke>
    The reason for this long post under Dreamweaver, is that DW was clearly detecting a syntax problem, but instead of identifying the problem, it just stopped functioning normally, and acted in a truely weird way.
    I do NOT have "Enable Related Files" active.  For DW to wanter out into other files and gag on a syntax error, then not to report the problem, was totally unexpected.
    I consider the primary "bug" to be in failing to report the syntax error.  Secondarily, syntax checking in related files should probably be controlled by the "related files" preference option.
    This is DW CS6, v 12.1, build 5949.

    Did you report this to Adobe?
    Bug Report & Feature Request Form
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Nancy O.

  • Syntax problem After the Upgrade to SCM 7.0

    We are facing one problem during the upgrade process in the sandbox environment.
    After the upgrade we have completed the SPAU corrections ,while doing the SPAU corrections we found that one function module is not in active mode. We have checked the syntax,problem is there. we have tried to retrieve to the older version. But there are some notes were implemented during the 4.1 version. Those notes are now appearing in the SPAU with question mark.
    We have reverted all the notes but still the code is having syntax problem and the code is in the 4.1 version only.
    Please tell me how to solve it...
    Moderator message - Welcome to SCN.
    But
    Moderator message - Cross post locked(please pick one forum or the other)
    Edited by: Rob Burbank on Nov 3, 2009 12:03 PM

    Hello Bouchards,
    Thank you for the question.  You can find Frequent Locations under Settings > Privacy > Location Services > System Services:
    You can find more information at the following link:
    iOS 7: Understanding Location Services
    http://support.apple.com/kb/HT5594
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • A Random Numbers Syntax?

    Does anyone know a random numbers syntax to pick numbers from 2-14?

    http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Bbetween%2C+%2B%22random+numbers%22&col=javaforums

  • Syntax problem with BDC perform

    Dear Friends,
    small problem in BDC Perform syntax but I am not getting how to do this..
    I have writen the code like this in my BDC byt its throughing the error...Here I want to do the validation on each and every field. I mean If that field values are empty i don't want to change the SAP field value.
    my code is like this.
        PERFORM dynpro USING:
        'X' 'SAPLMGMM' '0080'.
        IF NOT p_int_matl-werks IS INITIAL.
        ' ' 'RMMG1-WERKS' p_int_matl-werks.
        ENDIF.
        IF NOT p_int_matl-werks IS INITIAL.
        ' ' 'RMMG1-LGORT' p_int_matl-lgort.
          ENDIF.
        ' ' 'BDC_OKCODE' '/00'.
    pls give me exact code how to do this...
    Thanks
    Sridhar

    Hi sridher,
    1. this kind of syntax ie. IF will give error.
    2. If ur requirement is : blank value should not be put in bdc,
    3. then one way is to change / write the logic
        inside the form itself.
    4. ie. inside the routine/form DYNPRO.
    5. So, it will be then general for all performs.
    regards,
    amit m.

  • Numbers sorting problem

    I know that this problem may have been asked before but I searched and could not find a similar situation.
    I have a spreadsheet that will not sort the contents of a cell correctly. As an example, the table has two columns, the first is formatted as a date, the second as text data. I enter dates in random order and just put a, b, c, d etc in order in the second column. Selecting one cell in the second column, I add background color and a black line border.
    When I sort using the date column, the color background moves with the letter but the black border stays at the original cell address.
    Is this a bug, or have I missed a setting somewhere?

    Yes, it does do that. Without documentation saying what it is supposed to do, it isn't proper to call it a bug. Maybe that was an intended result. Seems kind of strange to move the fill color but not the borders but I can think of examples where you might want it that way, or the opposite way, or for both to move or neither to move.
    Edit: I note that Excel 2008 does the same thing. Therefore it makes it very difficult to call it a bug. I do not know if Excel has any settings to change that behavior. To my knowledge, Numbers does not.
    Message was edited by: Badunit

  • Numbers formula problem

    I have the following numbers, 20 in total. Numbers are from 0-9.
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
    3 7 8 1 2 6 6 7 3 1   0   7   0   1   2    2   1   6   8   2
    i have another row where I want to put all the numbers that exist in the row 2. numbers that do not appear in that row should not appear in my other row.
    But i just want to display the numbers once. The result would be like this:
    0 1 2 3 6 7 8
    Each number in a different cell.
    4,5 and 9 do not appear.
    I Hope you could understand my problem. I could post a screenshot, but this forum is buggy.
    many thanks,

    Splitting a series of data into more than one column or row complicates life.  But if it is important to do that (perhaps for ease of data entry) then here is one way to accomplish what I understand you are looking for:
    This is the sample data table (I reduced the number of columns for demonstration purposes):
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    DATA 1
    16
    15
    17
    16
    19
    17
    16
    16
    16
    18
    15
    14
    14
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    DATA 2
    11
    9
    12
    10
    12
    14
    13
    11
    12
    14
    15
    13
    14
    15
    18
    Then you can create a "Helper Table" that looks like this (in practice it will have many more rows):
    Value
    Distinct
    Ranked
    DATA 1
    DATA 1
    9
    16
    16
    10
    15
    15
    11
    17
    17
    12
    16
    13
    19
    19
    14
    17
    15
    The formula in A2 of the Helper Table, copied down as far as you can go until you get a red triangle range error is, is:
       =INDEX(UNION.RANGES(FALSE,Data::$A$1,Data::$2,Data::$4),1,ROW())
              (The $2 and $4 appear in this pasted formula means to anchor to those rows. You get that by clicking the row number to select the row)
    The formula in B2, copied down, is:
       =IFERROR(IF(COUNTIF(A$1:A2,A2)=1,A2,""),"")
    The formula in C2, copied down, is:
        =IFERROR(SMALL(B,ROW()−1),"")
        (The B here is the column B address token which you get by clicking the column letter to select the column.)
    Your summary table would look something like this:
    Durchmesser
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    The formula in B2, copied right until you get a blank, is:
       =IFERROR(INDEX(Helper Table::$C,COLUMN()),"")
    SG

  • Numbers filtering problem

    Hi guys,
    I have a problem with numbers' filtering function here.
    1. I have a table of about 150 rows and 6 columns.
    2. The data consists about 42 categories and I wish to sort out each item.
    3. when I chose the column and try to filter the table, I found there list only about 22 items on the pop-up list.
    where are those missing items ?
    Could someone help me with this?
    Mike

    2. The data consists about 42 categories and I wish to sort out each item.
    3. when I chose the column and try to filter the table, I found there list only about 22 items on the pop-up list.
    Though the pop-up (or drop-down or whatever it's called) list maxes out at only 22 or so items, you can work with larger numbers in the Sort & Filter panel at the right.
    SG

  • Numbers search problem

    I have Numbers 08, OX, the search works some of the time but will suddenly quit. The other day I was searching books by a certain author, to compare to a list of her books, trying to figure out which ones I had not read. (yes, I keep a log of the books I have read). For instance, I had searched & found a book, then searched for another, no find. Yet, when I looked at the one before, I see the one I searched for a few lines below. I tried other searches that should have landed on books but nothing happened. I quit Numbers & then checked it again, nada. It is working today...did it just need a reboot of Mac? I really can't imagine software that requires that. Oh yes, there were about 30 books that I searched.
    Thanks for your help in solving my problem in Numbers.

    I have Numbers 08, OX, the search works some of the time but will suddenly quit. The other day I was searching books by a certain author, to compare to a list of her books, trying to figure out which ones I had not read. (yes, I keep a log of the books I have read). For instance, I had searched & found a book, then searched for another, no find. Yet, when I looked at the one before, I see the one I searched for a few lines below. I tried other searches that should have landed on books but nothing happened. I quit Numbers & then checked it again, nada. It is working today...did it just need a reboot of Mac? I really can't imagine software that requires that. Oh yes, there were about 30 books that I searched.
    Thanks for your help in solving my problem in Numbers.

  • HT1338 OS X Numbers Update Problem...

    OS X Version 10.9.1 on 27" late 2009 iMac.
    App store Updates, shows 'Numbers' updated to v3.0.1 , but version 2.3 was not removed.
    What would be the problem, and how do I remove version 2.3 'Numbers'  ...?

    Yes, it's possible it could be the RAM.  To test that theory out, pull 1 stick out.  This will leave you with 2GB RAM.  Try to install Lion as you were.  If you still get the panic, then swap RAM sticks.  Try again.  If you are still getting panics, then it is likely something else, unless both of your RAM sticks are bad, which is unlikely but possible i suppose.

  • Pages numbers paiste problem

    Unlike prior versions of Pages and Numbers when paisting Numbers cells into 5.01 Pages the cells loose formating requiring manual expansion.  Cells only paist into 1 page then disapear disregarding page breaks. This problem has rendered both applications unusable for my contract preperation.

    Apple has removed over 90 features from Pages 5, and similarly many from Numbers 4.
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Pages/Numbers '09 should still be in your Applications/iWork folder.
    Archive/trash Pages 5/Numbers 4, after Exporting your files to older versions or Word or Excel, and rate/review them in the App Store, then get back to work.
    Peter

  • Large numbers calculation problem (determinant calculation)

    Hello experts,
    I have really interesting problem. I am calculatig determinant in ABAP with a large numbers (in CRM 5.0 system).
    My formula for determinant is :
    FORM calculate_determinant USING    det      TYPE zsppo_determinant
                               CHANGING value    TYPE f .
      value =
        (  1 * det-a11 * det-a22 * det-a33 * det-a44 ) + ( -1 * det-a11 * det-a22 * det-a34 * det-a43 ) +
        ( -1 * det-a11 * det-a23 * det-a32 * det-a44 ) + (  1 * det-a11 * det-a23 * det-a34 * det-a42 ) +
        ( -1 * det-a11 * det-a24 * det-a33 * det-a42 ) + (  1 * det-a11 * det-a24 * det-a32 * det-a43 ) +
        ( -1 * det-a12 * det-a21 * det-a33 * det-a44 ) + (  1 * det-a12 * det-a21 * det-a34 * det-a43 ) +
        (  1 * det-a12 * det-a23 * det-a31 * det-a44 ) + ( -1 * det-a12 * det-a23 * det-a34 * det-a41 ) +
        ( -1 * det-a12 * det-a24 * det-a31 * det-a43 ) + (  1 * det-a12 * det-a24 * det-a33 * det-a41 ) +
        (  1 * det-a13 * det-a21 * det-a32 * det-a44 ) + ( -1 * det-a13 * det-a21 * det-a34 * det-a42 ) +
        ( -1 * det-a13 * det-a22 * det-a31 * det-a44 ) + (  1 * det-a13 * det-a22 * det-a34 * det-a41 ) +
        (  1 * det-a13 * det-a24 * det-a31 * det-a42 ) + ( -1 * det-a13 * det-a24 * det-a32 * det-a41 ) +
        ( -1 * det-a14 * det-a21 * det-a32 * det-a43 ) + (  1 * det-a14 * det-a21 * det-a33 * det-a42 ) +
        (  1 * det-a14 * det-a22 * det-a31 * det-a43 ) + ( -1 * det-a14 * det-a22 * det-a33 * det-a41 ) +
        ( -1 * det-a14 * det-a23 * det-a31 * det-a42 ) + (  1 * det-a14 * det-a23 * det-a32 * det-a41 )
    ENDFORM.
    Det values are also f type. Problem is, that for several numbers I got the right values and for another det values I got wrong values... I also try to retype variable value on type p, but without success. Maybe I used wrong types or there is some ABAP rounding of numbers which cause wrong result.
    Any good ideas of solutions. <text removed>. Thanks for your time.
    Edited by: Matt on Sep 14, 2010 9:17 AM

    Hi Lubos,
    phew! that sounds far from SAP scope, but from Maths' numerical methods. Let's see if I can remember something about my lessons at University...
    - One issue can arise when adding and subtracting terms which are very similar, because the error tends to arise quite fast. Try to add the positive terms on one hand, and the negative terms on the other hand, then subtract one from the other.
    - Please take into account that the determinant value can be significantly close to zero when the condition number of the matrix is low, that is, when the range is 4 but the whole determinant is close to 0. Instead, try a [Singular Value Decomposition|http://en.wikipedia.org/wiki/SVD_(mathematics)] or an [LU decomposition|http://en.wikipedia.org/wiki/LU_decomposition]
    I hope this helps. Kind regards,
    Alvaro

  • Numbers a problem with iSO 6

    My numbers app formula input no longer works with iOS6
    How do I correct problem?

    If you would show us the whole ULOG message, we would be able to see which process
    generated this message. Usually it is harmless, if two cleanupsrvs or two
    tmadmins are run at the same time.
         Scott Orshan
    Sebastian Correa wrote:
    Hello masters, I have the following problem:
    I have Tuxedo running under SunOS 5.5.1, I connect this Tuxedo with another Domain
    Tuxedo, running under OSS-Tandem (NonStop Tuxedo), For three days I didn't have
    problems but today the following message appears in the Tuxedo under Sun log:
    TUXEDO Version 6.5 SunOS 5.5.1 Generic_103640-29 sun4u sparc SUNW,Ultra-1.
    LIBTUX_CAT:577: ERROR: Unable to register because the slot is already owned by
    another process
    Anything can help me??
    Thanks.

  • Numbers format problem

    i select 1 cell slide right to select 3 cells. Moving over the second cell it selects a block of cells i don't want, how do i rectify this problem so as i only select the 3 cells i want?

    Hi rr,
    I've copied your second post into your first post to keep the thread intact.
    rrandrr
    26/01/2013 4:15 PM 
    Thanks to previous replys but they don't seem to be solving my problem. probably because Im not describing my problem correctly.
    I dont want to remove the data in the cells mentioned..
    E.G I want to select G1,H1,I3 cells. When I try to select them, in anyway ive tried, as i select H1 it auto selects a block of cells B123 to I123 inclusive. I been playing whith this sheet for ages & think I may have formatted those cells in some way. I need to unformat that group so as i can select only the 3 I want. Any suggestion now that i've explained it that way?  Thanks in anticipation.
    I meant to mention I'm on Desktop Mac, OS X Version 10.7.5, Numbers '09 Version 2.3(554).
    numbers 
    Hi again,
    I see what you mean.
    I'll have a think about it.
    Ian.

Maybe you are looking for

  • C903 error with Date & Time

    Hi all, First time posting here. I have a S.E. C903, which has been great but recently developed a fault with the calender/date & time settings. Basically it wont let me set them to the correct time, wvery time I re-set it, it wont save. Ive tried ta

  • Issue in 10.6.7

    hello, I have macpro updated to 10.6.7 recently I bought AIPTEK slimline 600u premium II. I installed the cd that came with it having penpad 1.75. the pen worked for a few seconds then stopped.since then it hasn't worked. I searched for latest versio

  • Error Importing IDOCs in SM58

    Hello, I'm trying to import an IDOC by RFC with a RFC user with few permissions. The Idoc stills with error in SM58 transaction with message "You're not authorized to send IDOCs of message type ORDRSP"... If a press F6 to "in theory" reprocess the me

  • OMWB Create tablespace...

    I am migrating from Informix to Oracle !0g using OMWB and the following 'Create Tablespace' statements have been generated by the OMWB in the Create.sql script. I wish to migrate to tablespace SYSAUX which already exisits in the Oracle 10g schema. Ca

  • MacOS X for gaming...

    I hope this isn't off-topic or located in the wrong place. My apologies if it is. I am interested in using old G3 B&W's for very specific, dedicated gaming. As there will be a lot of these systems, would I be better off purchasing a 10 or unlimited c