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 / March 2007

Tip: Looking for answers? Try searching our database.

Pivot, MSQuery or crafty use of MATCH and OFFSET?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
green biro - 08 Mar 2007 01:13 GMT
Please can someone give me a leg-up for the following:

Prob1 - Easy (on same sheet)

Rows are names (eg Brown, Smith, Jones...)
Cols are Criteria (A, B, C, D...)
Data is 1, 2 or blank

I would like to cross tabulate the 1s against the 2s giving me
Rows of Criteria (A, B, C, D...)
Cols of Criteria (A, B, C, D...)
Data: Count of times row critera was 1 in original data and col criteria was
2 in original data
Extra info for clarification: AA, BB, CC etc would be nill as only one value
was possible in original data

Prob 2 - Hard (two sheets)

Original data as before except that criteria (cols) different for each sheet
ie
Sheet1 cols (A, B, C, D...)
Sheet2 cols (Z, Y, X...)
Rows of name same on both sheets

Now I would like to cross tabulate the 1s in sheet1 against the 1s in sheet2
thus:
Rows of Sheet1's Criteria (A, B, C, D...)
Cols of Sheet2's Criteria (Z, Y, X,...)
Data: Count of times row critera was 1 in sheet1 data and also 1 in sheet2
data

This exercise would then be repeated to analyse 1s against 2s, 2s against 1s
and 2s against 2s

Thanks in advance for any pearls of wisdom

GB

gb@nospam-marcb.co.uk
Martin Fishlock - 08 Mar 2007 05:08 GMT
Your homework is quite interesting.

I don't quite understand your requirements and may example answers would help.

Signature

Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.

> Please can someone give me a leg-up for the following:
>
[quoted text clipped - 35 lines]
>
> gb@nospam-marcb.co.uk
green biro - 08 Mar 2007 18:15 GMT
Thanks for your interest.but I think that I may have worked out a way
forward.

As I have column headers in the original data, I can use MATCH and OFFSET to
create a new sheet that for each person shows which column has a '1' and
which has a '2' eg
Name Crit1.1, Crit 1.2, Crit 2.1, Crit 2.2
Brown A, B, X, W
Jones A, C, Z, X
Smith C, A, Y, Z

Then I can simply pivot any two columns I choose.

> Your homework is quite interesting.
>
[quoted text clipped - 39 lines]
> >
> > gb@nospam-marcb.co.uk
 
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.