Changing the format for SAP upload

Boboka

New Member
Joined
Jan 19, 2022
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Employee No (A1 Cell in Excel)Electricity (B1 cell in Excel)Water (C1 Cell in excel)Gas (D1 cell in Excel)Meal (E1 cell in Excel)Rental (F1 cell in Excel)
100551126.1211.52014445
106584233.2841.979.64010
105326530.8218014445

Hi All,

I would like to ask if I got above master data, about 2000 rows. How can I make into below this format for SAP upload? Assuming the header start from A1 Cell. If transpose above master data from row to column, will it be better?
5560 = electricity expense
5562 = water expenses
5561 = Gas expenses
5104 = Meal expenses
5130 = rental expense

if any expenses is 0 amount, we can omit it. Example as below for 1005511 employees, he did not have gas expenses, so it is not shown below, for 1065842 employees, he did not have meal expenses, so it is not show below. I can't achieve below format using vlookup.

Thank in advance for any expert advice.

Employee NoWGTYPAMOUNT
1005511556026.12
1005511556211.52
10055115104144
1005511513045
1065842556033.28
1065842556241.97
106584255619.64
1065842513010
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
How about
Fluff.xlsm
ABCDEFGHIJ
1Employee NoElectricityWaterGasMealRental
2100551126.1211.520144451005511Electricity26.12
3106584233.2841.979.640101005511Water11.52
4105326530.82180144451005511Meal144
51005511Rental45
61065842Electricity33.28
71065842Water41.97
81065842Gas9.64
91065842Rental10
101053265Electricity30.82
111053265Water18
121053265Meal144
131053265Rental45
Sheet5
Cell Formulas
RangeFormula
H2:J13H2=HSTACK(TOCOL(IF(B2:F4=0,1/0,A2:A4),2),TOCOL(IF(B2:F4=0,1/0,B1:F1),2),TOCOL(IF(B2:F4=0,1/0,B2:F4),2))
Dynamic array formulas.
 
Upvote 0
Solution
Hi Fluff.

This work amazing. Just to check on the if statement (B2:F4=0, 1/0, A2:A4). What is the 1/0 mean in the if statement if it is true.

Thanks a lot.
 
Upvote 0
That will return a #DIV/0! error which is then removed by using 2 as the 2nd argument in TOCOL
 
Upvote 1

Forum statistics

Threads
1,224,817
Messages
6,181,149
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