Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
using a cell as criteria instead of cell contents
I am using the formula =COUNTIF($A$1:$A$2500,B1), but it gives a value of 0.
If I use the contents of B1 (ml12345) it gives how many times it appears, which is what I want. Is there a way to use the cell name (B1) to give the value I want? I am trying to see how many times each policy number appears. I want to autofill down, since I have about 300 different policy numbers. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
using a cell as criteria instead of cell contents
Hi Jason,
I give yesterday the solution to your formula problem when was directionet to Sheet1, did you rate the answer??, anyway I don't understant what you want to achieve could you give an example with different numbers "Jason K" wrote: I am using the formula =COUNTIF($A$1:$A$2500,B1), but it gives a value of 0. If I use the contents of B1 (ml12345) it gives how many times it appears, which is what I want. Is there a way to use the cell name (B1) to give the value I want? I am trying to see how many times each policy number appears. I want to autofill down, since I have about 300 different policy numbers. |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
using a cell as criteria instead of cell contents
Jason,
Try this =SUMPRODUCT(--(TRIM($A$1:$A$2500)=TRIM(B1))) Mike "Jason K" wrote: I am using the formula =COUNTIF($A$1:$A$2500,B1), but it gives a value of 0. If I use the contents of B1 (ml12345) it gives how many times it appears, which is what I want. Is there a way to use the cell name (B1) to give the value I want? I am trying to see how many times each policy number appears. I want to autofill down, since I have about 300 different policy numbers. |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
using a cell as criteria instead of cell contents
Trim???
=COUNTIF($A$1:$A$2500,trim(B1)) -- Don Guillett Microsoft MVP Excel SalesAid Software "Jason K" wrote in message ... I am using the formula =COUNTIF($A$1:$A$2500,B1), but it gives a value of 0. If I use the contents of B1 (ml12345) it gives how many times it appears, which is what I want. Is there a way to use the cell name (B1) to give the value I want? I am trying to see how many times each policy number appears. I want to autofill down, since I have about 300 different policy numbers. |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
using a cell as criteria instead of cell contents
I quess i was confused myself, I found out that I needed to trim the one
cell. After I did that it worked. Thank You. "Eduardo" wrote: Hi Jason, I give yesterday the solution to your formula problem when was directionet to Sheet1, did you rate the answer??, anyway I don't understant what you want to achieve could you give an example with different numbers "Jason K" wrote: I am using the formula =COUNTIF($A$1:$A$2500,B1), but it gives a value of 0. If I use the contents of B1 (ml12345) it gives how many times it appears, which is what I want. Is there a way to use the cell name (B1) to give the value I want? I am trying to see how many times each policy number appears. I want to autofill down, since I have about 300 different policy numbers. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Display contents of cell based on criteria | Excel Worksheet Functions | |||
How do I specify cell contents for the Criteria in SUMIF? | Excel Worksheet Functions | |||
Finding cell contents based on certain criteria | Excel Discussion (Misc queries) | |||
Finding cell contents based on certain criteria | Excel Discussion (Misc queries) | |||
Displayed contents of cell in target row if column criteria is met | Excel Worksheet Functions |