ExcelPupper
Board Regular
- Joined
- Mar 2, 2020
- Messages
- 112
- Office Version
- 2019
- Platform
- Windows
Hi, I have this set of data (picture 1) that is generated from the system and I need to format it the same as picture 2 (kindly refer to pictures below)
As of now, I am stuck on identifying the first and last row for items ordered per Supplier in order to insert the respective Supplier on the column beside the items.
Any help is much appreciated. Thanks!
PS: Items ordered per Supplier is variable
Picture 1
Picture 2
As of now, I am stuck on identifying the first and last row for items ordered per Supplier in order to insert the respective Supplier on the column beside the items.
Any help is much appreciated. Thanks!
PS: Items ordered per Supplier is variable
VBA Code:
Sub CopySupplierName()
Dim lr As Long
lr =
Range("C4:C" & lr).Value = Range("A" & 4 - 2).Value
End Sub
Picture 1
Picture 2