lindstroem
New Member
- Joined
- Mar 2, 2015
- Messages
- 39
- Office Version
- 2016
Hello
I have a large datasheet (2000 rows) coming in each month with a alot of cost data which I need to put in a Pivot Table (or prepare for PowerBI).
The problem however is that the datarows do not include which organisation the cost belongs to which is needed. So in the example below, the organisation ID is a header for each segment (starts at A3 below) which i need to be copied in to the column D for all rows that contain a date-intervall in column A. I've tried to play around with COUNTIF(A:A="Organisations*") to start to get the total value but I am lost on how to search it out and dynamically change it for each section where a new Org-ID is used (Also I would prefer only to get the org value and name and not the "Organisations ID:" on each row. Any suggestions are most welcome.
A second question is if there is a good way to delete all rows that does not contain the dates after the first formula has completed (the formula above would then need to be copied/pasted as value for it to work, so assume that would require a macro)
Any thoughts on a elegant Excel-formula or macro would be much appriciated!
I have a large datasheet (2000 rows) coming in each month with a alot of cost data which I need to put in a Pivot Table (or prepare for PowerBI).
The problem however is that the datarows do not include which organisation the cost belongs to which is needed. So in the example below, the organisation ID is a header for each segment (starts at A3 below) which i need to be copied in to the column D for all rows that contain a date-intervall in column A. I've tried to play around with COUNTIF(A:A="Organisations*") to start to get the total value but I am lost on how to search it out and dynamically change it for each section where a new Org-ID is used (Also I would prefer only to get the org value and name and not the "Organisations ID:" on each row. Any suggestions are most welcome.
A second question is if there is a good way to delete all rows that does not contain the dates after the first formula has completed (the formula above would then need to be copied/pasted as value for it to work, so assume that would require a macro)
Any thoughts on a elegant Excel-formula or macro would be much appriciated!
Organisations ID: 2764 - MittSverige Vatten & Avfall | ||||
Kostnadsställe: | 2764 | NEW ROW WHERE I NEED FORMULA | ||
Fakturaperiod | Inv. Namn | Organisations ID | ||
20210401-20210430 | KvisslebyVerket-1 | 2764 - MittSverige Vatten & Avfall | ||
20210401-20210430 | MatforsVerket-1 | 2764 - MittSverige Vatten & Avfall | ||
20210401-20210430 | Tivoliverket-Berget-1 | 2764 - MittSverige Vatten & Avfall | ||
20210401-20210430 | Tivoliverket-Berget-10 | 2764 - MittSverige Vatten & Avfall | ||
20210401-20210430 | Tivoliverket-Berget-11 | 2764 - MittSverige Vatten & Avfall | ||
20210401-20210430 | Tivoliverket-Berget-12 | 2764 - MittSverige Vatten & Avfall | ||
20210401-20210430 | Tivoliverket-Berget-13 | 2764 - MittSverige Vatten & Avfall | ||
20210401-20210430 | Tivoliverket-Berget-14 | 2764 - MittSverige Vatten & Avfall | ||
20210401-20210430 | Tivoliverket-Berget-15 | 2764 - MittSverige Vatten & Avfall | ||
20210401-20210430 | Tivoliverket-Berget-16 | 2764 - MittSverige Vatten & Avfall | ||
20210401-20210430 | Tivoliverket-Berget-2 | 2764 - MittSverige Vatten & Avfall | ||
20210401-20210430 | Tivoliverket-Berget-3 | 2764 - MittSverige Vatten & Avfall | ||
20210401-20210430 | Tivoliverket-Berget-4 | 2764 - MittSverige Vatten & Avfall | ||
20210401-20210430 | Tivoliverket-Berget-5 | 2764 - MittSverige Vatten & Avfall | ||
Organisations ID: 2824 - MSVA - EXTERN | ||||
Kostnadsställe: | 2824 | |||
Fakturaperiod | Inv. Namn | |||
20210401-20210430 | iPad (VPN) Robert Björkman | 2824 - MSVA - EXTERN | ||
20210401-20210430 | IN22201 | 2824 - MSVA - EXTERN | ||
20210401-20210430 | IN22202 | 2824 - MSVA - EXTERN | ||
20210401-20210430 | IN22203 | 2824 - MSVA - EXTERN | ||
20210401-20210430 | IN22211 | 2824 - MSVA - EXTERN | ||
20210401-20210430 | IN11775 | 2824 - MSVA - EXTERN | ||
20210401-20210430 | IN22167 | 2824 - MSVA - EXTERN | ||
20210401-20210430 | IN22179 | 2824 - MSVA - EXTERN | ||
20210401-20210430 | IN22180 | 2824 - MSVA - EXTERN | ||
20210401-20210430 | IN24066 | 2824 - MSVA - EXTERN | ||
20210401-20210430 | AutoCAD MEP 2015 (MSVA) | 2824 - MSVA - EXTERN | ||
20210401-20210430 | Cad-q XL-V | 2824 - MSVA - EXTERN | ||
20210301-20210331 | 0724647961 | 2824 - MSVA - EXTERN | ||
20210401-20210430 | IN24207 | 2824 - MSVA - EXTERN | ||
20210401-20210430 | Distansåtkomst iPad (VPN) | 2824 - MSVA - EXTERN | ||
20210401-20210430 | IN16431 | 2824 - MSVA - EXTERN | ||
Organisations ID: 5133 - MSVA - Ledningsnät | ||||
Kostnadsställe: | 5133 | |||
Fakturaperiod | Inv. Namn | 5133 - MSVA - Ledningsnät | ||
20210401-20210430 | IN23197 | 5133 - MSVA - Ledningsnät | ||
20210401-20210430 | IN23363 | 5133 - MSVA - Ledningsnät |