Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello,
I am attempting to show the percentage complete (in a cell) using the COUNTIF function. I first formatted a cell (example A1) as a percent the I enter the following formula in cell A1: =countif(b1:b12,"Completed")/countif(b1:b12,"*") It returns the correct value in cell A1, however, I would like to add the word "Completed" after the percent value. Can Anyone Assist Me? Thanks In Advance. -- Rodman Veney |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Not a big Excel guru, but I should think if your formula is returning the numeric value you want, tacking & "% Completed" at the end should do it. "Rodman" wrote: Hello, I am attempting to show the percentage complete (in a cell) using the COUNTIF function. I first formatted a cell (example A1) as a percent the I enter the following formula in cell A1: =countif(b1:b12,"Completed")/countif(b1:b12,"*") It returns the correct value in cell A1, however, I would like to add the word "Completed" after the percent value. Can Anyone Assist Me? Thanks In Advance. -- Rodman Veney |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
First, your formula can be simplified as follows:
=countif(b1:b12,"Completed")/counta(b1:b12) Second to add "Completed", you do it with concatenation, as in: =countif(b1:b12,"Completed")/counta(b1:b12)&" Completed" However, Excel when you use concatenation, Excel formats numbers as General, which isn't normally what is wanted. To format your result, use the Text function as in: =text(countif(b1:b12,"Completed")/counta(b1:b12),"0.00%")&" Completed" Remember that you've now changed the data to text, and it can't be used in calculations anymore. Regards, Fred "Rodman" wrote in message ... Hello, I am attempting to show the percentage complete (in a cell) using the COUNTIF function. I first formatted a cell (example A1) as a percent the I enter the following formula in cell A1: =countif(b1:b12,"Completed")/countif(b1:b12,"*") It returns the correct value in cell A1, however, I would like to add the word "Completed" after the percent value. Can Anyone Assist Me? Thanks In Advance. -- Rodman Veney |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=TEXT(COUNTIF(B1:B12,"Completed")/COUNTIF(B1:B12,"*"),"0.00%") & " Completed"
-- Gary''s Student - gsnu201001 "Rodman" wrote: Hello, I am attempting to show the percentage complete (in a cell) using the COUNTIF function. I first formatted a cell (example A1) as a percent the I enter the following formula in cell A1: =countif(b1:b12,"Completed")/countif(b1:b12,"*") It returns the correct value in cell A1, however, I would like to add the word "Completed" after the percent value. Can Anyone Assist Me? Thanks In Advance. -- Rodman Veney |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Rodman -
=TEXT(COUNTIF(B1:B12,"Completed")/COUNTIF(B1:B12,"*"),"0%") & " Completed" -- Daryl S "Rodman" wrote: Hello, I am attempting to show the percentage complete (in a cell) using the COUNTIF function. I first formatted a cell (example A1) as a percent the I enter the following formula in cell A1: =countif(b1:b12,"Completed")/countif(b1:b12,"*") It returns the correct value in cell A1, however, I would like to add the word "Completed" after the percent value. Can Anyone Assist Me? Thanks In Advance. -- Rodman Veney |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I would be inclined to just use a custom format as opposed to changing the
value to text. If you use the & "% Completed" method you can not use the number for calculations... Format | Cells | Custom - 0.00% "Completed" This leaves your calculated number in tact and only changes the display of the number. -- HTH... Jim Thomlinson "Rodman" wrote: Hello, I am attempting to show the percentage complete (in a cell) using the COUNTIF function. I first formatted a cell (example A1) as a percent the I enter the following formula in cell A1: =countif(b1:b12,"Completed")/countif(b1:b12,"*") It returns the correct value in cell A1, however, I would like to add the word "Completed" after the percent value. Can Anyone Assist Me? Thanks In Advance. -- Rodman Veney |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Advanced text function (combining text) | Excel Worksheet Functions | |||
Formula percent complete excluding given text string | Excel Discussion (Misc queries) | |||
How do I convert a percent number, for example, 12.34%, to text? | Excel Worksheet Functions | |||
combining text | Excel Worksheet Functions | |||
Formatting a number to look like a Percent without a percent sign | Excel Discussion (Misc queries) |