VBA or excel Formulas

Andrewryan3

Board Regular
Joined
Jun 13, 2017
Messages
73
I have been tasked with extracting data from SAP into an excel worksheet. I need to sort it by a material grouping(2 or more materials, as many as 5, summed together) and place it by week into another worksheet for the entire year. This will be done on a weekly basis and will constantly be changing.

Thoughts?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
I would go for setting the data in column properly on a data sheet. There might be no work depending on how you get the data from SAP.
As an example, you might get dates from SAP without week numbers. By putting the data in a table and having a column on the right calculating the week number of the date, it will keep on calculating week number for the rows that you add in the future. So you can chose to add missing data or replace all data every week, the week number will be there.

From there I would make a pivot table based on weeks and proper grouping.

I would then automate the refreshing of the pivottable, so people do not have to think about it: right click the sheet as if you want to rename it, click "view code" and paste

Code:
Private Sub Worksheet_Activate()
ActiveWorkbook.RefreshAll<strike></strike>

End Sub

Every time someone click on the sheet to view the report, it is up-to-date (especially if you run the extract on open workbook event, if possible)
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

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