split tables into multiple tables based on two criteria and calculate values

tubrak

Board Regular
Joined
May 30, 2021
Messages
218
Office Version
  1. 2019
Platform
  1. Windows
hi all
this is the firs post I hope find solution to my request despite it's complicated so what I want split the data for any customer to table and calculate the values
based on two criteria if the cells B2= "" then split all data of customers to multiple tables from sheet DATA to sheet RESULT and if cell b2 = specific name then should just bring data for this customer and I put some formulas to show how calculate but I would show as in value not formulas in cells
sheet DATA
Microsoft Excel Worksheet 1.xlsx
ABCDEF
1ITEMDATENAMEINVOICE NODEBITCREDIT
2101/01/2021TubrikoAS-122,000.00-
3201/02/2021TubrikoAS-12100.00
4303/05/2021TubrikoAS-121,500.00
5405/05/2021TubrikoAS-131,000.00
6505/05/2021TribokoAS-142,000.00
7602/02/2021TribokoAS-153,000.00
8702/04/2021TribokoAS-141,500.00
9805/04/2021TribokoAS-152,000.00
10904/04/2021tarkinoAS-162,500.00
111004/04/2021tarkinoAS-17150.00
121104/04/2021tarkinoAS-16200.00
DATA


Result based on condition1 in sheet RESULT
Microsoft Excel Worksheet 1.xlsx
ABCDEFG
2name
3
4NAMEDEBITCREDITBALANCE
5Tubriko3,000.001,600.001,400.00
6
7ITEMDATENAMEINVOICE NODEBITCREDITBALANCE
8101/01/2021TubrikoAS-122,000.002,000.00
9201/02/2021TubrikoAS-12100.001,900.00
10303/05/2021TubrikoAS-121,500.00400.00
11405/05/2021TubrikoAS-131,000.001,400.00
12
13NAMEDEBITCREDITBALANCE
14Triboko5,000.003,500.001,500.00
15
16ITEMDATENAMEINVOICE NODEBITCREDITBALANCE
17105/05/2021TribokoAS-142,000.002,000.00
18202/02/2021TribokoAS-153,000.005,000.00
19302/04/2021TribokoAS-141,500.003,500.00
20405/04/2021TribokoAS-152,000.001,500.00
21
22NAMEDEBITCREDITBALANCE
23tarkino2,650.00200.002,450.00
24
25ITEMDATENAMEINVOICE NODEBITCREDITBALANCE
26904/04/2021tarkinoAS-162,500.002,500.00
271004/04/2021tarkinoAS-17150.002,650.00
281104/04/2021tarkinoAS-16200.002,450.00
RESULT
Cell Formulas
RangeFormula
C23:D23,C14:D14,C5:D5C5=SUM(E8:E11)
E5,G26,E23,G17,E14,G8E5=C5-D5
G27:G28,G18:G20,G9:G11G9=G8+E9-F9
Cells with Data Validation
CellAllowCriteria
B2ListTurbiko;Triboko;tarkino

expected result based on condition 2 in SHEET RESULT
Microsoft Excel Worksheet 1.xlsx
ABCDEFG
1nameTurbiko
2
3NAMEDEBITCREDITBALANCE
4Tubriko3,000.001,600.001,400.00
5
6ITEMDATENAMEINVOICE NODEBITCREDITBALANCE
7101/01/2021TubrikoAS-122,000.002,000.00
8201/02/2021TubrikoAS-12100.001,900.00
9303/05/2021TubrikoAS-121,500.00400.00
10405/05/2021TubrikoAS-131,000.001,400.00
RESULT1
Cell Formulas
RangeFormula
C4:D4C4=SUM(E7:E10)
E4,G7E4=C4-D4
G8:G10G8=G7+E8-F8
Cells with Data Validation
CellAllowCriteria
B1:B2ListTurbiko;Triboko;tarkino
C1:C2ListJAN;FEB;MAR;APR;MAY;JUN;JUL;AUG;SEP;OCT;NOV;DEC

thanks in advance
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
sorry maybe this makes confusion in image 3 should write the name in B2 not B1 as I explained
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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