Jul 04 2023 09:30 AM
For example, the 6 factors of the number 2,023 are 1, 7, 17, 119, 289 and 2023 (1x2023=2023, 7x289=2023 and 17x119=2023).
Jul 05 2023 01:05 PM - edited Jul 05 2023 01:10 PM
SolutionLet's say your number is in A2.
If you want the factors in cells below each other:
=LET(Num, A2, All, SEQUENCE(Num), Factors, FILTER(All, MOD(Num, All)=0), Factors)
If you want the factors in cells next to each other, from left to right:
=LET(Num, A2, All, SEQUENCE(Num), Factors, FILTER(All, MOD(Num, All)=0), TRANSPOSE(Factors))
If you want the factors in a single cell, separated by commas and spaces:
=LET(Num, A2, All, SEQUENCE(Num), Factors, FILTER(All, MOD(Num, All)=0), TEXTJOIN(", ", TRUE, Factors))
Jul 05 2023 02:14 PM
Jul 08 2023 03:51 PM
Jul 09 2023 12:10 AM
That would be
=LET(Num,A2,All,SEQUENCE(Num-13, , 13),Factors,FILTER(All,MOD(Num,All)=0),Factors)
Jul 09 2023 10:37 AM
Jul 09 2023 12:15 PM
Sorry, forgot about that.
=LET(Num,A2,All,SEQUENCE(MIN(Num-13,1487), , 13),Factors,FILTER(All,MOD(Num,All)=0),Factors)
Jul 09 2023 02:18 PM