+ Reply to Thread
Results 1 to 3 of 3

Problem in COUNTIFS statement

Hybrid View

  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

    Problem in COUNTIFS statement

    Hi,

    I am creating a macro, in that i am using COUNTIFS function like below

    Activecell.FormulaR1C1= "=COUNTIFS(C:C,A" &ik &")"

    ik = 1 to 10

    In the cell it appear as =COUNTIFS(C:C,'A1') instead of =COUNTIFS(C:C,A1). So I am getting error. The apostrophe should not appear.

    Any help would be greatly appreciated.

    Thanks
    Abdul
    Last edited by abduljaleel.mca; 04-15-2013 at 10:32 AM.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Problem in COUNTIFS statement

    Hi, Abndul,

    change the way the formula is put into the cell from R1C1 to A1 like
    ActiveCell.Formula = "=COUNTIFS(C:C,A" & ik & ")"
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Problem in COUNTIFS statement

    Thanks Holger..I will check it and get back to you.

+ 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