Results 1 to 5 of 5

Passing arguments in COUNTIF function

Threaded View

abduljaleel.mca Passing arguments in COUNTIF... 02-13-2013, 05:56 AM
Excel4Everything Re: Passing arguments in... 02-13-2013, 07:36 AM
abduljaleel.mca Re: Passing arguments in... 02-13-2013, 11:03 AM
Excel4Everything Re: Passing arguments in... 02-14-2013, 05:57 AM
abduljaleel.mca Re: Passing arguments in... 02-14-2013, 08:15 AM
  1. #1
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Passing arguments in COUNTIF function

    Hi,

    I need to use countif function for column A15 to C15 to count the number of occurrences using macro but the following code is not working
    I have data in 3 columns (A-C) up to 15 rows.

    x=15
    z=3
    
    For i = 1 To x
    Cells(i, 4).Select
    ActiveCell.FormulaR1C1 = "=COUNTIF(R1C1:R&xC&z,&i)"
    Next i
    x and z values will change project to project so I need to pass this as an argument.

    Please help me.
    Last edited by abduljaleel.mca; 02-19-2013 at 11:34 AM. Reason: Use code tags

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