Go Back   PCMech Forums > Help & Discussion > Software Discussion & Support

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 11-17-2004, 05:56 AM   #1
Member (2 bit)
 
Join Date: Nov 2004
Posts: 3
Question Excel Question

I am using Ms Office 97. I have created a spreadsheet for my Dart League Stats. It does everything I need except.

I need to find a way for it to be able to tell the difference between male and female players. Once that is done to take the information from that players row and copy it to another location. Not just the cell, the row.

Anybody have any idea as to how I can do this.

P.s. I am a novice user. Self taught by trial, error and the odd manual.
kirk82 is offline   Reply With Quote
Old 11-17-2004, 06:20 AM   #2
Ride 'em Cowboy
 
EzyStvy's Avatar
 
Join Date: Dec 1999
Location: Dallas, Tx
Posts: 9,109
Add another column for gender. Type M or F. You could then "sort" all making the gender column the primary sort.
EzyStvy is online now   Reply With Quote
Old 11-17-2004, 05:46 PM   #3
Member (2 bit)
 
Join Date: Nov 2004
Posts: 3
Talking

Yes I have already done that. What I want is to have excel to search for M or F when it finds them to then take them and copy them to another location.

Example.

John, W M 43.3 120
Jane, S F 45.9 130
Find the above information then copy it to another location. I would like it done automatically.



John, W M 43.3 120







Jane, S F 45.9 130

Last edited by kirk82; 11-17-2004 at 05:48 PM.
kirk82 is offline   Reply With Quote
Old 11-17-2004, 10:17 PM   #4
Member (8 bit)
 
Join Date: Aug 2003
Location: SoCal
Posts: 178
What you're talking about sounds more like a database type thing. I think EzyStv's answer is the best if you're going to stay in an excel file- after you sort for gender it is a simple matter to copy and paste over to another location.

I have an idea for a REALLY half-assed way to do this in excel using if functions, but doing it manually would probably be faster and easier.

But if you're really keen on the idea of having it automatically generate two seperate reports based on gender, it would be best to do it in Access.
jong2k4 is offline   Reply With Quote
Old 11-17-2004, 11:18 PM   #5
Member (2 bit)
 
Join Date: Nov 2004
Posts: 3
Question

Please explain how this could be done using "if" functions.

Thank-you
kirk82 is offline   Reply With Quote
Old 11-18-2004, 03:13 AM   #6
Member (8 bit)
 
Join Date: Aug 2003
Location: SoCal
Posts: 178
It is, as I said above, not a very good solution. You might want to look into using the dget function, or possibly something else. But if you want it...

Create a new worksheet that is the same size as your worksheet that contains the raw data. Each cell in this new worksheet will contain an if function. Somewhere outside this range will be two cells that contain "m" and "f". Then for a given row, each if statement will contain the same logical test. If your gender data is stored in column M, and your original sheet is named Sheet 1, then for row 3 all of your if statements will start out with =if(Sheet1!M3=Z1..... and Z1 would be the cell that contains either "m" or "f" to compare against. Then the next argument of the function will always be the cell in the first sheet that corresponds to the cell that function currently resides in. The last argument will be "".

This will generate a table of values that corresponds to the first table precisely except there are blank rows for those records which did not pass the test. From this point, you can select all of the cells, copy them, then with them still highlighted paste the values only, to eliminate the if statements and leave just the result, so then you can sort it as you like.

It's not a very pretty solution, but it will work. Once you write the if statements for the first row you can just extend that row down as far as you want and it will automatically adjust for row number, so you don't have to type the whole thing out by hand.
jong2k4 is offline   Reply With Quote
Old 11-18-2004, 08:26 PM   #7
Member (6 bit)
 
Join Date: Sep 2004
Posts: 37
Try doing an advanced filter. You have the option of copying the cells to another location. You can set up a macro to automatically run the advanced filter for you. If you want to send me the spreadsheet, I can set it up for you. I am Microsoft Office User Specialist (MOUS) certified, and also have my expert MOUS certification. If the information is sensitive, just send me a dummy workbook with the exact column headings you are using.
jbert is offline   Reply With Quote
Old 11-19-2004, 01:36 AM   #8
Member (10 bit)
 
PMich's Avatar
 
Join Date: Jan 2001
Location: Greenville, MS
Posts: 625
It really is a simple sort followed by a copy and paste. Yes you could use and advanced filter and yes you could use a macro to run the advanced filter but unless you are talking about hundreds of entries (players) its kind of overkill. Besides, there are probably fewer keystrokes involved with a sort and copy and paste than there is in finding the macro unless you assign it a hotkey.
PMich is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:01 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2