Go Back   Talk Microsoft > Microsoft Operating Systems & Software > Microsoft Office Family

Reply
     Microsoft excel help?  
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-10-2008, 10:47 AM
Junior Member
 
Join Date: Jan 2008
Posts: 8
Default Microsoft excel help?

I have a mocrosft worksheet full of letters with Y and N for yes and no. I need to convert them to numbers to use on a program so i can compare all the results. There are 13 columns with all Y's and N's. instead of changing them one by one is there an easier was to change all of them so i can get them to 1's for yes and 0's for no
I have micrsoft 2007..
Reply With Quote
Links
  #2 (permalink)  
Old 02-10-2008, 11:11 AM
Junior Member
 
Join Date: Feb 2008
Posts: 1
Default

Select the whole worksheet (Ctrl-A) or the area you need to modify. Do one change at a time.
Go to Edit> replace. Enter "y" in find and the number you want into replace. Hit "replace all" . A window will open telling you it has done this. You can see it on your sreadsheet. Hit close.
Repeat for "N".
Reply With Quote
  #3 (permalink)  
Old 02-10-2008, 11:13 AM
Junior Member
 
Join Date: Nov 2007
Posts: 8
Default

Use the Edit >> Replace function. Highlight the area with what you want to change, bring up the replace dialog. (CTRL+H)
Reply With Quote
  #4 (permalink)  
Old 02-10-2008, 11:13 AM
Junior Member
 
Join Date: Sep 2007
Posts: 3
Default

go to the edit menu, replace
Find what: Y
Replace with: 1
and clic on replace all
do the same for N and 0
Reply With Quote
  #5 (permalink)  
Old 02-10-2008, 11:23 AM
Junior Member
 
Join Date: Feb 2008
Posts: 3
Default

Hi,

You can achieve your objective in a variety of ways, for example:

***first make backup of the original Microsoft Excel file, so in case anything goes wrong, you can always revert to actual file***

1) Use Find and Replace command:

Select the columns, and hold down CTRL key then press "H" key. In the resulting popup window, type "Y" in "Find what" and "1" in "Replace with".

You can replace all one by one or all in one go (using Replace ALL button).


2) Using "COUNTIF" worksheet function to count Ys and Ns in each column enter this formula (in same way as we put SUM() function)

=COUNTIF(B1:B100,"Y") >> (B1:B100 is assumed range, change it to actual) *** in row B101 ***

=COUNTIF(B1:B100,"N") >> (B1:B100 is assumed range, change it to actual) *** in row B102 ***


3) You can also use PIVOT table report to summarize your data.


For further help on "COUNTIF" and "PIVOT TABLE" reports, please refer to Microsoft Office's offline help, it contains all the detailed instructions!


Hope it helped!


Mohammad Taimur
Reply With Quote
Reply


Thread Tools
Display Modes

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

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



All times are GMT -4. The time now is 01:03 AM.