Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default wildcard in countif formula that uses cell references

Hi

I have a spreadsheet that contains a column which has several items in
each cell. I have created a column (A) on another sheet (in the same
workbook) that lists those items separately.
Is there any way to have a formula like this, that actually works?:

=COUNTIF('sheet2'!I:I,sheet1!A10)

At the moment, it only returns a non-zero value for those cells which
ONLY contain the item listed in A10. I have tried inserting a wildcard
(*) but it just returns an error.

Thanks!

Terry

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default wildcard in countif formula that uses cell references

Try it like this:

=COUNTIF('sheet2'!I:I,"*"&sheet1!A10&"*")

HTH,
Elkar

"Terry Freedman" wrote:

Hi

I have a spreadsheet that contains a column which has several items in
each cell. I have created a column (A) on another sheet (in the same
workbook) that lists those items separately.
Is there any way to have a formula like this, that actually works?:

=COUNTIF('sheet2'!I:I,sheet1!A10)

At the moment, it only returns a non-zero value for those cells which
ONLY contain the item listed in A10. I have tried inserting a wildcard
(*) but it just returns an error.

Thanks!

Terry


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default wildcard in countif formula that uses cell references

On Nov 2, 5:15 pm, Elkar wrote:
Try it like this:

=COUNTIF('sheet2'!I:I,"*"&sheet1!A10&"*")

HTH,
Elkar

"Terry Freedman" wrote:
Hi


I have a spreadsheet that contains a column which has several items in
each cell. I have created a column (A) on another sheet (in the same
workbook) that lists those items separately.
Is there any way to have a formula like this, that actually works?:


=COUNTIF('sheet2'!I:I,sheet1!A10)


At the moment, it only returns a non-zero value for those cells which
ONLY contain the item listed in A10. I have tried inserting a wildcard
(*) but it just returns an error.


Thanks!


Terry


WOW! That is fantastic!!! Thank u so much. I spent an hour trying to
figure that out!

Terry

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
Cell references in a countif function? WildlyHarry Excel Discussion (Misc queries) 6 August 9th 07 04:37 PM
COUNT or COUNTIF using wildcard text? WiFiMike2006 Excel Worksheet Functions 11 January 12th 07 11:12 PM
SUMPRODUCT, COUNTIF and wildcard Epinn Excel Worksheet Functions 3 November 2nd 06 03:16 AM
How do I use a wildcard or multiple of a cell value in a formula? Vic Excel Worksheet Functions 3 February 7th 06 01:49 PM
Countif using Wildcard * and number 1 southdaytona Excel Worksheet Functions 4 November 3rd 05 05:41 PM


All times are GMT +1. The time now is 07:20 AM.

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"