Closed Thread
Results 1 to 5 of 5

prime-factors

  1. #1
    Registered User
    Join Date
    04-03-2013
    Location
    ewyork
    MS-Off Ver
    Excel 2003
    Posts
    12

    prime-factors

    Hi,

    I am looking for a script to decompose a list of numbers into their prime factors.

    Attached is a file with an example of what I am looking for.

    Thanks for your help,

    A.............B

    56.......2 * 2 * 2 * 7
    22.......2 * 11
    36......2 * 2 * 3 * 3
    84......etc
    236.....
    457.....
    826.....

    Decomposition in prime factor
    I have a list of numbers in column A
    I need a script that would decompose these numbers in prime factors
    The result should appear in column B

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: prime-factors

    Same question as here?

    http://www.excelforum.com/excel-prog...me-number.html
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,610

    Re: prime-factors

    A Google search would have given you the solution immediately without having to post twice on this forum

  4. #4
    Registered User
    Join Date
    04-03-2013
    Location
    ewyork
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: prime-factors

    cant find answer

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: prime-factors

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed 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