Post calculated result based on drop down text selected

r71lima

New Member
Joined
Dec 19, 2011
Messages
6
Office Version
  1. 2010
Platform
  1. Windows
Hopefully this will make sense.

My worksheet is to be a list of purchased items that are split between 3 people. Only one person will make the full purchase but then the other two will be responsible for paying that person back their 1/3 of the rest of the cost.

I have chosen to use a drop down list where only the first initials of each of the three people are in the list. The initial of the person that paid for all of the purchase can be chosen and I hoped to have a way to have the total amount split into thirds but only the result of that 1/3rd of the total is attributed to the names who DID NOT already pay. Column G has the drop down list of initials that is hidden in column O3 through O5. The calculation of the total divided by 3 is located in L1. I'm not sure how to handle to remaining amounts that cannot be divisible by 3 yet.

I've tried to attach what I have done so far. Thank you so much in advance for any time anyone is willing to help me resolve this task.

Still.xlsx
ABCDEFGHIJKP
1
2DATEPRODUCT DESCRIPTIONCOSTTAXSHIPPINGTOTALPDMATTSTEVETERRY
35/31/22Suteck Alcohol Still 8 Gal Stainless Steel$159.99$10.16$170.15T$56.72
4$0.00
5$0.00
6$0.00
7$0.00
8$0.00
9$0.00
10$0.00
11$0.00
12$0.00
13$0.00
Sheet1
Cell Formulas
RangeFormula
H3H3=IF(G3="T",$F3/$L$1,"0")
F3:F13F3=SUM(C3:E3)
Cells with Data Validation
CellAllowCriteria
G3:G13List=$O$2:$O$5
 

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 there a reason for splitting the cost of each item? A simpler approach is to track who paid for which item, which you do in column G with initials. Then determine the total paid by each individual and the total paid altogether. Divide the total paid altogether by 3 to determine everyone's even "fair" share. Then compare the fair share amount to what that individual has paid to determine whether they need to pay money into the pot for distribution to the others, or take money from the pot to reimburse them for their overpayment (as shown in green).
MrExcel_20220610.xlsx
ABCDEFGHIJKL
1Total->$ 727.27
2DATEPRODUCT DESCRIPTIONCOSTTAXSHIPPINGTOTALPDAmt Each Has PaidFair SharePay into (+) or take from (-) the pot
35/31/2022Item 116010.2170.15TMatt$ 303.00$ 242.42$ (60.58)
4Item 2100.00MSteve$ 209.11$ 242.42$ 33.31
5Item 333.00STerry$ 215.16$ 242.42$ 27.26
6Item 475.00S
7Item 590.00S
8Item 611.00M
9Item 75.50T
10Item 812.75T
11Item 9192.00M
12Item 1011.11S
13Item 1126.76T
Sheet6
Cell Formulas
RangeFormula
J1J1=SUM(J3:J5)
F3F3=SUM(C3:E3)
J3:J5J3=SUMIF($G$3:$G$13,LEFT($I3,1),$F$3:$F$13)
K3:K5K3=ROUND(SUM($J$3:$J$5/(COUNTA($I$3:$I$5))),2)
L3:L5L3=K3-J3
 
Upvote 0
I should have mentioned...after calculating the amt each has paid with the J3 formula, you could jump directly to the answer by using the M3 formula, and skip the other two columns (K:L).
MrExcel_20220610.xlsx
IJKLM
2Amt Each Has PaidFair SharePay into (+) or take from (-) the pot
3Matt$ 303.00$ 242.42$ (60.58)$ (60.58)
4Steve$ 209.11$ 242.42$ 33.31$ 33.31
5Terry$ 215.16$ 242.42$ 27.26$ 27.26
Sheet6
Cell Formulas
RangeFormula
J3:J5J3=SUMIF($G$3:$G$13,LEFT($I3,1),$F$3:$F$13)
K3:K5K3=ROUND(SUM($J$3:$J$5/(COUNTA($I$3:$I$5))),2)
L3:L5L3=K3-J3
M3:M5M3=AVERAGE($J$3:$J$5)-J3
 
Upvote 0
Is there a reason for splitting the cost of each item? A simpler approach is to track who paid for which item, which you do in column G with initials. Then determine the total paid by each individual and the total paid altogether. Divide the total paid altogether by 3 to determine everyone's even "fair" share. Then compare the fair share amount to what that individual has paid to determine whether they need to pay money into the pot for distribution to the others, or take money from the pot to reimburse them for their overpayment (as shown in green).
MrExcel_20220610.xlsx
ABCDEFGHIJKL
1Total->$ 727.27
2DATEPRODUCT DESCRIPTIONCOSTTAXSHIPPINGTOTALPDAmt Each Has PaidFair SharePay into (+) or take from (-) the pot
35/31/2022Item 116010.2170.15TMatt$ 303.00$ 242.42$ (60.58)
4Item 2100.00MSteve$ 209.11$ 242.42$ 33.31
5Item 333.00STerry$ 215.16$ 242.42$ 27.26
6Item 475.00S
7Item 590.00S
8Item 611.00M
9Item 75.50T
10Item 812.75T
11Item 9192.00M
12Item 1011.11S
13Item 1126.76T
Sheet6
Cell Formulas
RangeFormula
J1J1=SUM(J3:J5)
F3F3=SUM(C3:E3)
J3:J5J3=SUMIF($G$3:$G$13,LEFT($I3,1),$F$3:$F$13)
K3:K5K3=ROUND(SUM($J$3:$J$5/(COUNTA($I$3:$I$5))),2)
L3:L5L3=K3-J3
Only one of the partners will be sent to the store so the other two would have to pay their one third after the purchase
 
Upvote 0
I should have mentioned...after calculating the amt each has paid with the J3 formula, you could jump directly to the answer by using the M3 formula, and skip the other two columns (K:L).
MrExcel_20220610.xlsx
IJKLM
2Amt Each Has PaidFair SharePay into (+) or take from (-) the pot
3Matt$ 303.00$ 242.42$ (60.58)$ (60.58)
4Steve$ 209.11$ 242.42$ 33.31$ 33.31
5Terry$ 215.16$ 242.42$ 27.26$ 27.26
Sheet6
Cell Formulas
RangeFormula
J3:J5J3=SUMIF($G$3:$G$13,LEFT($I3,1),$F$3:$F$13)
K3:K5K3=ROUND(SUM($J$3:$J$5/(COUNTA($I$3:$I$5))),2)
L3:L5L3=K3-J3
M3:M5M3=AVERAGE($J$3:$J$5)-J3
The men are only using this sheet to know how much money they need to pay the person who purchased all of the items at the store. Later I believe they will probably want something more complicated or indepth in order to know profit versus cost etc... Right now it appears to only be about finding out how much each of them should pay the person that made the purchase at the store for each event.
 
Upvote 0
That seems a bit more complicated, but on a transaction-by-transaction basis, this is what it would look like:
MrExcel_20220610.xlsx
ABCDEFGHIJKLMNOPQ
1242.42242.42242.42Net out of pocket
2202.00139.41143.44Total received from others
3303.00209.11215.16Total paid for items directly out of pocket
4727.27141.42172.72170.70Total reimbursed to someone elseTotal->$ 727.27
5DATEPRODUCT DESCRIPTIONCOSTTAXSHIPPINGTOTALPDMSTTable below left shows amounts owed to purchaser (who is indicated with 0)Amt Each Has PaidFair SharePay into (+) or take from (-) the pot
65/31/2022Item 116010.2170.15T56.7256.720.00Matt$ 303.00$ 242.42$ (60.58)$ (60.58)
7Item 2100.00M0.0033.3333.33Steve$ 209.11$ 242.42$ 33.31$ 33.31
8Item 333.00S11.000.0011.00Terry$ 215.16$ 242.42$ 27.26$ 27.26
9Item 475.00S25.000.0025.00
10Item 590.00S30.000.0030.00
11Item 611.00M0.003.673.67
12Item 75.50T1.831.830.00
13Item 812.75T4.254.250.00
14Item 9192.00M0.0064.0064.00
15Item 1011.11S3.700.003.70
16Item 1126.76T8.928.920.00
Sheet6
Cell Formulas
RangeFormula
H1:J1H1=H3+H4-H2
H2:J2H2=SUM(($H$6:$J$16)*($G$6:$G$16=H$5))
H3:J3H3=SUMIF($G$6:G$16,H$5,$F$6:$F$16)
H4:J4,F4H4=SUM(H6:H16)
N4N4=SUM(N6:N8)
F6F6=SUM(C6:E6)
H6:J16H6=IF(H$5=$G6,0,$F6/COUNTA($H$5:$J$5))
N6:N8N6=SUMIF($G$6:$G$16,LEFT($M6,1),$F$6:$F$16)
O6:O8O6=ROUND(SUM($N$6:$N$8/(COUNTA($M$6:$M$8))),2)
P6:P8P6=O6-N6
Q6:Q8Q6=AVERAGE($N$6:$N$8)-N6
 
Upvote 0
Solution
That seems a bit more complicated, but on a transaction-by-transaction basis, this is what it would look like:
MrExcel_20220610.xlsx
ABCDEFGHIJKLMNOPQ
1242.42242.42242.42Net out of pocket
2202.00139.41143.44Total received from others
3303.00209.11215.16Total paid for items directly out of pocket
4727.27141.42172.72170.70Total reimbursed to someone elseTotal->$ 727.27
5DATEPRODUCT DESCRIPTIONCOSTTAXSHIPPINGTOTALPDMSTTable below left shows amounts owed to purchaser (who is indicated with 0)Amt Each Has PaidFair SharePay into (+) or take from (-) the pot
65/31/2022Item 116010.2170.15T56.7256.720.00Matt$ 303.00$ 242.42$ (60.58)$ (60.58)
7Item 2100.00M0.0033.3333.33Steve$ 209.11$ 242.42$ 33.31$ 33.31
8Item 333.00S11.000.0011.00Terry$ 215.16$ 242.42$ 27.26$ 27.26
9Item 475.00S25.000.0025.00
10Item 590.00S30.000.0030.00
11Item 611.00M0.003.673.67
12Item 75.50T1.831.830.00
13Item 812.75T4.254.250.00
14Item 9192.00M0.0064.0064.00
15Item 1011.11S3.700.003.70
16Item 1126.76T8.928.920.00
Sheet6
Cell Formulas
RangeFormula
H1:J1H1=H3+H4-H2
H2:J2H2=SUM(($H$6:$J$16)*($G$6:$G$16=H$5))
H3:J3H3=SUMIF($G$6:G$16,H$5,$F$6:$F$16)
H4:J4,F4H4=SUM(H6:H16)
N4N4=SUM(N6:N8)
F6F6=SUM(C6:E6)
H6:J16H6=IF(H$5=$G6,0,$F6/COUNTA($H$5:$J$5))
N6:N8N6=SUMIF($G$6:$G$16,LEFT($M6,1),$F$6:$F$16)
O6:O8O6=ROUND(SUM($N$6:$N$8/(COUNTA($M$6:$M$8))),2)
P6:P8P6=O6-N6
Q6:Q8Q6=AVERAGE($N$6:$N$8)-N6
Thankyou so much for your help.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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