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 different area only once

I have a formula that count repeat number only once, but in the same area only:

IF(COUNTIF(A2:C3,A1)0,1,0)+IF(COUNTIF(A6:C9)0,1, 0)

I want to count all the repeats to A1 in both area only once.

thanks


EggHeadCafe - Software Developer Portal of Choice
MDI Inter-Form Communication with Events
http://www.eggheadcafe.com/tutorials...ommunicat.aspx
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default counts repeated number in two different area only once

That compound function doesn't work. Maybe this is what you want:
=IF(COUNTIF(A2:C3,A1)0,1,0)+IF(COUNTIF(A6:C9,A1) 0,1,0)

Or, this:
=IF(COUNTIF(A2:C3,A1)0,1,0)+IF(COUNTIF(A6:C9,A1) 1,1,0)

HTH,
Ryan---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"sierra spiegel" wrote:

I have a formula that count repeat number only once, but in the same area only:

IF(COUNTIF(A2:C3,A1)0,1,0)+IF(COUNTIF(A6:C9)0,1, 0)

I want to count all the repeats to A1 in both area only once.

thanks


EggHeadCafe - Software Developer Portal of Choice
MDI Inter-Form Communication with Events
http://www.eggheadcafe.com/tutorials...ommunicat.aspx
.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default counts repeated number in two different areas only once

Thank you very much, Ryan. Your formula works perfectly.





ryguy7272 wrote:

That compound function does not work.
02-Nov-09

That compound function does not work. Maybe this is what you want:
=IF(COUNTIF(A2:C3,A1)0,1,0)+IF(COUNTIF(A6:C9,A1) 0,1,0)

Or, this:
=IF(COUNTIF(A2:C3,A1)0,1,0)+IF(COUNTIF(A6:C9,A1) 1,1,0)

HTH,
Ryan---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"sierra spiegel" wrote:

Previous Posts In This Thread:

EggHeadCafe - Software Developer Portal of Choice
ASP.NET Membership and Roles in Silverlight 3
http://www.eggheadcafe.com/tutorials...ip-and-ro.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
counts repeated number in two seperate area sierra spiegel Excel Worksheet Functions 1 November 1st 09 09:15 PM
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 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 10:19 PM.

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

About Us

"It's about Microsoft Excel"