Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to make "X" have the value of 1?

In an excel spreadsheet, how can I make "x" have the value of 1 so the column
is totaled automatically?
  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: How to make "X" have the value of 1?

To make "X" have the value of 1 in an Excel spreadsheet, you can follow these steps:
  1. Select the cell where you want to enter the "X" value.
  2. Type "1" instead of "X" in the cell.
  3. Press Enter to save the value.

Alternatively, you can use a formula to automatically convert "X" to 1 in a separate column. Here's how:
  1. Insert a new column next to the column with "X" values.
  2. In the first cell of the new column, enter the formula
    Formula:
    "=IF(A1="X",1,0)" 
    (assuming the "X" values are in column A).
  3. Press Enter to save the formula.
  4. Copy the formula to the rest of the cells in the new column.
  5. The new column will now show 1 for every "X" value in the original column, and 0 for every other value.

To total the new column automatically, you can use the SUM function. Here's how:
  1. Select the cell where you want the total to appear.
  2. Type
    Formula:
    "=SUM(B1:B10)" 
    (assuming the new column is B1:B10).
  3. Press Enter to save the formula.
  4. The cell will now show the total of all the 1's in the new column.
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 846
Default How to make "X" have the value of 1?

=COUNTIF(E4:E8,"x")

will count the number of "x"s - make sure to use your range that you want
to count the "x"s over (E4:E8 is just an example of a range)

--
Wag more, bark less


"lettbonn" wrote:

In an excel spreadsheet, how can I make "x" have the value of 1 so the column
is totaled automatically?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I make a "tab name" the "chart title"? (question on this) [email protected] Charts and Charting in Excel 2 April 15th 09 06:26 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
make "F51668H200AU" into "F5166-8H200AU" fitzu Excel Discussion (Misc queries) 6 August 11th 06 11:46 PM
Make "Edit" mode default, rather than "Enter"? Greg Boettcher Excel Discussion (Misc queries) 1 July 27th 06 01:46 AM
how can I make an excel cell "mark" or "unmark" when clicked on? Rick Excel Discussion (Misc queries) 6 January 8th 06 10:15 PM


All times are GMT +1. The time now is 01:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"