+ Reply to Thread
Results 1 to 5 of 5

Factor of a number. Has Excel come up with a formula for this yet?

  1. #1
    Forum Contributor
    Join Date
    04-03-2009
    Location
    Anchorage, Alaska, USA
    MS-Off Ver
    Office 365
    Posts
    113

    Factor of a number. Has Excel come up with a formula for this yet?

    Hi,

    Factor 16 = 1,2,4,8,16
    Factor 20 = 1,2,4,5,10,20
    Factor 155 = 1,5,31,155

    Has Excel come up with a formula for this?

    =FACT( does not work.

    Thanks.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,364

    Re: Factor of a number. Has Excel come up with a formula for this yet?

    Please Login or Register  to view this content.
    in B1

    =factors(A1)

    where A1 is value to be factored.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,794

    Re: Factor of a number. Has Excel come up with a formula for this yet?

    does this work
    =LET(x,SEQUENCE(A1),y,IF(MOD(A1,x)=0,x,""),TEXTJOIN(",",TRUE,y))
    found on google
    https://www.reddit.com/r/excel/comme...s_using_excel/
    AND
    https://techcommunity.microsoft.com/...he/m-p/3865190

    =LET(Num, A2, All, SEQUENCE(Num), Factors, FILTER(All, MOD(Num, All)=0), TRANSPOSE(Factors))

    =LET(Num, A2, All, SEQUENCE(Num), Factors, FILTER(All, MOD(Num, All)=0), Factors)
    Attached Files Attached Files
    Last edited by etaf; 01-03-2024 at 04:35 PM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Contributor
    Join Date
    04-03-2009
    Location
    Anchorage, Alaska, USA
    MS-Off Ver
    Office 365
    Posts
    113

    Re: Factor of a number. Has Excel come up with a formula for this yet?

    Thank you both. I was looking for a formula solution rather than a VBA solution, so I'm landing on
    Please Login or Register  to view this content.
    as the working solution.

    Very nice! I should have seen that answer - I didn't consider SEQUENCE. But that does what needs to be done, which is to string together every mod-zero result for every number from 1 to your number. Thank you.

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,794

    Re: Factor of a number. Has Excel come up with a formula for this yet?

    you are welcome, but i did not come up with the formula as mentioned it was on other websites , which i have posted to ensure transparency

+ 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. [SOLVED] Excel formula to calculate inflation conversion factor
    By sunboy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-14-2023, 09:50 AM
  2. VBA Increase row number by a factor
    By Taemex in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2021, 10:33 PM
  3. Reduce a number by a constant factor
    By WheelerDealer01 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-08-2019, 09:47 AM
  4. [SOLVED] Factor Up and Factor Down Values Formula
    By alive555 in forum Excel General
    Replies: 6
    Last Post: 08-14-2015, 12:01 PM
  5. Replies: 14
    Last Post: 01-27-2015, 03:46 PM
  6. Replies: 3
    Last Post: 12-21-2013, 08:46 AM
  7. Smallest prime factor of a number
    By RazBoss in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-14-2009, 08:24 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