List all possible results of a formula

Fraxav

New Member
Joined
Dec 7, 2020
Messages
16
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am not sure if this falls into the formula or VBA realm, but I am trying to plot all the possible values in a reference cell against the corresponding result of a dependent formula.
In the example below, the value in cell F4 is used by the formulas in G6:G24 to return a several "cost per sample" values, which are then added up to the total in G25. I am trying to plot the number of samples (F4) against the resulting total cost (G25) for each sample number between 1-100. To do so I would need a table of course, but how to make said table automatically without me having to manually type every combination of F4 and G25?

1619194980993.png
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Is this what you mean
+Fluff 1.xlsm
EFGHIJKLMNOPQRSTUVWXYZ
51234567891011121314151617181920
60.18710.1870.3740.5610.7480.9351.1221.3091.4961.6831.872.0572.2442.4312.6182.8052.9923.1793.3663.5533.74
70.1210.120.240.360.480.60.720.840.961.081.21.321.441.561.681.81.922.042.162.282.4
80.0110.010.020.030.040.050.060.070.080.090.10.110.120.130.140.150.160.170.180.190.2
90.0210.3333330.0070.0140.0210.0280.0350.0420.0490.0560.0630.070.0770.0840.0910.0980.1050.1120.1190.1260.1330.14
104.37814.3788.75613.13417.51221.8926.26830.64635.02439.40243.7848.15852.53656.91461.29265.6770.04874.42678.80483.18287.56
111.5111.513.024.536.047.559.0610.5712.0813.5915.116.6118.1219.6321.1422.6524.1625.6727.1828.6930.2
120.0110.010.020.030.040.050.060.070.080.090.10.110.120.130.140.150.160.170.180.190.2
130.00133.950.033950.06790.101850.13580.169750.20370.237650.27160.305550.33950.373450.40740.441350.47530.509250.54320.577150.61110.645050.679
140.19117.53.34256.68510.027513.3716.712520.05523.397526.7430.082533.42536.767540.1143.452546.79550.137553.4856.822560.16563.507566.85
151.750.0350.061250.12250.183750.2450.306250.36750.428750.490.551250.61250.673750.7350.796250.85750.918750.981.041251.10251.163751.225
161.750.0350.061250.12250.183750.2450.306250.36750.428750.490.551250.61250.673750.7350.796250.85750.918750.981.041251.10251.163751.225
Main
Cell Formulas
RangeFormula
G5:DB5G5=SEQUENCE(,100)
G6:DB16G6=E6:E16*F6:F16*SEQUENCE(,100)
Dynamic array formulas.
 
Upvote 0
You might also look into Data Tables, which is a built-in tool that does what you're asking. Check out this link:

 
Upvote 0
Solution
Thank you very much both of you! Fluff, I think what you did is actually what I was looking for, but I only needed to propagate the formula for the total. Good to know that this can be achieved with formulas too! However, data tables are a much simpler way (for me, at least) to accomplish what I wanted so I have marked that as the solution for other newbies like me :)
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,069
Messages
6,128,600
Members
449,460
Latest member
jgharbawi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top