delete column from sheet and move values ,sum to another sheet

abdo meghari

Active Member
Joined
Aug 3, 2021
Messages
465
Office Version
  1. 2019
hello
I have two sheets . the first contains values for two columns C,D , the other sheet contains values in column C what I want matching the items based on column B for two sheets . and delete the column D from first sheet and summing the values over each item in column C for the second sheet.
the data are about 1900 rows and will increase.
REPORT.xlsm
ABCD
1ITEMBRANDSALESRETURNS
21BS 1200R20 G580 TCF JAP15210
32BS 1200R24 G582 JAP940
43BS 1400R20 VSJ TCF JAP210
54BS 155 R12C R623 JAP180
65BS 155 R12C R624 INDO44
76BS 165 R13C R624 INDO84
87BS 175/70 R13 EP150 THI40
98BS 175/70 R14 EP150 THI80
109BS 185/65 R14 EP150 INDO84
1110BS 185/65 R14 TEC THI80
1211BS 185/65 R15 T005 INDO44
1312BS 185/70 R13 EP150 INDO84
1413BS 185R14C R624 INDO 40
1514BS 195 R14C 613 JAP124
1615BS 195 R15C R623 THI64
1716BS 195/55 R16 EP300 THI44
1817BS 195/60 R15 EP150 THI124
1918BS 195/65 R15 EP15 JAP80
2019BS 195/70 R15C R623 JAP84
2120BS 195/75 R16C R613 JAP44
2221BS 205/60 R16 T001 JAP40
2322BS 205/65 R15 EP150 INDO64
2423BS 215/45 R17 T001 JAP44
2524BS 215/55 R16 EP300 INDO44
2625BS 215/55 R17 MY-02 THI84
2726BS 215/55 R17 T005 JAP40
2827BS 215/55 R17 TG90 INDO164
2928BS 215/60 R16 EP30 THI42
3029BS 215/65 R16C R611 THI84
3130BS 215/70 R15C R623 THI234
3231BS 225/55 R16 T001 JAP40
3332BS 225/55 R17 EP300 THI124
3433BS 225/60 R16 EP300 JAP100
3534BS 225/60 R16 T001 JAP40
3635BS 225/60 R17 D-SPORT JAP44
3736BS 225/70 R15C R623 JAP80
3837BS 225/70 R16 D687 JAP84
3938BS 225/70 R16 H005 THI40
4039BS 225/70 R17 D697 THI40
4140BS 235/55 R17 ER30 JAP44
4241BS 235/55 R17 T005 THI40
4342BS 235/55 R18 E031 JAP80
4443BS 235/60 R16 T01 JAP40
4544BS 235/60 R17 D400 JAP84
4645BS 245/40 ZR20 S001 JAP40
4746BS 245/45 R19 T005 JAP40
4847BS 245/70 R16 D684 THI44
4948BS 245/70 R17 D684 JAP380
5049BS 245/75 R17 693A JAP40
5150BS 255/70 R16 H005 THI44
5251BS 265/50 R20 D-SPORT JAP40
5352BS 265/60R18 D840 JAP120
5453BS 265/70 R18 D684 JAP40
5554BS 275/40 R18 S007 JAP40
5655BS 275/40 R20 DSPORT JAP40
5756BS 275/45 R19 ALENZA JAP40
5857BS 275/55 R17 DSPORT JAP40
5958BS 275/70 R16 D694 JAP40
6059BS 275/70 R16 H005 THI44
6160BS 285/60 R18 T01 JAP84
6261BS 285/65 R17 R683 JAP84
6362BS 315/80 R22.5 G580 JAP80
6463BS 315/80 R22.5 R152 JAP40
6564BS 315/80 R22.5 R184 JAP01
6665BS 385/65 R22.5 R164 JAP105121
6766BS 445/65 R22.5 R164 JAP40
6867BS 650R16 R230 JAP160
6968BS 750R16 R230 TCF JAP740
7069BS 750R16 VSJ TCF JAP1120
7170BS 8.25R16 R180 JAP01
7271Dayton 315/80R22.5 DS50 THI010
7372FS 1200 R24 FSR4000 JAP220
7473FS 205/65 R15 TZ700 JAP44
7574FS 215/55 R17 TZ700 JAP84
7675FS 225/45 R17 TZ700 JAP44
SH1


REPORT.xlsm
ABC
1ITEMBRANDBALANCE
21BS 195 R14C 613 JAP12
32BS 175/70 R13 EP150 THI4
43BS 1400R20 VSJ TCF JAP21
54BS 1200R20 G580 TCF JAP152
65BS 1200R24 G582 JAP94
76BS 155 R12C R623 JAP18
87BS 155 R12C R624 INDO4
98BS 165 R13C R624 INDO8
109BS 195 R15C R623 THI6
1110BS 195/55 R16 EP300 THI4
1211BS 175/70 R14 EP150 THI8
1312BS 185/65 R14 EP150 INDO8
1413BS 185/65 R14 TEC THI8
1514BS 185/65 R15 T005 INDO4
1615BS 185/70 R13 EP150 INDO8
1716BS 185R14C R624 INDO 4
SH2



result
REPORT.xlsm
ABC
1ITEMBRANDSALES
21BS 1200R20 G580 TCF JAP152
32BS 1200R24 G582 JAP94
43BS 1400R20 VSJ TCF JAP21
54BS 155 R12C R623 JAP18
65BS 155 R12C R624 INDO4
76BS 165 R13C R624 INDO8
87BS 175/70 R13 EP150 THI4
98BS 175/70 R14 EP150 THI8
109BS 185/65 R14 EP150 INDO8
1110BS 185/65 R14 TEC THI8
1211BS 185/65 R15 T005 INDO4
1312BS 185/70 R13 EP150 INDO8
1413BS 185R14C R624 INDO 4
1514BS 195 R14C 613 JAP12
1615BS 195 R15C R623 THI6
1716BS 195/55 R16 EP300 THI4
1817BS 195/60 R15 EP150 THI12
1918BS 195/65 R15 EP15 JAP8
2019BS 195/70 R15C R623 JAP8
2120BS 195/75 R16C R613 JAP4
2221BS 205/60 R16 T001 JAP4
2322BS 205/65 R15 EP150 INDO6
2423BS 215/45 R17 T001 JAP4
2524BS 215/55 R16 EP300 INDO4
2625BS 215/55 R17 MY-02 THI8
2726BS 215/55 R17 T005 JAP4
2827BS 215/55 R17 TG90 INDO16
2928BS 215/60 R16 EP30 THI4
3029BS 215/65 R16C R611 THI8
3130BS 215/70 R15C R623 THI23
3231BS 225/55 R16 T001 JAP4
3332BS 225/55 R17 EP300 THI12
3433BS 225/60 R16 EP300 JAP10
3534BS 225/60 R16 T001 JAP4
3635BS 225/60 R17 D-SPORT JAP4
3736BS 225/70 R15C R623 JAP8
3837BS 225/70 R16 D687 JAP8
3938BS 225/70 R16 H005 THI4
4039BS 225/70 R17 D697 THI4
4140BS 235/55 R17 ER30 JAP4
4241BS 235/55 R17 T005 THI4
4342BS 235/55 R18 E031 JAP8
4443BS 235/60 R16 T01 JAP4
4544BS 235/60 R17 D400 JAP8
4645BS 245/40 ZR20 S001 JAP4
4746BS 245/45 R19 T005 JAP4
4847BS 245/70 R16 D684 THI4
4948BS 245/70 R17 D684 JAP38
5049BS 245/75 R17 693A JAP4
5150BS 255/70 R16 H005 THI4
5251BS 265/50 R20 D-SPORT JAP4
5352BS 265/60R18 D840 JAP12
5453BS 265/70 R18 D684 JAP4
5554BS 275/40 R18 S007 JAP4
5655BS 275/40 R20 DSPORT JAP4
5756BS 275/45 R19 ALENZA JAP4
5857BS 275/55 R17 DSPORT JAP4
5958BS 275/70 R16 D694 JAP4
6059BS 275/70 R16 H005 THI4
6160BS 285/60 R18 T01 JAP8
6261BS 285/65 R17 R683 JAP8
6362BS 315/80 R22.5 G580 JAP8
6463BS 315/80 R22.5 R152 JAP4
6564BS 315/80 R22.5 R184 JAP0
6665BS 385/65 R22.5 R164 JAP105
6766BS 445/65 R22.5 R164 JAP4
6867BS 650R16 R230 JAP16
6968BS 750R16 R230 TCF JAP74
7069BS 750R16 VSJ TCF JAP112
7170BS 8.25R16 R180 JAP0
7271Dayton 315/80R22.5 DS50 THI0
7372FS 1200 R24 FSR4000 JAP2
SH1




REPORT.xlsm
ABC
1ITEMBRANDBALANCE
21BS 195 R14C 613 JAP16
32BS 175/70 R13 EP150 THI4
43BS 1400R20 VSJ TCF JAP21
54BS 1200R20 G580 TCF JAP162
65BS 1200R24 G582 JAP94
76BS 155 R12C R623 JAP18
87BS 155 R12C R624 INDO22
98BS 165 R13C R624 INDO12
109BS 195 R15C R623 THI10
1110BS 195/55 R16 EP300 THI8
1211BS 175/70 R14 EP150 THI8
1312BS 185/65 R14 EP150 INDO12
1413BS 185/65 R14 TEC THI8
1514BS 185/65 R15 T005 INDO8
1615BS 185/70 R13 EP150 INDO12
1716BS 185R14C R624 INDO 4
SH2
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
See if this works for you:
(use a copy of your spreadsheet)
I wasn't sure if the Brand in the SH1 was unique so I am accumulating values if they repeat.

VBA Code:
Sub UpdateBalancesWithReturns()

    Dim shtSales As Worksheet, shtBal As Worksheet
    Dim rngSales As Range, arrSales As Variant
    Dim ReturnAmt As Double
    Dim rngBal As Range, arrBal As Variant
    Dim dictReturns As Object, dictKey As String
    Dim i As Long
   
    Set shtSales = Worksheets("SH1")
    Set shtBal = Worksheets("SH2")
   
    With shtSales
        Set rngSales = .Range("A2:D" & .Cells(Rows.Count, "B").End(xlUp).Row)
        arrSales = rngSales.Value
    End With
   
    With shtBal
        Set rngBal = .Range("A2:C" & .Cells(Rows.Count, "B").End(xlUp).Row)
        arrBal = rngBal.Value
    End With
       
    ' Load details range into Dictionary
    Set dictReturns = CreateObject("Scripting.dictionary")
   
    For i = 1 To UBound(arrSales)
        dictKey = arrSales(i, 2)
        ReturnAmt = arrSales(i, 4)
        If Not dictReturns.exists(dictKey) Then
            dictReturns(dictKey) = ReturnAmt
        Else
            dictReturns(dictKey) = dictReturns(dictKey) + ReturnAmt
        End If
    Next i
   
    ' For Balances Report get values from Dictionary
    For i = 1 To UBound(arrBal)
        dictKey = arrBal(i, 2)
        If dictReturns.exists(dictKey) Then
            arrBal(i, 3) = arrBal(i, 3) + dictReturns(dictKey)
        End If
    Next i
   
    ' Write back Balance Rpt with updated data
    rngBal.Value = arrBal
   
    ' Delete Return column from Sales / Returns sheet
    shtSales.Columns("D").Delete

End Sub
 
Upvote 0
thanks for this , but seem doesn't sum correctly for some items
this is what I got
REPORT.xlsm
ABC
1ITEMBRANDBALANCE
21BS 195 R14C 613 JAP20
32BS 175/70 R13 EP150 THI4
43BS 1400R20 VSJ TCF JAP21
54BS 1200R20 G580 TCF JAP162
65BS 1200R24 G582 JAP94
76BS 155 R12C R623 JAP18
87BS 155 R12C R624 INDO12
98BS 165 R13C R624 INDO16
109BS 195 R15C R623 THI14
1110BS 195/55 R16 EP300 THI12
1211BS 175/70 R14 EP150 THI8
1312BS 185/65 R14 EP150 INDO16
1413BS 185/65 R14 TEC THI8
1514BS 185/65 R15 T005 INDO12
1615BS 185/70 R13 EP150 INDO16
1716BS 185R14C R624 INDO 4
SH2

last thing sorry this point I don't mentioned . sometimes there is item in sheet SH1 but is not existed in SH2 . also I want adding to SH2 but this depends on just on values are existed in column D before delete the column . if the new item in column D is empty or zero then should not add to SH2 .
 
Upvote 0
I refreshed the SH1 & SH2 data from what you have posted in #1 and got the below which matches your results with the exception of the item in yellow which I believe is a mistake in your results data.
Either refresh your data with the Post #1 data or give me a fresh set of SH1 & SH2 data that you used to get your results in the above Post #3

I will have to have a look at adding missing items in SH2 from SH1 tomorrow.

20220717 VBA Dictionary update stock abdo meghari.xlsm
ABC
1ITEMBRANDBALANCE
21BS 195 R14C 613 JAP16
32BS 175/70 R13 EP150 THI4
43BS 1400R20 VSJ TCF JAP21
54BS 1200R20 G580 TCF JAP162
65BS 1200R24 G582 JAP94
76BS 155 R12C R623 JAP18
87BS 155 R12C R624 INDO8
98BS 165 R13C R624 INDO12
109BS 195 R15C R623 THI10
1110BS 195/55 R16 EP300 THI8
1211BS 175/70 R14 EP150 THI8
1312BS 185/65 R14 EP150 INDO12
1413BS 185/65 R14 TEC THI8
1514BS 185/65 R15 T005 INDO8
1615BS 185/70 R13 EP150 INDO12
1716BS 185R14C R624 INDO 4
SH2
 
Upvote 0
By the way in your sample data there are quite a lot of items in SH1 missing from SH2. Do you only want the ones with Return <> 0 added ?
 
Upvote 0
I refreshed the SH1 & SH2 data from what you have posted in #1 and got the below which matches your results with the exception of the item in yellow which I believe is a mistake in your results data.
Either refresh your data with the Post #1 data or give me a fresh set of SH1 & SH2 data that you used to get your results in the above Post #3
I will check it again
By the way in your sample data there are quite a lot of items in SH1 missing from SH2
I know . ignore the others except in one case as I told you in post #3.

Do you only want the ones with Return <> 0 added ?
also if it's possible when cell is empty . I know this doesn't show in OP but this case could be possible
 
Upvote 0
Hi Alex,
yes it works perfectly . can you see my requiremnt as I told you in post#3 & 6 ,please?
 
Upvote 0
I am not entirely sure what you are after but add items on SH1 missing from SH2 but only if the Returns on SH1 have a value (ie not 0 and not empty).

VBA Code:
Sub UpdateBalancesWithReturns()

    Dim shtSales As Worksheet, shtBal As Worksheet
    Dim rngSales As Range, arrSales As Variant
    Dim ReturnAmt As Double
    Dim rngBal As Range, arrBal As Variant
    Dim dictReturns As Object, dictKey As Variant
    Dim dictBal As Object
    Dim i As Long
    
    Set shtSales = Worksheets("SH1")
    Set shtBal = Worksheets("SH2")
    
    With shtSales
        Set rngSales = .Range("A2:D" & .Cells(Rows.Count, "B").End(xlUp).Row)
        arrSales = rngSales.Value
    End With
    
    With shtBal
        Set rngBal = .Range("A2:C" & .Cells(Rows.Count, "B").End(xlUp).Row)
        arrBal = rngBal.Value
    End With
        
    ' Load details range into Dictionary
    Set dictReturns = CreateObject("Scripting.dictionary")
    
    For i = 1 To UBound(arrSales)
        dictKey = arrSales(i, 2)
        ReturnAmt = arrSales(i, 4)
        If Not dictReturns.exists(dictKey) Then
            dictReturns(dictKey) = ReturnAmt
        Else
            dictReturns(dictKey) = dictReturns(dictKey) + ReturnAmt
        End If
    Next i
    
    ' Load balance sheet range into Dictionary
    Set dictBal = CreateObject("Scripting.dictionary")
    
    For i = 1 To UBound(arrBal)
        dictKey = arrBal(i, 2)
        If Not dictBal.exists(dictKey) Then
            dictBal(dictKey) = i
        End If
    Next i
    
    Dim iBal As Long
    iBal = UBound(arrBal)
    
    For Each dictKey In dictReturns.keys
        If Not dictBal.exists(dictKey) And Val(dictReturns(dictKey)) <> 0 Then ' Test for 0 or empty using Val
            iBal = iBal + 1
            dictBal(dictKey) = iBal
        End If
    Next dictKey
    
    Dim j As Long
    Dim outArrBal()
    ReDim outArrBal(1 To iBal, 1 To UBound(arrBal, 2)) As Variant
    j = 0
    
    For Each dictKey In dictBal.keys
        j = j + 1
        outArrBal(j, 1) = dictBal(dictKey)
        outArrBal(j, 2) = dictKey
        If j <= UBound(arrBal, 1) Then
            outArrBal(j, 3) = arrBal(j, 3)
        Else
            outArrBal(j, 3) = 0
        End If
    Next dictKey
    
    ' For Balances Report get values from Dictionary
    For i = 1 To UBound(outArrBal)
        dictKey = outArrBal(i, 2)
        If dictReturns.exists(dictKey) Then
            outArrBal(i, 3) = outArrBal(i, 3) + dictReturns(dictKey)
        End If
    Next i
    
    ' Write back Balance Rpt with updated data
    Set rngBal = rngBal.Resize(UBound(outArrBal, 1))
    rngBal.Value = outArrBal
    rngBal.Rows(1).Copy
        rngBal.PasteSpecial Paste:=xlPasteFormats
    rngBal.Columns.AutoFit
     
    ' Delete Return column from Sales / Returns sheet
    shtSales.Columns("D").Delete

End Sub
 
Upvote 0
Solution
doesn't seem work
ok look the picture maybe help you
REPORT.xlsm
ABC
1ITEMBRANDBALANCE
21BS 195 R14C 613 JAP16
32BS 175/70 R13 EP150 THI4
43BS 1400R20 VSJ TCF JAP21
54BS 1200R20 G580 TCF JAP162
65BS 1200R24 G582 JAP94
76BS 155 R12C R623 JAP18
87BS 155 R12C R624 INDO8
98BS 165 R13C R624 INDO12
109BS 195 R15C R623 THI10
1110BS 195/55 R16 EP300 THI8
1211BS 175/70 R14 EP150 THI8
1312BS 185/65 R14 EP150 INDO12
1413BS 185/65 R14 TEC THI8
1514BS 185/65 R15 T005 INDO8
1615BS 185/70 R13 EP150 INDO12
1716BS 185R14C R624 INDO 4
1817BS 195 R15C R623 THI4
1918BS 195/55 R16 EP300 THI4
2019BS 195/60 R15 EP150 THI4
2120BS 195/70 R15C R623 JAP4
2221BS 195/75 R16C R613 JAP4
2322BS 205/65 R15 EP150 INDO4
2423BS 215/45 R17 T001 JAP4
2524BS 215/55 R16 EP300 INDO4
2625BS 215/55 R17 MY-02 THI4
2726BS 215/55 R17 TG90 INDO4
2827BS 215/60 R16 EP30 THI2
2928BS 215/65 R16C R611 THI4
3029BS 215/70 R15C R623 THI4
3130BS 225/55 R17 EP300 THI4
3231BS 225/60 R17 D-SPORT JAP4
3332BS 225/70 R16 D687 JAP4
3433BS 235/55 R17 ER30 JAP4
3534BS 235/60 R17 D400 JAP4
3635BS 245/70 R16 D684 THI4
3736BS 255/70 R16 H005 THI4
3837BS 275/70 R16 H005 THI4
3938BS 285/60 R18 T01 JAP4
4039BS 285/65 R17 R683 JAP4
4140BS 315/80 R22.5 R184 JAP1
4241BS 385/65 R22.5 R164 JAP121
4342BS 8.25R16 R180 JAP1
4443Dayton 315/80R22.5 DS50 THI10
4544FS 1200 R24 FSR4000 JAP20
4645FS 205/65 R15 TZ700 JAP4
4746FS 215/55 R17 TZ700 JAP4
4847FS 225/45 R17 TZ700 JAP4
SH2


the new items start from row 18 theses item are new existed in sheet SH1 but are not existed in sheet SH2 then should add to SH2 based contains values in column D with ignore new items contain zero or empty with ignore column C where contains values I don't need it when add new item to sheet SH2 .
 
Upvote 0
You really need to find a better way of explaining the issue you are having.
You need to show me what you are getting and what you are expecting.

I am assuming the above is what you are expecting.
Based on the original data in Post #1 that is incorrect.
It contains 2 records to many as it duplicates 2 records.

You can check this quickly by adding the original sheet 2 balance total of 289 + returns per original sheet 2 of 363 which gives 652. Your result sheet is coming up with 660.

On the left below is what the code is producing and on the right is what you posted in the previous post (#9)
What is in yellow is what you have picked up twice.

20220717 VBA Dictionary update stock abdo meghari v03.xlsm
ABCDEFGHI
1ITEMBRANDBALANCE<-- Code generatedNo times in Abdo's listAbdo's List --->ITEMBRANDBALANCE
21BS 195 R14C 613 JAP1611BS 195 R14C 613 JAP16
32BS 175/70 R13 EP150 THI412BS 175/70 R13 EP150 THI4
43BS 1400R20 VSJ TCF JAP2113BS 1400R20 VSJ TCF JAP21
54BS 1200R20 G580 TCF JAP16214BS 1200R20 G580 TCF JAP162
65BS 1200R24 G582 JAP9415BS 1200R24 G582 JAP94
76BS 155 R12C R623 JAP1816BS 155 R12C R623 JAP18
87BS 155 R12C R624 INDO817BS 155 R12C R624 INDO8
98BS 165 R13C R624 INDO1218BS 165 R13C R624 INDO12
109BS 195 R15C R623 THI1029BS 195 R15C R623 THI10
1110BS 195/55 R16 EP300 THI8210BS 195/55 R16 EP300 THI8
1211BS 175/70 R14 EP150 THI8111BS 175/70 R14 EP150 THI8
1312BS 185/65 R14 EP150 INDO12112BS 185/65 R14 EP150 INDO12
1413BS 185/65 R14 TEC THI8113BS 185/65 R14 TEC THI8
1514BS 185/65 R15 T005 INDO8114BS 185/65 R15 T005 INDO8
1615BS 185/70 R13 EP150 INDO12115BS 185/70 R13 EP150 INDO12
1716BS 185R14C R624 INDO 4116BS 185R14C R624 INDO 4
1817BS 195/60 R15 EP150 THI4117BS 195 R15C R623 THI4
1918BS 195/70 R15C R623 JAP4118BS 195/55 R16 EP300 THI4
2019BS 195/75 R16C R613 JAP4119BS 195/60 R15 EP150 THI4
2120BS 205/65 R15 EP150 INDO4120BS 195/70 R15C R623 JAP4
2221BS 215/45 R17 T001 JAP4121BS 195/75 R16C R613 JAP4
2322BS 215/55 R16 EP300 INDO4122BS 205/65 R15 EP150 INDO4
2423BS 215/55 R17 MY-02 THI4123BS 215/45 R17 T001 JAP4
2524BS 215/55 R17 TG90 INDO4124BS 215/55 R16 EP300 INDO4
2625BS 215/60 R16 EP30 THI2125BS 215/55 R17 MY-02 THI4
2726BS 215/65 R16C R611 THI4126BS 215/55 R17 TG90 INDO4
2827BS 215/70 R15C R623 THI4127BS 215/60 R16 EP30 THI2
2928BS 225/55 R17 EP300 THI4128BS 215/65 R16C R611 THI4
3029BS 225/60 R17 D-SPORT JAP4129BS 215/70 R15C R623 THI4
3130BS 225/70 R16 D687 JAP4130BS 225/55 R17 EP300 THI4
3231BS 235/55 R17 ER30 JAP4131BS 225/60 R17 D-SPORT JAP4
3332BS 235/60 R17 D400 JAP4132BS 225/70 R16 D687 JAP4
3433BS 245/70 R16 D684 THI4133BS 235/55 R17 ER30 JAP4
3534BS 255/70 R16 H005 THI4134BS 235/60 R17 D400 JAP4
3635BS 275/70 R16 H005 THI4135BS 245/70 R16 D684 THI4
3736BS 285/60 R18 T01 JAP4136BS 255/70 R16 H005 THI4
3837BS 285/65 R17 R683 JAP4137BS 275/70 R16 H005 THI4
3938BS 315/80 R22.5 R184 JAP1138BS 285/60 R18 T01 JAP4
4039BS 385/65 R22.5 R164 JAP121139BS 285/65 R17 R683 JAP4
4140BS 8.25R16 R180 JAP1140BS 315/80 R22.5 R184 JAP1
4241Dayton 315/80R22.5 DS50 THI10141BS 385/65 R22.5 R164 JAP121
4342FS 1200 R24 FSR4000 JAP20142BS 8.25R16 R180 JAP1
4443FS 205/65 R15 TZ700 JAP4143Dayton 315/80R22.5 DS50 THI10
4544FS 215/55 R17 TZ700 JAP4144FS 1200 R24 FSR4000 JAP20
4645FS 225/45 R17 TZ700 JAP4145FS 205/65 R15 TZ700 JAP4
4746FS 215/55 R17 TZ700 JAP4
4847FS 225/45 R17 TZ700 JAP4
49
50
51Total652660
52
53Original SH2 Balances363363
54Returns per SH1289289
55Balance + Returns652652
56
57Difference08
58
SH2
Cell Formulas
RangeFormula
E2:E46E2=COUNTIFS($H$2:$H$48,B2)
C51,I51C51=SUM(C2:C50)
C55,I55C55=SUM(C53:C54)
C57,I57C57=C51-C55
 
Upvote 0

Forum statistics

Threads
1,215,377
Messages
6,124,598
Members
449,174
Latest member
chandan4057

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