SOLVED

excel transposition specific

%3CLINGO-SUB%20id%3D%22lingo-sub-2844189%22%20slang%3D%22en-US%22%3Eexcel%20transposition%20specific%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2844189%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20I%20have%20a%20specific%20problem%20where%20I%20need%20to%20put%20values%20from%20a%20collumn%20into%20different%20collumns%20based%20on%20the%20category%20-%20see%20file%20attached.%3C%2FP%3E%3CP%3EThe%20values%20from%20collumn%20H%20should%20be%20put%20into%20collumns%20I%3AO%20on%20the%20row%20that%20corresponds%20to%20the%20specific%20district%20(value%20in%20collumn%20D).%3C%2FP%3E%3CP%3EA%20formula%20would%20probably%20be%20preferred%20as%20I%20have%20never%20done%20macros.%3CBR%20%2F%3EI%20hope%20I%20made%20the%20question%20clear%20enough%20and%20would%20appreciate%20your%20advice%20a%20lot!%3C%2FP%3E%3CP%3EThank%20you%2C%3C%2FP%3E%3CP%3ETom%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22uhertommy_0-1634171761250.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F317227i881D121F2F17F288%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22uhertommy_0-1634171761250.png%22%20alt%3D%22uhertommy_0-1634171761250.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2844189%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2844572%22%20slang%3D%22en-US%22%3ERe%3A%20excel%20transposition%20specific%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2844572%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1184978%22%20target%3D%22_blank%22%3E%40uhertommy%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERemove%20the%20merged%20cells.%20Fill%20the%20empty%20cells%20with%20the%20text%20from%20above.%3C%2FP%3E%3CP%3ECreate%20a%20pivot%20table%3A%3C%2FP%3E%3CP%3ESubdistrict%20in%20rows%20area.%3C%2FP%3E%3CP%3ELand%20Tenure%20in%20columns%20area.%3C%2FP%3E%3CP%3ETotal%20Area%20of%20the%20Farm%20Land%20(Ha)%20in%20values%20area.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2844611%22%20slang%3D%22en-US%22%3ERe%3A%20excel%20transposition%20specific%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2844611%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1184978%22%20target%3D%22_blank%22%3E%40uhertommy%3C%2FA%3E%26nbsp%3BI%20would%20structure%20the%20data%20as%20demonstrated%20in%20the%20%22rawData%22%20tab%20in%20the%20attached%20workbook.%20Then%20create%20a%20pivot%20table%20(PivotTable%20tab)%20on%20that%20raw%20data.%20It%20will%20produce%20the%20overview%20you%20described%2C%20instantly.%20Adjust%20the%20underlying%20data%3F%20No%20problem%2C%20just%20press%20the%20Refresh%20button%20on%20the%20Data%20ribbon%20and%20the%20pivot%20table%20will%20be%20updated.%20No%20formulae%20or%20VBA%20needed.%20Just%20standard%20Excel%20functionality.%20If%20you%20are%20not%20familiar%20with%20pivot%20tables%2C%20search%20for%20%22pivot%20table%20excel%22%20on-line%20and%20you'll%20find%20all%20you%20need%20to%20know.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEdit%3A%20Didn't%20see%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1639%22%20target%3D%22_blank%22%3E%40Detlef%20Lewin%3C%2FA%3E%26nbsp%3B's%20answer%20before%20I%20posted%20mine.%20It%20does%20exactly%20what%20he%20described.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello, I have a specific problem where I need to put values from a collumn into different collumns based on the category - see file attached.

The values from collumn H should be put into collumns I:O on the row that corresponds to the specific district (value in collumn D).

The problem is, there is no specific number of rows after which a new district starts - sometimes it is 3, sometimes 4 etc, based on the number of categories a specific district contains. So I cannot use a standard formula that would transpose values every fourth row for example.

A formula would probably be preferred as I have never done macros.
I hope I made the question clear enough and would appreciate your advice a lot!

Thank you,

Tom

uhertommy_0-1634171761250.png

 

 

5 Replies

@uhertommy 

Remove the merged cells. Fill the empty cells with the text from above.

Create a pivot table:

Subdistrict in rows area.

Land Tenure in columns area.

Total Area of the Farm Land (Ha) in values area.

 

best response confirmed by uhertommy (New Contributor)
Solution

@uhertommy I would structure the data as demonstrated in the "rawData" tab in the attached workbook. Then create a pivot table (PivotTable tab) on that raw data. It will produce the overview you described, instantly. Adjust the underlying data? No problem, just press the Refresh button on the Data ribbon and the pivot table will be updated. No formulae or VBA needed. Just standard Excel functionality. If you are not familiar with pivot tables, search for "pivot table excel" on-line and you'll find all you need to know.

 

Edit: Didn't see @Detlef Lewin 's answer before I posted mine. It does exactly what he described.

@Detlef Lewin 

transponer es tu función (transpose)

Si no lo incorpora tu excel el ARRAY calculation tendras que hacer el antiguo CSE (Control+Shift + Enter)

 

Saludos

Julian Ch

Thank you very much for the advice to all of you! A pivot table was a good solution and I learned a new skill.
Thank you very much for the advice! A pivot table was a good solution and I learned a new skill.