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 Giving "X" a numerical value.

I am trying to build an active personnel spreadsheet. With the individuals
names listed in column "A", I need to give "X" a numerical value so that when
I add the X to account for this individual it will give the total active at
the bottom. I know the formula for the simple addition and understand how to
do that, however I can not figure out how to give a text a numerical value.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default Giving "X" a numerical value.

if I understand you correctly

=SUM(IF(B1:B100="X",1,))

should help and give you the toal of active personnel (if X's are in
col B)

CTRL+SHIFT+ENTER (instead of using ENTER only) this formula as this is
an array formula


On 11 Gru, 21:40, floyd.anderson
wrote:
I am trying to build an active personnel spreadsheet. With the individuals
names listed in column "A", I need to give "X" a numerical value so that when
I add the X to account for this individual it will give the total active at
the bottom. I know the formula for the simple addition and understand how to
do that, however I can not figure out how to give a text a numerical value.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default Giving "X" a numerical value.

On Thu, 11 Dec 2008 12:40:01 -0800, floyd.anderson
wrote:

I am trying to build an active personnel spreadsheet. With the individuals
names listed in column "A", I need to give "X" a numerical value so that when
I add the X to account for this individual it will give the total active at
the bottom. I know the formula for the simple addition and understand how to
do that, however I can not figure out how to give a text a numerical value.



What is "X"? Is it the column "X" or is it some name that is in
column "A"?
What do you mean by "when I add the X to account for this
individual..."? How do you "add"? Where do you "add"?

Please give an example of data, before and after the "adding", and
what result you expect and where you expect the result.

/ Lars-Åke
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Giving "X" a numerical value.

Hi,

You've lost me perhaps you could post a small sample of data with the result
you expect with an X in the sum range.

Mike

"floyd.anderson" wrote:

I am trying to build an active personnel spreadsheet. With the individuals
names listed in column "A", I need to give "X" a numerical value so that when
I add the X to account for this individual it will give the total active at
the bottom. I know the formula for the simple addition and understand how to
do that, however I can not figure out how to give a text a numerical value.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Giving "X" a numerical value.

Say column A has names and there are some X's in column B. We want the sum
of X's assuming X has the value 17:

=SUMPRODUCT(--(B1:B100="X"))*17

--
Gary''s Student - gsnu200820


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Giving "X" a numerical value.

floyd.anderson wrote:
I am trying to build an active personnel spreadsheet. With the individuals
names listed in column "A", I need to give "X" a numerical value so that when
I add the X to account for this individual it will give the total active at
the bottom. I know the formula for the simple addition and understand how to
do that, however I can not figure out how to give a text a numerical value.



To come at this another way, you can make the number 1 display as X. Use this
as a custom number format:

[=1]"X";0

Then you can just SUM() the range to get a total.
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default Giving "X" a numerical value.

this one is excellent
will remember it
;-)

On 11 Gru, 22:20, Glenn wrote:
floyd.anderson wrote:
I am trying to build an active personnel spreadsheet. With the individuals
names listed in column "A", I need to give "X" a numerical value so that when
I add the X to account for this individual it will give the total active at
the bottom. I know the formula for the simple addition and understand how to
do that, however I can not figure out how to give a text a numerical value.


To come at this another way, you can make the number 1 display as X. *Use this
as a custom number format:

[=1]"X";0

Then you can just SUM() the range to get a total.


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Giving "X" a numerical value.

=COUNTIF(A1:A100,"X") will count all the "X"'s

Is that what you need?


Gord Dibben MS Excel MVP

On Thu, 11 Dec 2008 12:40:01 -0800, floyd.anderson
wrote:

I am trying to build an active personnel spreadsheet. With the individuals
names listed in column "A", I need to give "X" a numerical value so that when
I add the X to account for this individual it will give the total active at
the bottom. I know the formula for the simple addition and understand how to
do that, however I can not figure out how to give a text a numerical value.


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
Spell check giving "formula too long" - doesn't make corrections JIM Excel Discussion (Misc queries) 3 September 4th 08 12:28 AM
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
how do i write "numerical Arabic" as in word 2007 jmok Excel Discussion (Misc queries) 0 January 21st 07 05:46 PM
TRUNCATE SPACE FROM NUMERICAL STRING eg "33 033 546" NAEEM Excel Worksheet Functions 8 December 5th 06 07:30 PM
Vlookup and "-" negative numbers are giving me a #N/A DMB Excel Discussion (Misc queries) 12 January 16th 06 03:11 PM


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

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

About Us

"It's about Microsoft Excel"