+ Reply to Thread
Results 1 to 8 of 8

Prime Number just for fun

Hybrid View

  1. #1
    Paul Breslin
    Guest

    Re: Prime Number just for fun

    When I hold down the ENTER key, the cursor takes off down the sheet.
    Would there be a way of placing this in a module and coding it?
    Thanks,
    Paul
    ===========

    "daddylonglegs" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Used as a cell formula it needs to be confirmed with CTRL+SHIFT+ENTER so
    > that braces like these { } appear around the formula in the formula
    > bar.
    >
    > If you already have the formula in B1 then simply put the cursor
    > somewhere in the formula within the formula bar and hit CTRL+SHIFT
    > while holding down ENTER....
    >
    >
    > --
    > daddylonglegs
    > ------------------------------------------------------------------------
    > daddylonglegs's Profile:
    > http://www.excelforum.com/member.php...o&userid=30486
    > View this thread: http://www.excelforum.com/showthread...hreadid=521585
    >




  2. #2
    Gary Keramidas
    Guest

    Re: Prime Number just for fun

    you can try this, just change b2 to wherever you want the formula

    Range("b2").FormulaArray = _
    "=OR(A1=2,A1=3,ISNA(MATCH(TRUE,A1/ROW(INDIRECT(""2:"" & INT(SQRT(A1))))" _
    & "=INT(A1/ROW(INDIRECT(""2:"" & INT(SQRT(A1))))),0)))"

    --


    Gary


    "Paul Breslin" <[email protected]> wrote in message
    news:[email protected]...
    > When I hold down the ENTER key, the cursor takes off down the sheet.
    > Would there be a way of placing this in a module and coding it?
    > Thanks,
    > Paul
    > ===========
    >
    > "daddylonglegs" <[email protected]>
    > wrote in message
    > news:[email protected]...
    >>
    >> Used as a cell formula it needs to be confirmed with CTRL+SHIFT+ENTER so
    >> that braces like these { } appear around the formula in the formula
    >> bar.
    >>
    >> If you already have the formula in B1 then simply put the cursor
    >> somewhere in the formula within the formula bar and hit CTRL+SHIFT
    >> while holding down ENTER....
    >>
    >>
    >> --
    >> daddylonglegs
    >> ------------------------------------------------------------------------
    >> daddylonglegs's Profile:
    >> http://www.excelforum.com/member.php...o&userid=30486
    >> View this thread: http://www.excelforum.com/showthread...hreadid=521585
    >>

    >
    >




  3. #3
    Paul Breslin
    Guest

    Re: Prime Number just for fun

    Thanks very much - that worked just fine.
    Paul
    ------------


    "Gary Keramidas" <GKeramidasATmsn.com> wrote in message
    news:[email protected]...
    > you can try this, just change b2 to wherever you want the formula
    >
    > Range("b2").FormulaArray = _
    > "=OR(A1=2,A1=3,ISNA(MATCH(TRUE,A1/ROW(INDIRECT(""2:"" &
    > INT(SQRT(A1))))" _
    > & "=INT(A1/ROW(INDIRECT(""2:"" & INT(SQRT(A1))))),0)))"
    >
    > --
    >
    >
    > Gary
    >
    >
    > "Paul Breslin" <[email protected]> wrote in message
    > news:[email protected]...
    >> When I hold down the ENTER key, the cursor takes off down the sheet.
    >> Would there be a way of placing this in a module and coding it?
    >> Thanks,
    >> Paul
    >> ===========
    >>
    >> "daddylonglegs"
    >> <[email protected]> wrote in
    >> message
    >> news:[email protected]...
    >>>
    >>> Used as a cell formula it needs to be confirmed with CTRL+SHIFT+ENTER so
    >>> that braces like these { } appear around the formula in the formula
    >>> bar.
    >>>
    >>> If you already have the formula in B1 then simply put the cursor
    >>> somewhere in the formula within the formula bar and hit CTRL+SHIFT
    >>> while holding down ENTER....
    >>>
    >>>
    >>> --
    >>> daddylonglegs
    >>> ------------------------------------------------------------------------
    >>> daddylonglegs's Profile:
    >>> http://www.excelforum.com/member.php...o&userid=30486
    >>> View this thread:
    >>> http://www.excelforum.com/showthread...hreadid=521585
    >>>

    >>
    >>

    >
    >




  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,787
    Sorry guys, just all fingers and thumbs

    of course Tom's right......write out 100 times....

    I would hold down the Ctrl+Shift Keys and hit the Enter key
    I would hold down the Ctrl+Shift Keys and hit the Enter key
    I would hold down the Ctrl+Shift Keys and hit the Enter key
    I would hold down the Ctrl+Shift Keys and hit the Enter key
    I would hold down the Ctrl+Shift Keys and hit the Enter key
    I would hold down the ......

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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