Results 1 to 4 of 4
  1. #1
    mkc80 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    56

    RC Notation and additional criteria

    I need to add a condition to the already existing criteria:



    The existing Criteria is: Count the rows where the value in a column is either "Yes" or "MayBe",
    AND now I would like to add another condition:Check if in the same 'Report' tab, but a different column, the value is "Europe"

    Essentially, I would like to count how many rows in Column 5 have the answer "Yes" or "MayBe" WHEN the Continent is "Europe"

    Range("B2").Select
    ActiveCell.FormulaR1C1 = _
    "=SUM(COUNTIF('Report'!R[1]C[5]:R[2498]C[5],""Yes""),COUNTIF('Report'!R[1]C[5]:R[2498]C[5],""MayBe""))"

    Please Advise.

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Your question looks like an Excel question (references to rows, columns, and Excel formulas), but you posted it in an Access forum.
    Did you mean to do this?
    If you are trying to do this to Excel data, but through Access, I would link the Excel table into Access and then use Access query functionality to apply your criteria.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    If you must use Excel function, look at the COUNTIFS function.
    = SUM(COUNTIFS(B2:B6,"Yes",C2:C6,"Europe"),COUNTIFS( B2:B6,"Maybe",C2:C6,"Europe"))
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    mkc80 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    56
    @June 7: Thank you so much!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. RC Notation and Date Comparison
    By mkc80 in forum Access
    Replies: 2
    Last Post: 10-10-2012, 06:22 PM
  2. additional pages
    By snoopy in forum Reports
    Replies: 3
    Last Post: 06-15-2012, 02:06 AM
  3. Extract Strings from a Dot Notation Field
    By wwalkerbout in forum Programming
    Replies: 17
    Last Post: 02-27-2012, 02:15 AM
  4. to add additional tables or not?
    By phineas629 in forum Database Design
    Replies: 1
    Last Post: 09-30-2011, 12:23 PM
  5. Additional params for ANY query
    By dnagir in forum Access
    Replies: 0
    Last Post: 01-21-2009, 10:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums