Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Excel formula to read contents

Hi
Does anyone know ho to write an excel formula that will count cells if they
contain part of the specified information.

ie, I want to count if they include '1234' which is in box A1, but the
fields I'm searching in may have 'AB1234', but I still want it to be able to
count them if they include the details in A1.

I hope that makes sense!!
Thank you

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Excel formula to read contents

One way:

=COUNTIF(B:B,"*" & A1 & "*")

In article ,
Fiona wrote:

Hi
Does anyone know ho to write an excel formula that will count cells if they
contain part of the specified information.

ie, I want to count if they include '1234' which is in box A1, but the
fields I'm searching in may have 'AB1234', but I still want it to be able to
count them if they include the details in A1.

I hope that makes sense!!
Thank you

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Excel formula to read contents

Thank you!

"JE McGimpsey" wrote:

One way:

=COUNTIF(B:B,"*" & A1 & "*")

In article ,
Fiona wrote:

Hi
Does anyone know ho to write an excel formula that will count cells if they
contain part of the specified information.

ie, I want to count if they include '1234' which is in box A1, but the
fields I'm searching in may have 'AB1234', but I still want it to be able to
count them if they include the details in A1.

I hope that makes sense!!
Thank you


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Excel formula to read contents

Thank you for you reply, it worked. Is there anyway I can get it to read 2
different boxes at the same time, I'm not sure how to link it?
Thank you

"JE McGimpsey" wrote:

One way:

=COUNTIF(B:B,"*" & A1 & "*")

In article ,
Fiona wrote:

Hi
Does anyone know ho to write an excel formula that will count cells if they
contain part of the specified information.

ie, I want to count if they include '1234' which is in box A1, but the
fields I'm searching in may have 'AB1234', but I still want it to be able to
count them if they include the details in A1.

I hope that makes sense!!
Thank you


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Excel formula to read contents

And what would you do if it read 2 different boxes (cells?).

Are you looking for the count of each? I.e, if A1=1234, A2=abc, does
B1=abc1234 count as 2?

=COUNTIF(B:B,"*" & A1 & "*") + =COUNTIF(B:B,"*" & A2 & "*")

or does it count as 1, but only if it contains both in a certain
arrangement (e.g., "abc1234"?

=COUNTIF(B:B,"*" & A1 & A2 & "*")

or does it count as 1 if it contains both, but in any arrangement (e.g,
"def123456abc")?

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,B1:B100)),
--ISNUMBER(SEARCH(A2,B1:B100)))

or something else?

In article ,
Fiona wrote:

Thank you for you reply, it worked. Is there anyway I can get it to read 2
different boxes at the same time, I'm not sure how to link it?
Thank you

"JE McGimpsey" wrote:

One way:

=COUNTIF(B:B,"*" & A1 & "*")

In article ,
Fiona wrote:

Hi
Does anyone know ho to write an excel formula that will count cells if
they
contain part of the specified information.

ie, I want to count if they include '1234' which is in box A1, but the
fields I'm searching in may have 'AB1234', but I still want it to be able
to
count them if they include the details in A1.

I hope that makes sense!!
Thank you




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Excel formula to read contents

Hi

I want it to count if A1:A100 = B2, and if C1:C100 = D2, I want it to only
count if it contains B2 and D2, or part of it, together.
Thank you

"JE McGimpsey" wrote:

And what would you do if it read 2 different boxes (cells?).

Are you looking for the count of each? I.e, if A1=1234, A2=abc, does
B1=abc1234 count as 2?

=COUNTIF(B:B,"*" & A1 & "*") + =COUNTIF(B:B,"*" & A2 & "*")

or does it count as 1, but only if it contains both in a certain
arrangement (e.g., "abc1234"?

=COUNTIF(B:B,"*" & A1 & A2 & "*")

or does it count as 1 if it contains both, but in any arrangement (e.g,
"def123456abc")?

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,B1:B100)),
--ISNUMBER(SEARCH(A2,B1:B100)))

or something else?

In article ,
Fiona wrote:

Thank you for you reply, it worked. Is there anyway I can get it to read 2
different boxes at the same time, I'm not sure how to link it?
Thank you

"JE McGimpsey" wrote:

One way:

=COUNTIF(B:B,"*" & A1 & "*")

In article ,
Fiona wrote:

Hi
Does anyone know ho to write an excel formula that will count cells if
they
contain part of the specified information.

ie, I want to count if they include '1234' which is in box A1, but the
fields I'm searching in may have 'AB1234', but I still want it to be able
to
count them if they include the details in A1.

I hope that makes sense!!
Thank you


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Excel formula to read contents

Modify my last example for your ranges/criteria.

One In article ,
Fiona wrote:

Hi

I want it to count if A1:A100 = B2, and if C1:C100 = D2, I want it to only
count if it contains B2 and D2, or part of it, together.
Thank you

"JE McGimpsey" wrote:

And what would you do if it read 2 different boxes (cells?).

Are you looking for the count of each? I.e, if A1=1234, A2=abc, does
B1=abc1234 count as 2?

=COUNTIF(B:B,"*" & A1 & "*") + =COUNTIF(B:B,"*" & A2 & "*")

or does it count as 1, but only if it contains both in a certain
arrangement (e.g., "abc1234"?

=COUNTIF(B:B,"*" & A1 & A2 & "*")

or does it count as 1 if it contains both, but in any arrangement (e.g,
"def123456abc")?

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,B1:B100)),
--ISNUMBER(SEARCH(A2,B1:B100)))

or something else?

In article ,
Fiona wrote:

Thank you for you reply, it worked. Is there anyway I can get it to read
2
different boxes at the same time, I'm not sure how to link it?
Thank you

"JE McGimpsey" wrote:

One way:

=COUNTIF(B:B,"*" & A1 & "*")

In article ,
Fiona wrote:

Hi
Does anyone know ho to write an excel formula that will count cells
if
they
contain part of the specified information.

ie, I want to count if they include '1234' which is in box A1, but
the
fields I'm searching in may have 'AB1234', but I still want it to be
able
to
count them if they include the details in A1.

I hope that makes sense!!
Thank you


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Excel formula to read contents

Use JE's last formula and change the cell references, that would be
something like


=SUMPRODUCT(--ISNUMBER(SEARCH(B2,A1:A100)),--ISNUMBER(SEARCH(D2,C1:C100)))


--
Regards,

Peo Sjoblom



"Fiona" wrote in message
...
Hi

I want it to count if A1:A100 = B2, and if C1:C100 = D2, I want it to only
count if it contains B2 and D2, or part of it, together.
Thank you

"JE McGimpsey" wrote:

And what would you do if it read 2 different boxes (cells?).

Are you looking for the count of each? I.e, if A1=1234, A2=abc, does
B1=abc1234 count as 2?

=COUNTIF(B:B,"*" & A1 & "*") + =COUNTIF(B:B,"*" & A2 & "*")

or does it count as 1, but only if it contains both in a certain
arrangement (e.g., "abc1234"?

=COUNTIF(B:B,"*" & A1 & A2 & "*")

or does it count as 1 if it contains both, but in any arrangement (e.g,
"def123456abc")?

=SUMPRODUCT(--ISNUMBER(SEARCH(A1,B1:B100)),
--ISNUMBER(SEARCH(A2,B1:B100)))

or something else?

In article ,
Fiona wrote:

Thank you for you reply, it worked. Is there anyway I can get it to
read 2
different boxes at the same time, I'm not sure how to link it?
Thank you

"JE McGimpsey" wrote:

One way:

=COUNTIF(B:B,"*" & A1 & "*")

In article ,
Fiona wrote:

Hi
Does anyone know ho to write an excel formula that will count cells
if
they
contain part of the specified information.

ie, I want to count if they include '1234' which is in box A1, but
the
fields I'm searching in may have 'AB1234', but I still want it to
be able
to
count them if they include the details in A1.

I hope that makes sense!!
Thank you




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
Read- only Protect Folders and contents in WIN2K Server Tommydraw123 Excel Discussion (Misc queries) 3 October 31st 06 07:31 PM
How do I make a formula read a result rather than a formula Chris Excel Discussion (Misc queries) 7 June 20th 06 10:56 PM
Excel formula to find position of the contents of a cell within a column. [email protected] Excel Discussion (Misc queries) 3 September 26th 05 03:52 PM
How would this formula read Frantic Excel-er Excel Discussion (Misc queries) 5 May 24th 05 05:55 PM
Cell contents vs. Formula contents Sarah Excel Discussion (Misc queries) 3 December 15th 04 06:02 PM


All times are GMT +1. The time now is 09:06 PM.

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

About Us

"It's about Microsoft Excel"