Need help with formula

sajohnson05

New Member
Joined
Aug 21, 2013
Messages
20
I can not figure out my formula that I need. Below is what i am trying to do.

I have an invoice for $155K and need to split it between 162 locations based on square footage. I am trying to split by >100K, 100-300, 300-600 and <600K. I need the smaller to pay less then the larger facilities.

Any help would be great.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
You need to figure out the relative difference for the fees. For example:

ABCDEFGHIJK
1InvoiceWeightingsShares
2LocationSq. Ft.Amt. $ 155,000.00 025%6 $ 3,399.12 11.4
3A50 $ 3,399.12 10150%5 $ 6,798.25
4B250 $ 6,798.25 30180%3 $ 10,877.19
5C400 $ 10,877.19 601100%5 $ 13,596.49
6D700 $ 13,596.49 9999999
7E75 $ 3,399.12 $ 155,000.00
8F300 $ 6,798.25
9G100 $ 3,399.12
10H750 $ 13,596.49
11I299 $ 6,798.25
12J33 $ 3,399.12
13K575 $ 10,877.19
14L625 $ 13,596.49
15M800 $ 13,596.49
16N95 $ 3,399.12
17O222 $ 6,798.25
18P500 $ 10,877.19
19Q50 $ 3,399.12
20R950 $ 13,596.49
21S105 $ 6,798.25
22
23 $ 155,000.00

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
C3=INDEX(J2:J6,MATCH(B3,$G$2:$G$6))
I2=COUNTIFS($B$3:$B$21,">="&G2,$B$3:$B$21,"<"&G3)
J2=$E$2/$K$2*H2
K2=SUMPRODUCT(H2:H5,I2:I5)
J7=SUMPRODUCT(I2:I5,J2:J5)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



In this layout I have the locations in column A, and the square feet in column B. In column G and H I create the weightings. In G I have the square foot ranges to create the weightings. G2 to G3-1 is the lowest range. G3 to G4-1 the next. G4 to G5-1 the next, and G5 to G6 is the largest range. I started with saying that the G5 range will have a "full" fee. The other ranges are based on that. The next smallest range will have a fee that's 80% of the top one, and so on. Then I2:I5 uses COUNTIFS to find out how many properties are in that range. Finally, the J2:J5 formulas create a weighted average for each range, based on total properties. The C3 formula is merely a lookup to get the value from the table. The J7 and C23 formulas are just to insure that everything adds up OK.

Hope this helps.
 
Upvote 0

Forum statistics

Threads
1,215,047
Messages
6,122,858
Members
449,096
Latest member
Erald

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