Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / June 2006

Tip: Looking for answers? Try searching our database.

helps matrix table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mycarpark@gmail.com - 15 Jun 2006 11:53 GMT


--------------------------------------------------------------------------------
excel question

if i have this table (two col, several rows)

x 1
x 2
x 1
y 1
z 2
y 1
z 2

i want to display in matrix table in excel
   x   y   z
1  2  2  2
2  1  2 1

how to write simple function to display above?
e.g. 1 and x is totally display 2 times.
Bondi - 15 Jun 2006 12:18 GMT
> --------------------------------------------------------------------------------
> excel question
[quoted text clipped - 16 lines]
> how to write simple function to display above?
> e.g. 1 and x is totally display 2 times.

Hi,
If you set up your matrix in say C1 so that D1=X, E1=Y and F1=Z and
C2=1 and C3 = 2.
Asuming your data is in A1:B7 then you could use SumProduct().

=SUMPRODUCT(--($A$1:$A$7=D1),--($B$1:$B$7=$C$2))

Place the formula in D2 and copy out along the row. Careful with the
cell referencing.

Regards,
Bondi
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.