Formula Required

abuShasan

New Member
Joined
Jan 12, 2022
Messages
1
Office Version
  1. 2010
Platform
  1. Windows
TARGET ANALYSIS.xlsx
ABCDEFGHIJKLMNOPQRST
1FOR THE MONTH OF JANUARY 2022
2INV.DateCustomerPlace Of SupplyGSTINHSNGSTPcsValueDiscountTransport TaxableSGSTCGSTIGSTInvoiceType
3No.CodeRateChargesValueRateAmountRateAmountRateAmountValue
4
5NO OF INVOICES SUB TOTAL18SUB TOTAL69392535.000.000.00392535.005256.175256.179114.46412163.00
6NO OF INVOICES TOTAL18TOTAL69392535.000.000.00392535.005256.175256.179114.46412163.00
7GST/21-22/3711/Jan/22CASH b2cs27-Maharashtra27x UNREGISTERED410712005.0027852.507852.502.50%196.312.50%196.310.00%0.008245.00b2cs
8GST/21-22/3722/Jan/22Unique Furnishings24-Gujarat24AEOPM9168D1Z6410712005.00213487.5013487.500.00%0.000.00%0.005.00%674.3814162.00b2b
9GST/21-22/3733/Jan/22Royal Interiors27-Maharashtra27AAJPK7686H1Z4410712005.00319538.7519538.752.50%488.472.50%488.470.00%0.0020516.00b2b
10GST/21-22/3744/Jan/22Syed Hashim Akbar Hussaini36-Telengana36x UNREGISTERED410712005.00318500.0018500.000.00%0.000.00%0.005.00%925.0019425.00b2cs
11GST/21-22/3754/Jan/22CASH b2cs27-Maharashtra27x UNREGISTERED410712005.00310957.5010957.502.50%273.942.50%273.940.00%0.0011505.00b2cs
12GST/21-22/3765/Jan/22Unique Furnishings24-Gujarat24AEOPM9168D1Z6410712005.00426812.5026812.500.00%0.000.00%0.005.00%1340.6328153.00b2b
13GST/21-22/3776/Jan/22Unique Furnishings24-Gujarat24AEOPM9168D1Z6410712005.00114062.5014062.500.00%0.000.00%0.005.00%703.1314766.00b2b
14GST/21-22/3787/Jan/22Syed Hashim Akbar Hussaini36-Telengana36x UNREGISTERED410712005.00638218.7538218.750.00%0.000.00%0.005.00%1910.9440130.00b2cs
15GST/21-22/3797/Jan/22Unique Furnishings24-Gujarat24AEOPM9168D1Z6410712005.00857427.5057427.500.00%0.000.00%0.005.00%2871.3860299.00b2b
16GST/21-22/3807/Jan/22Sagar Seat Covers27-Maharashtra27AAMPK7178H1Z6410712005.00211830.0011830.002.50%295.752.50%295.750.00%0.0012422.00b2b
17GST/21-22/3818/Jan/22Aar Kay & Co.27-Maharashtra27AACPV9252B1ZM410712005.00215515.0015515.002.50%387.882.50%387.880.00%0.0016291.00b2b
18GST/21-22/3828/Jan/22S R Luxuries27-Maharashtra27x UNREGISTERED410712005.00218777.5018777.502.50%469.442.50%469.440.00%0.0019716.00b2b
19GST/21-22/3838/Jan/22CASH b2cs27-Maharashtra27x UNREGISTERED410712005.00310192.5010192.502.50%254.812.50%254.810.00%0.0010702.00b2cs
20GST/21-22/38410/Jan/22Unique Furnishings24-Gujarat24AEOPM9168D1Z6410712005.00213780.0013780.000.00%0.000.00%0.005.00%689.0014469.00b2b
21GST/21-22/38510/Jan/22CASH b2cs27-Maharashtra27x UNREGISTERED410712005.00730127.5030127.502.50%753.192.50%753.190.00%0.0031634.00b2cs
22GST/21-22/38610/Jan/22CASH b2cs27-Maharashtra27x UNREGISTERED410712005.00835010.0035010.002.50%875.252.50%875.250.00%0.0036761.00b2cs
23GST/21-22/38711/Jan/22CASH b2cs27-Maharashtra27x UNREGISTERED410712005.00625200.0025200.002.50%630.002.50%630.000.00%0.0026460.00b2cs
24GST/21-22/38811/Jan/22CASH b2cs27-Maharashtra27x UNREGISTERED410712005.00525245.0025245.002.50%631.132.50%631.130.00%0.0026507.00b2cs
Sheet1


I have the above sales sheets in excel and i want to create a summary of sales depending on the customer as below

TARGET ANALYSIS.xlsx
ABCDEFGHIJKLMNOPQR
1LOCAL+CASHKKOMSK2 + SSDELHICUMULATIVE
2TARGETACTUALVARTARGETACTUALVARTARGETACTUALVARTARGETACTUALVARTARGETACTUALVARTARGETACTUALVAR
3
Sheet2


If customer (column C sheet 1) states "KK Traders" I want to add invoice value (column S) to column E in sheet 2

If customer (column C sheet 1) states "K2 or Starshine" I want to add invoice value (column S) to column K in sheet 2

If customer (column C sheet 1) states "Hasan Impex" I want to add invoice value (column S) to column N in sheet 2

If customer (column C sheet 1) states other than "K2 or Starshine" & "Hasan Impex" and (column D sheet 1) states other than "27-Maharashtra" I want to add invoice value (column S) to column H in sheet 2

If neither of the above conditions are met then i want to add invoice value (column S) column B in sheet 2

Need help with above formula
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
you can do that with a nested IF , lookup or a countif()
BUT lets take
CASH b2cs, as none of your customer names exist in the list sample
Has 5 Invoice numbers
Lets pretend for sake of sample that "CASH b2cs" was "KK Traders"
Are you adding up every entry of column S for "KK Traders" on Sheet 1 and then adding it to E3 on sheet2
SUMIF()
IF ( countif(sheet1!C:C, "KK Traders" )>0 , SUMIF( Sheet1!C:C, "KK Traders" , Sheet1!S:S) +E3 , IF ( next customer

will there only be 1 row on sheet2

What cell is this formula going into on sheet2
 
Upvote 0
Welcome , as you did not mention summation of invoices
Book1
ABCDEFGHIJKLMNOPQR
1LOCAL+CASHKKOMSK2 + SSDELHICUMULATIVE
2TARGETACTUALVARTARGETACTUALVARTARGETACTUALVARTARGETACTUALVARTARGETACTUALVARTARGETACTUALVAR
382450000
4001416200
5205160000
6001942500
7115050000
8002815300
9001476600
10004013000
11006029900
12124220000
13162910000
14197160000
15107020000
16001446900
17316340000
18367610000
19264600000
20265070000
Sheet2
Cell Formulas
RangeFormula
B3:B20B3=IF(AND(E3=0,H3=0,K3=0,N3=0),Sheet1!S7,0)
E3:E20E3=IF(Sheet1!C7="KK Traders",Sheet1!S7,0)
H3:H20H3=IF(AND(OR(Sheet1!C7<>"K2 ",Sheet1!C7<>"Starshine",Sheet1!C7<>"Hasan Impex"),Sheet1!D7<>"27-Maharashtra"),Sheet1!S7,0)
K3:K20K3=IF(OR(Sheet1!C7="K2 ",Sheet1!C7="Starshine"),Sheet1!S7,0)
N3:N20N3=IF(Sheet1!C7="Hasan Impex",Sheet1!S7,0)
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,200
Members
453,022
Latest member
RobertV1609

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