ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Functin to calculate arguments for a product? (12= 12*1, 4*3, 6*2. (https://www.excelbanter.com/excel-worksheet-functions/120114-functin-calculate-arguments-product-12%3D-12%2A1-4%2A3-6%2A2.html)

Excel Novice

Functin to calculate arguments for a product? (12= 12*1, 4*3, 6*2.
 


T. Valko

Functin to calculate arguments for a product? (12= 12*1, 4*3, 6*2.
 
Here's something you can play with:

A1 = 12

Enter this formula in B1 as an array using the key combination of
CTRL,SHIFT,ENTER (not just ENTER):

=SMALL(IF(MOD(A$1,ROW(INDIRECT("1:"&A$1)))=0,ROW(I NDIRECT("1:"&A$1))),ROWS($1:1))

Enter this formula in C1:

=A$1/B1

Select both B1 and C1 copy down until you get #NUM! errors.

Based on A1 = 12, the output will look like this:

..............B..............C
1...........1..............12
2...........2...............6
3...........3...............4
4...........4...............3
5...........6...............2
6..........12..............1
7......#NUM!.....#NUM!

Biff

"Excel Novice" wrote in message
...





All times are GMT +1. The time now is 06:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com