+ Reply to Thread
Results 1 to 18 of 18

countif on nonconnected ranges

Hybrid View

  1. #1
    Registered User
    Join Date
    04-13-2007
    Posts
    19
    I tried your solution, but it didn't work. At least it didn't say that the formula was bad, it just didn't work. Thanks anyway

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by village_idiot
    I tried your solution, but it didn't work. At least it didn't say that the formula was bad, it just didn't work. Thanks anyway
    What didn't work about it? Did it give an error? or Wrong count?

    Remember to change X1 to the actual cell housing the value to count or replace it with the value you wnat to count.
    Last edited by NBVC; 05-14-2007 at 04:02 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-13-2007
    Posts
    19
    It didn't cause an error, but then again it didn't do anything at all. I know that in the bigger picture this problem isn't much, but like I said I only have 2 hairs left and one is loose. I'll included a zipped file so you can see what I'm doing. I want to keep the people from drawing a card that is already drawn. Again thanks for any and all help.
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    So have your ranges changed to I5:I9, K5:K9, I12:I16, K12:K16?

    I don't see where you tried the formula?

  5. #5
    Forum Contributor
    Join Date
    09-25-2004
    Posts
    269
    Maybe...

    =SUMPRODUCT(COUNTIF(INDIRECT({"I492:I496","I499:I503","K492:K496","K499:K503"}),X1))


    Hope it helps!

  6. #6
    Registered User
    Join Date
    04-13-2007
    Posts
    19
    To NBVC: the addresses has changed, because the work sheet I was working from has a lot of other info that I garnered from this fantastic web site and it's even more fantastic people who take the time to help me and my fellow noobs. I cut and pasted only the one item to work on. I tried your formula and since it didn't do anything I removed it.

    To VANE0326: thanks for the info, but according to Excel and I quote: "You may not use unions, intersections, or arrey constants for Data Validation or Conditional Formats" unquote. So, I'm back at the same point, not that it matters much, my last 2 hairs fell out last night, so I guess I'll have to try it from another direction.

    Thanks for all the info and I'll keep looking.

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by village_idiot
    To NBVC: the addresses has changed, because the work sheet I was working from has a lot of other info that I garnered from this fantastic web site and it's even more fantastic people who take the time to help me and my fellow noobs. I cut and pasted only the one item to work on. I tried your formula and since it didn't do anything I removed it.

    If you specify exactly what you are doing and what results you expect and where you expect them, referencing the cells in the sheet you attached, I am sure we can come up with a solution....

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1