Formatting SAP Report Macro

KMK_79

New Member
Joined
Sep 24, 2017
Messages
4
Hi all

I regularly download SAP reports of varying filters but pretty much standardised list of columns. Many of these columns require conversion to number values, column width adjustments, groupings, alignments etc before I am comfortable to put them into a standard report for sharing with others or to have some analysis carried out on the data.

I am rather fastidious about working with data that is not formatted in a way that I want and that is just a personal bugbear. I am willing to share a small anonymised data samples (raw and after my manual formats) for help in providing me with relevant code that can embedded as a macro in excel itself.

I do not know how to embed a macro for use by ALL files opened by excel however I would only execute these for raw SAP downloaded data reports. Could I understand if this is something possible and can be done?

I look forward to your helpful responses. Always impressed with the support people get on this site!

Thanks, KMK
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
I recognise it is hard to send out a general message on my issue.

In the interests of getting a favourable response from people, I am posting the raw SAP data and the formatted data sheet which is what I am aiming for. There are a number of other columns but the formatting is typically similar and can be applied easily if I have the original coding.

Really appreciate some support here.

Thanks
KMK
 
Upvote 0

Excel 2010
CDEFGHIJKLMNO
1EMP. FIRST NAMEMISSN/ID#GENDERNATIONALITYBIRTH DATEAGEHIRE DATEADJUSTED SERVICE DATEYEARS OF SERVICEMONTHS OF SERVICEPOS. DATEPOS. #
2ZhiyanFemaleChinese19-10-764001-07-0201-07-0215201-10-1550085337
3CharlesMaleAustralian25-01-783901-02-1101-02-116701-12-1550092989
4GarethMaleAustralian31-08-823501-02-1101-02-116701-12-1550083863
5RosalineFemaleIrish09-04-764101-07-0301-07-0314213-06-1650084813
6KristyFemaleAustralian23-09-655101-01-0401-01-0413801-10-1550083297
7SimonMaleBritish09-04-764101-07-0301-07-0314213-06-1650083876
8VivienFemaleSingaporean23-09-655101-01-0401-01-0413801-10-1550083193
9PaulMaleBritish19-10-764001-07-0201-07-0215201-10-1550084903
10DanielMaleChinese25-01-783901-02-1101-02-116701-12-1550083203
11TerryMaleAustralian19-10-764001-07-0201-07-0215201-10-1550084893
12SuhailKMaleIndian25-01-783901-02-1101-02-116701-12-1550083634
13WhartonJMaleBritish09-04-764101-07-0301-07-0314213-06-1650085190
14KoenPMaleBelgian25-01-783901-02-1101-02-116701-12-1550083241
15BarryJMaleBritish09-04-764101-07-0301-07-0314213-06-1650083671
16AnnFemaleBelgian23-09-655101-01-0401-01-0413801-10-1550083209
17EvannaFemaleSpanish19-10-764001-07-0201-07-0215201-10-1550083240
18WaelMaleMoroccan25-01-783901-02-1101-02-116701-12-1550084317
19TimothyMaleBelgian23-09-655101-01-0401-01-0413801-10-1550084315
20MichelleFemaleBelgian19-10-764001-07-0201-07-0215201-10-1550083206
21CarolineJFemaleNew Zealand25-01-783901-02-1101-02-116701-12-1550084014
SAP Raw
 
Upvote 0

Excel 2010
ABCDEFGHIJKLMNO
1SAP IDEMP. LAST NAMEEMP. FIRST NAMEMISSN/ID#GENDERNATIONALITYBIRTH DATEAGEHIRE DATEADJUSTED SERVICE DATEYEARS OF SERVICEMONTHS OF SERVICEPOS. DATEPOS. #
2791ZhuZhiyanFemaleChinese19-10-764001-07-0201-07-0215201-10-1550085337
3798MortenCharlesMaleAustralian25-01-783901-02-1101-02-116701-12-1550092989
4814SmithGarethMaleAustralian31-08-823501-02-1101-02-116701-12-1550083863
5828KavanaghRosalineFemaleIrish09-04-764101-07-0301-07-0314213-06-1650084813
61013HobsonKristyFemaleAustralian23-09-655101-01-0401-01-0413801-10-1550083297
71016ShiersSimonMaleBritish09-04-764101-07-0301-07-0314213-06-1650083876
81019GilliganVivienFemaleSingaporean23-09-655101-01-0401-01-0413801-10-1550083193
91027ChampionPaulMaleBritish19-10-764001-07-0201-07-0215201-10-1550084903
101035ZhuDanielMaleChinese25-01-783901-02-1101-02-116701-12-1550083203
111037HattonTerryMaleAustralian19-10-764001-07-0201-07-0215201-10-1550084893
123060AkhtarSuhailKMaleIndian25-01-783901-02-1101-02-116701-12-1550083634
1320806PippaWhartonJMaleBritish09-04-764101-07-0301-07-0314213-06-1650085190
1420812HeusdensKoenPMaleBelgian25-01-783901-02-1101-02-116701-12-1550083241
1520814DunbridgeBarryJMaleBritish09-04-764101-07-0301-07-0314213-06-1650083671
1620835LombaertAnnFemaleBelgian23-09-655101-01-0401-01-0413801-10-1550083209
1720933MartinezEvannaFemaleSpanish19-10-764001-07-0201-07-0215201-10-1550083240
1821106Al BannaWaelMaleMoroccan25-01-783901-02-1101-02-116701-12-1550084317
1921107SucklingTimothyMaleBelgian23-09-655101-01-0401-01-0413801-10-1550084315
2021108De SmedtMichelleFemaleBelgian19-10-764001-07-0201-07-0215201-10-1550083206
2121109TuiteCarolineJFemaleNew Zealand25-01-783901-02-1101-02-116701-12-1550084014
22
23
24
25Convert to Number, Align to CenterMiddle Align, Left Align Text, Single Indent IncreaseMiddle Align, Left Align Text, Single Indent IncreaseMiddle Align, Center AlignNo FormatMiddle Align, Left Align Text, Single Indent IncreaseMiddle Align, Left Align Text, Single Indent IncreaseMiddle Align, Center AlignMiddle Align, Center AlignMiddle Align, Center AlignMiddle Align, Center AlignMiddle Align, Center AlignMiddle Align, Center AlignMiddle Align, Center AlignConvert to Number, Align to Center
SAP Formatted
 
Upvote 0

Forum statistics

Threads
1,215,161
Messages
6,123,363
Members
449,097
Latest member
thnirmitha

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