madhuchelliah
Board Regular
- Joined
- Nov 22, 2017
- Messages
- 226
- Office Version
- 2019
- Platform
- Windows
Hello Folks, i want to transpose the data (Data is a string) with header in a range of column. See the example below for better understanding. Top table is the source data and bottom table is expected output. I have data from column A to AJ. 1st row is header. Each row carries data applicable to the respective headers in the column A to AJ. All the cells(F:AJ) will not carry data. I want to copy available data of each row from column F to AJ along with the header and should be inserted verticaly in F column of same row. So the next row has to move down based on the number of inserted columns data. Only copy the column header with has data and to its corresponding row.Number of rows is dynamic. i have no clue how to do VBA. Please give me a solution. Thank you. Stay home stay safe.
A | B | C | D | E | F | AA | AC | AD | AJ |
Name | Reg number | School name | Advisor | XXXXX | YYYYY | ZZZZZ | AAAAA | BBBBB | |
Anto | 22222 | xx school | john | sds@ | @@@@ | !!!! | #### | ||
cath | 33333 | yy school | jojn | fsfsfd@ | ***** | !!!!! | $$$$$ | &&&& | |
A | B | C | D | E | F | G |
name | reg number | school name | advisor | |||
anto | 22222 | xx school | john | sds@ | XXXXX | @@@@ |
ZZZZZ | !!!! | |||||
BBBBB | #### | |||||
cath | 33333 | yy school | john | fsfsfd@ | YYYYY | ***** |
ZZZZZ | !!!!! | |||||
AAAAA | $$$$$ | |||||
BBBBB | &&&& | |||||