• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Want data in Vertical

onkar.kulkarni9

New Member
Hello,


I have some data, I want that data in vertical lines.


I want data should look like this.

[pre]
Code:
Name	2012    2011
A	 B2	 B2
This is my data.

Name	         Year		       Rating
A	01-Jan-12	31-Dec-12	B2
A	01-Jan-11	31-Dec-11	B2
B	01-Jan-11	31-Dec-11	B2
B	01-Jan-12	31-Dec-12	B2
C	01-Jan-06	31-Dec-06	B2
D	01-Jan-12	31-Dec-12	B2
E	01-Jan-11	31-Dec-11	B2
E	01-Jan-12	31-Dec-12	B2
F	23-Sep-04	31-Dec-04	B2
G	01-Jan-06	31-Dec-06	A2
G	01-Jan-05	31-Dec-05	A2
H	01-Jan-08	31-Dec-08	B2
H	01-Jan-11	31-Dec-11	B2
H	01-Jan-10	31-Dec-10	B2
H	01-Jan-12	31-Dec-12	C2
H	01-Jan-09	31-Dec-09	B2
HH	01-Jan-12	31-Dec-12	B2
KK	01-Jan-09	31-Dec-09	B2
KK	01-Jan-08	31-Dec-08	B2
KK	01-Jan-07	31-Dec-07	B2
KK	01-Jan-06	31-Dec-06	B2
LL	01-Jan-10	31-Dec-10	A2
LL	01-Jan-12	31-Dec-12	A1
LL	01-Jan-08	31-Dec-08	B2
LL	01-Jan-11	31-Dec-11	B1
LL	01-Jan-09	31-Dec-09	B2
LL	01-Jan-07	31-Dec-07	B2
[/pre]
Regards,

Onkar Kulkarni
 
questions: do you want all of the years to be listed horizontally like you have 2012 and 2011? i noticed that not all Names appear to have an entry rating for all years... if you have all the years listed horizontally (2005 -- 2006 -- 2007 -- etc..) then you'll have empty cells all over the place.
 
here's what i did:


first i listed the unique names (removed duplicates from the data you provided). this list was in I2. In I1 i have "Name", then 2011, 2012 in J1 and K1.

then in J2 i have the following formula: =IFERROR(VLOOKUP(I2&$J$1,A1:E28,5,FALSE),"")


and in K2: =IFERROR(VLOOKUP(I2&$K$1,$A$1:$E$28,5,FALSE),"")

then just select both of these cells and drag the formula down


(the data that you provide above is located in A1:E28)


NOTE: this is only going to show the ratings for years 2011 & 2012, but should be easily adapted to accommodate more years
 
Onkar


Please read:

http://chandoo.org/forums/topic/phd-forum-posting-rules-etiquette-pls-read-before-posting
 
Hi, onkar.kulkarni9!


First of all welcome to Chandoo's website Excel forums. Thank you for your joining us and glad to have you here.


As a starting point I'd recommend you to read the green sticky topics at this forums main page. There you'll find general guidelines about how this site and community operates (introducing yourself, posting files, netiquette rules, and so on).


Among them you're prompted to perform searches within this site before posting, because maybe your question had been answered yet.


Feel free to play with different keywords so as to be led thru a wide variety of articles and posts, and if you don't find anything that solves your problem or guides you towards a solution, you'll always be welcome back here. Tell us what you've done, consider uploading a sample file as recommended, and somebody surely will read your post and help you.


And about your question...


If you haven't performed yet the search herein, try going to the topmost right zone of this page (Custom Search), type the keywords used in Tags field when creating the topic or other proper words and press Search button. You'd retrieve many links from this website, like the following one(s) -if any posted below-, maybe you find useful information and even the solution. If not please advise so as people who read it could get back to you as soon as possible.


In your case, at:

a) E1:H1 : place the proper titles

b) E2 : =INDICE($A:$C;ENTERO((FILA()-1)/2)+RESIDUO(FILA()-1;2)+1;1) -----> in english: =INDEX($A:$C,INT((ROW()-1)/2)+MOD(ROW()-1,2)+1,1)

c) F2:G2 : =FECHA(INDICE($B$1:$C$1;1;2-RESIDUO(FILA()-1;2))+COLUMNA()-6;1;1-COLUMNA()+6) -----> in english: =DATE(INDEX($B$1:$C$1,1,2-MOD(ROW()-1,2))+COLUMN()-6,1,1-COLUMN()+6)

d) H2: =INDICE($A:$C;ENTERO((FILA()-1)/2)+RESIDUO(FILA()-1;2)+1;3-RESIDUO(FILA()-1;2)) -----> in english: =INDEX($A:$C,INT((ROW()-1)/2)+MOD(ROW()-1,2)+1,3-MOD(ROW()-1,2))

e) copy down E2:H2 as required


Regards!
 
Back
Top