A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Help: Assigning a "word" a numerical value



 
 
Thread Tools Display Modes
  #1  
Old June 12th, 2009, 09:23 AM posted to microsoft.public.excel.worksheet.functions
Eric
external usenet poster
 
Posts: 1,956
Default Help: Assigning a "word" a numerical value

I am trying to assign a word a value for percentage computations. I want to
assign the word "UP" the value of "1" and the word "down" a value of "0" for
determining the equipment status percentage... so if a piece of equipment was
UP for 7 days and down for 3 days I want it to work out the percentage it was
UP... 70% out of the 10 days total. Each day is assigned a status in a column
Up or Down. How do I assign the values so I can have the column automaticly
update every time I add a status?
  #2  
Old June 12th, 2009, 10:02 AM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Help: Assigning a "word" a numerical value

Use COUNTIF()

The below will give you the UP percentage.Assuming the status words are in
ColB and the headers in Row1 try the below

=COUNTIF(B2:B100,"up")/COUNTA(B2:B100)

If this post helps click Yes
---------------
Jacob Skaria


"Eric" wrote:

I am trying to assign a word a value for percentage computations. I want to
assign the word "UP" the value of "1" and the word "down" a value of "0" for
determining the equipment status percentage... so if a piece of equipment was
UP for 7 days and down for 3 days I want it to work out the percentage it was
UP... 70% out of the 10 days total. Each day is assigned a status in a column
Up or Down. How do I assign the values so I can have the column automaticly
update every time I add a status?

 




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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:57 PM.


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