Hi Excel Overlords,
I have a conundrum that I may have over complicated a bit. I am tracking the quantity of a product being turned in by 21 employees in order to carry out labor analysis. The sheet that references this data does so by; (Header A: Name Header B: Amt
As new data gets entered into their sheets, the finished product as well as a few other metrics are recorded. B36 represents a sum of the finished product on each one of their respective sheets.
I currently use this macro, but I believe it is best suited for direct data entry on the sheet being worked on as it does not autosort when values get added into the B column on each employee's worksheet.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column <> 2 Or Target.Cells.Count > 1 Then Exit Sub
Dim SortRange As Range
Set SortRange = Range(("A1"), Cells(Rows.Count, 2).End(xlUp))
SortRange.Sort Key1:=Range("B2"), Order1:=xlAscending, Header:=xlYes
End Sub
Let me know if there is any more information I can provide. Recap: I hope for data entries in worksheets Adam:Tyler! to reflect in their respective sum cell (Adam:Tyler!B36), and then for these new sums to ultimately be reflected in my summary sheet where it dynamically sorts and updates an on-running chart.
Also, any tips for someone with 0 excel macro/coding experience, but all of the drive to learn? Maybe a good starting book?
Best,
KirkAZ
I have a conundrum that I may have over complicated a bit. I am tracking the quantity of a product being turned in by 21 employees in order to carry out labor analysis. The sheet that references this data does so by; (Header A: Name Header B: Amt
Adam | =Adam!B36 |
Alec | =Alec!B36 |
Anita | =Anita!B36 |
Brigham | =Brigham!B36 |
Cavan | =Cavan!B36 |
As new data gets entered into their sheets, the finished product as well as a few other metrics are recorded. B36 represents a sum of the finished product on each one of their respective sheets.
I currently use this macro, but I believe it is best suited for direct data entry on the sheet being worked on as it does not autosort when values get added into the B column on each employee's worksheet.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column <> 2 Or Target.Cells.Count > 1 Then Exit Sub
Dim SortRange As Range
Set SortRange = Range(("A1"), Cells(Rows.Count, 2).End(xlUp))
SortRange.Sort Key1:=Range("B2"), Order1:=xlAscending, Header:=xlYes
End Sub
Let me know if there is any more information I can provide. Recap: I hope for data entries in worksheets Adam:Tyler! to reflect in their respective sum cell (Adam:Tyler!B36), and then for these new sums to ultimately be reflected in my summary sheet where it dynamically sorts and updates an on-running chart.
Also, any tips for someone with 0 excel macro/coding experience, but all of the drive to learn? Maybe a good starting book?
Best,
KirkAZ