Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

How to split excel file

joannasokolowska
9 - Comet

Dear colleagues,

I would like to ask you about how I can split one excel file which contains information about each person in the same TAB (excel file attached). There is always the same number of rows with information about the report which are not needed. 

 

Report    
Number 23456    
date 01.07.2020   
     
Data for John Smith   
  JanuaryFebruaryMarch
 module 11032030.5
 type 05551020.6
 module 3801000.5
     
Report    
Number 01020    
date 01.07.2020   
     
Data for Anna Green   
  JanuaryFebruaryMarch
 module 11032030.5
 module 2551020.6
 extract 3801000.5
 part 2201180

 

Desired outcome is like this (under each month summary data from all rows for each person) 

 

NameJanuaryFebruaryMarch
Anna Green25841681.6
John Smith2384051.6

 

Thank you in advance,

Asia

17 REPLIES 17
atcodedog05
22 - Nova
22 - Nova

Hi @joannasokolowska 

 

Here is a workflow for the task.

Output:

atcodedog05_0-1606753128624.png

Workflow:

atcodedog05_1-1606753143919.png

Hope this helps 🙂 Feel to ask if you have any questions


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

BrandonB
Alteryx
Alteryx

Here you go! Workflow is attached. 

 

Extract data.png

BrandonB
Alteryx
Alteryx

@atcodedog05 has a good solution as well! I leveraged a transpose and crosstab as an alternative to the Summarize tool to account for a dynamic set of months so that you don't have to add new ones as they are added. 

joannasokolowska
9 - Comet

Thanks for a quick help! What would be the the workflow if below the name there is also some data ? 

 

Data for John Smith   
street 24    
  JanuaryFebruaryMarch
 module 11032030.5
 type 05551020.6
 module 3801000.5
     
Report    
Number 01020    
date 01.07.2020   
     
Data for Anna Green   
street 22    
London    
  JanuaryFebruaryMarch
 module 11032030.5
 module 2551020.6
 extract 3801000.5
 part 2201180
atcodedog05
22 - Nova
22 - Nova

Nope it wouldn't be we would need to modify.

joannasokolowska
9 - Comet

How this should be modified ?:) 

atcodedog05
22 - Nova
22 - Nova

Hi @joannasokolowska 

 

Here is modified workflow. Just needed to change a condition.

Input:

atcodedog05_0-1606755157188.png

Output:

atcodedog05_1-1606755189213.png

Please check and let me know.

 

BrandonB
Alteryx
Alteryx

I made a tweak to my multi row formula to instead be:

 

IF Contains([Row-1:Report], "Data for ") AND !Contains([Report], "Data for ")
THEN [Row-1:Report]
ELSE [Report]
ENDIF

 

This should account for the changes

joannasokolowska
9 - Comet

It's great! and if there is no text "data for" but simply name and surname different for each person. What other condition should be used in multi-row formula? 

Labels