Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default counts repeated number in two seperate area

I have a formula:
IF(COUNTIF(A2:C6,A1)

The problem is that i need to search in two areas. The above formula only search the whole area without breaking an area.

For example to what I want:

A1 4 6 8 9 10
A2 5 6 23 44 50
A3 4 7 8 9 22
A4 7 3 1 2 8

I want to search row A2 and A4 only to see if any number matches with any number in A1.

Thank you very much!!!!

EggHeadCafe - Software Developer Portal of Choice
Generic GetXmlReader Data Access Method
http://www.eggheadcafe.com/tutorials...ader-data.aspx
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default counts repeated number in two seperate area

IF(COUNTIF(A2:C6,A1)
I want to search row A2 and A4


A2 and A4 are not rows, they're individual cells.

Based on the above formula maybe this is what you want:

=COUNTIF(A2:C2,A1)+COUNTIF(A4:C4,A1)

--
Biff
Microsoft Excel MVP


<sierra spiegel wrote in message
...
I have a formula:
IF(COUNTIF(A2:C6,A1)

The problem is that i need to search in two areas. The above formula only
search the whole area without breaking an area.

For example to what I want:

A1 4 6 8 9 10
A2 5 6 23 44 50
A3 4 7 8 9 22
A4 7 3 1 2 8

I want to search row A2 and A4 only to see if any number matches with any
number in A1.

Thank you very much!!!!

EggHeadCafe - Software Developer Portal of Choice
Generic GetXmlReader Data Access Method
http://www.eggheadcafe.com/tutorials...ader-data.aspx



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
average daily counts to weekly counts Dave Excel Discussion (Misc queries) 0 June 17th 08 06:24 PM
Number of Months Counts Jalal Excel Worksheet Functions 3 February 23rd 08 08:19 PM
Number counts within Date Range SteveStats Excel Worksheet Functions 2 October 27th 07 04:32 AM
A macro that counts the number of times a file is opened [email protected] Excel Discussion (Misc queries) 2 December 20th 06 01:53 PM
a function that counts the number of cells with information zuri125 Excel Worksheet Functions 1 June 7th 06 07:37 AM


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"