Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all!
Is it possible to place text and a formula in the same cell? I have a column of people's names. But I would like to add a count of occurences of that name in the column. I have successfully been able to do the count in another cell but I want the name and the figure in the same cell. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
="ABCD " & countif(A1:A10,"ABCD")
-- Regards, Tom Ogilvy "LDanix" wrote in message ... Hi all! Is it possible to place text and a formula in the same cell? I have a column of people's names. But I would like to add a count of occurences of that name in the column. I have successfully been able to do the count in another cell but I want the name and the figure in the same cell. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I can come up with a couple of formulas to get the name plus its count in
column A. Assuming D1 has the formula to get the count, and you put this formula is in column A, ="Myrna Larson"&" "&TEXT(D1,"##0") The formula for D1 is: =COUNTIF($A:$A,"Myrna Larson"&"*") You can combine the two formulas to get, in column A, ="Myrna Larson"&" "&TEXT(COUNTIF($A:$A,"Myrna Larson"&"*")) Problem is, both of those create a circular reference. I suppose you could turn iterations on, but I sure wouldn't do that. Then you get no warning when you create an unintentional circular reference. Put the count in a separate column. On Thu, 28 Oct 2004 17:55:03 -0700, LDanix wrote: Hi all! Is it possible to place text and a formula in the same cell? I have a column of people's names. But I would like to add a count of occurences of that name in the column. I have successfully been able to do the count in another cell but I want the name and the figure in the same cell. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
But that formula can't go in A1:A10, right? I thought that's what he meant by
"in the column", but maybe I'm over-interpreting.... On Thu, 28 Oct 2004 21:29:25 -0400, "Tom Ogilvy" wrote: ="ABCD " & countif(A1:A10,"ABCD") |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If I did turn on iterations, would it affect all workbooks or just the one
that I turn it on for? And how would I turn it on? I only need to create this one formula, so I'm not too worried about more circular references in it, but if the change will affect other workbooks, then, you're right; I had better not. "Myrna Larson" wrote: I can come up with a couple of formulas to get the name plus its count in column A. Assuming D1 has the formula to get the count, and you put this formula is in column A, ="Myrna Larson"&" "&TEXT(D1,"##0") The formula for D1 is: =COUNTIF($A:$A,"Myrna Larson"&"*") You can combine the two formulas to get, in column A, ="Myrna Larson"&" "&TEXT(COUNTIF($A:$A,"Myrna Larson"&"*")) Problem is, both of those create a circular reference. I suppose you could turn iterations on, but I sure wouldn't do that. Then you get no warning when you create an unintentional circular reference. Put the count in a separate column. On Thu, 28 Oct 2004 17:55:03 -0700, LDanix wrote: Hi all! Is it possible to place text and a formula in the same cell? I have a column of people's names. But I would like to add a count of occurences of that name in the column. I have successfully been able to do the count in another cell but I want the name and the figure in the same cell. |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
There's an error in my 2nd attempt. Should be
="Myrna Larson"&" "&TEXT(COUNTIF($A:$A,"Myrna Larson"&"*"),"0") I don't remember off-hand whether it affects all open workbooks or not. Try it and find out. You turn it on under Tools/Options/Calculation. Set the number of iterations to 1. Why do you want to do this? Is it for cosmetic reasons for a print-out? If so, if the full list of names is in column A, you have a list of the unique names in column B, in C the formula =COUNTIF($A:$A,B1) and in column D the formula =B1&TEXT(C1,"0"). Set the print area to exclude columna A:C, or hide those columns before printing. On Thu, 28 Oct 2004 18:57:01 -0700, LDanix wrote: If I did turn on iterations, would it affect all workbooks or just the one that I turn it on for? And how would I turn it on? I only need to create this one formula, so I'm not too worried about more circular references in it, but if the change will affect other workbooks, then, you're right; I had better not. "Myrna Larson" wrote: I can come up with a couple of formulas to get the name plus its count in column A. Assuming D1 has the formula to get the count, and you put this formula is in column A, ="Myrna Larson"&" "&TEXT(D1,"##0") The formula for D1 is: =COUNTIF($A:$A,"Myrna Larson"&"*") You can combine the two formulas to get, in column A, ="Myrna Larson"&" "&TEXT(COUNTIF($A:$A,"Myrna Larson"&"*")) Problem is, both of those create a circular reference. I suppose you could turn iterations on, but I sure wouldn't do that. Then you get no warning when you create an unintentional circular reference. Put the count in a separate column. On Thu, 28 Oct 2004 17:55:03 -0700, LDanix wrote: Hi all! Is it possible to place text and a formula in the same cell? I have a column of people's names. But I would like to add a count of occurences of that name in the column. I have successfully been able to do the count in another cell but I want the name and the figure in the same cell. |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you want it to count itself, then you would need to click on iteration in
calculate tab of Tools=options to allow circular references. The formula would then be ="ABCD " & countif(A1:A10,"ABCD*") in that case. Iteration is an application level setting. If it is on, it is on for all workbooks. -- Regards, Tom Ogilvy "Myrna Larson" wrote in message ... But that formula can't go in A1:A10, right? I thought that's what he meant by "in the column", but maybe I'm over-interpreting.... On Thu, 28 Oct 2004 21:29:25 -0400, "Tom Ogilvy" wrote: ="ABCD " & countif(A1:A10,"ABCD") |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
bold text of referenced cell show in formula cell | Excel Worksheet Functions | |||
The result of a formula referring to a cell with formula as text? | Excel Worksheet Functions | |||
Concatenate text cell and formula cell result | Excel Worksheet Functions | |||
Excel Formula if cell is empty then no if text in cell then yes | Excel Worksheet Functions | |||
match cell text with text in formula | Excel Worksheet Functions |