+ Reply to Thread
Results 1 to 4 of 4

Countif r1c1 vba how to add variable

  1. #1
    Forum Contributor
    Join Date
    07-10-2019
    Location
    england
    MS-Off Ver
    2013
    Posts
    486

    Countif r1c1 vba how to add variable

    ActiveCell.FormulaR1C1 = "=+COUNTIF(R17 ,R[-1]C)"

    How to add variable instead of 17
    R17 to R&i
    is giving error.. Kindly help
    I want to "=+COUNTIF(R & i & ,R[-1]C)"
    This is giving error..
    How to put variable i
    Last edited by dorabajji; 03-04-2020 at 01:33 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Countif r1c1 vba how to add variable

    ActiveCell.FormulaR1C1 = " & Range(?????????).value " & cells&" ,R[-1]C)"
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Contributor
    Join Date
    07-10-2019
    Location
    england
    MS-Off Ver
    2013
    Posts
    486

    Re: Countif r1c1 vba how to add variable

    Hi mehmetcik,
    I am not able to get it..
    Can you provide me full formula in countif..
    My actual formula is
    countif(7,7,A7)
    This i am trying to do in vba.. instead of 7 i want i

  4. #4
    Forum Contributor
    Join Date
    07-10-2019
    Location
    england
    MS-Off Ver
    2013
    Posts
    486

    Re: Countif r1c1 vba how to add variable

    Hi,
    I am getting error.. when i incorporate yours in countif.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. R1C1 Help
    By ashley72788 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-08-2016, 01:06 PM
  2. [SOLVED] Help with R1C1 formula
    By kmlloyd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-05-2015, 03:52 PM
  3. Using R1C1 formula in VBA changes all references from CELL("address") function to R1C1?
    By dmasters4919 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-20-2014, 04:17 PM
  4. R1C1
    By Arne Hegefors in forum Excel General
    Replies: 1
    Last Post: 08-18-2006, 05:15 AM
  5. [SOLVED] A:1 now R1C1
    By Michael E W in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-24-2005, 07:40 PM
  6. R1C1 v A1
    By andy_hammer2001(remove) in forum Excel General
    Replies: 6
    Last Post: 10-13-2005, 12:05 AM
  7. [SOLVED] my first attempt at R1C1 in vba
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-05-2005, 12:05 PM

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