Auto fill my whole grid

leisuredog

New Member
Joined
Apr 1, 2018
Messages
1
I have a grid and I know the costs of the item, in all of the four corners I want excel to calculate the mean averages & fill in the other cells
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Please uplaod or post an example of your data, and specify in which cells u need the formula...

We are happy to help, but we need to know what help u need! :)
 
Upvote 0
this is just what I also need. Did you ever figure it out?
 
Upvote 0
Name a 2 x 2 range Corners and enter the corner values.

Name a rectangular range Tbl and name the top-left cell TopLeft.

Create two named formulas:
x Refers to: =(COLUMN() - COLUMN(Sheet1!TopLeft)) / (COLUMNS(Sheet1!Tbl) - 1)
y Refers to: =(ROW() - ROW(Sheet1!TopLeft)) / (ROWS(Sheet1!Tbl) - 1)

Then enter the formula in TopLeft and copy right and down:

=MMULT(MMULT(CHOOSE({1,2}, 1 - y, y), Corners), CHOOSE({1;2}, 1 - x, x))

And ...


A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
1​
1.00​
0.50​
2​
0.00​
1.00​
3​
4​
1.00​
0.94​
0.89​
0.83​
0.78​
0.72​
0.67​
0.61​
0.56​
0.50​
5​
0.90​
0.86​
0.82​
0.78​
0.74​
0.71​
0.67​
0.63​
0.59​
0.55​
6​
0.80​
0.78​
0.76​
0.73​
0.71​
0.69​
0.67​
0.64​
0.62​
0.60​
7​
0.70​
0.69​
0.69​
0.68​
0.68​
0.67​
0.67​
0.66​
0.66​
0.65​
8​
0.60​
0.61​
0.62​
0.63​
0.64​
0.66​
0.67​
0.68​
0.69​
0.70​
9​
0.50​
0.53​
0.56​
0.58​
0.61​
0.64​
0.67​
0.69​
0.72​
0.75​
10​
0.40​
0.44​
0.49​
0.53​
0.58​
0.62​
0.67​
0.71​
0.76​
0.80​
11​
0.30​
0.36​
0.42​
0.48​
0.54​
0.61​
0.67​
0.73​
0.79​
0.85​
12​
0.20​
0.28​
0.36​
0.43​
0.51​
0.59​
0.67​
0.74​
0.82​
0.90​
13​
0.10​
0.19​
0.29​
0.38​
0.48​
0.57​
0.67​
0.76​
0.86​
0.95​
14​
0.00​
0.11​
0.22​
0.33​
0.44​
0.56​
0.67​
0.78​
0.89​
1.00​

Link
 
Last edited:
Upvote 0
Hi shg,
I did exactly the same as above and every cell has 1.7555556

edit: scratch that, I didn't have TopLeft named properly. But now I do and every cell in Tbl reads 0.8444444
 
Upvote 0
Post the simplest version possible of a workbook that illustrates the problem.
 
Upvote 0
Upvote 0
x and y should be defined in Name Manager. Their values vary by position in the table.
 
Upvote 0
How do I do that? I just typed the formula in E1 & E2 and then named them in the name box.
 
Upvote 0
or do I just type the formula in the refers to part?

edit: yes that worked. thanks for your help and prompt responses.
 
Upvote 0

Forum statistics

Threads
1,215,013
Messages
6,122,694
Members
449,092
Latest member
snoom82

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