Consulting

Results 1 to 7 of 7

Thread: Solved: Alternative to RICI notation in formula

  1. #1
    VBAX Tutor
    Joined
    Dec 2009
    Posts
    295
    Location

    Solved: Alternative to RICI notation in formula

    hi

    how can i change this line:
    ActiveCell.FormulaR1C1 = "=COUNTIF(C[-2],""<0.1"")"

    in the macro to write some ather way not r1c1 because like this it hard to understand the line and edit it


    thanks

  2. #2
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    [VBA]ActiveCell.Formula = "=COUNTIF(" & Columns(ActiveCell.Offset(0, -2).Column).Address(False, False) & ",""<0.1"")"
    [/VBA]

  3. #3
    VBAX Tutor
    Joined
    Dec 2009
    Posts
    295
    Location
    thanks

    where in this line can i put the range and the cell with the ansver??


    Oleg

  4. #4
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    It is unclear what you want. The solution that I gave replaces the line of code that you used.

  5. #5
    VBAX Tutor
    Joined
    Dec 2009
    Posts
    295
    Location
    the code that i used is recorded by macro recorder and when wanted to change the range of data and the answer cell i faced a problem.
    i thought that if you help me to change it so i will be able to undestand it and change the data but not sucsses.
    please can you help me to over come my problem so i be able to change the range of data to k:k and answer cell to a8


    thanks


    Oleg

  6. #6
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    [VBA]Range("A8").Formula = "=COUNTIF(K:K,""<0.1"")"[/VBA]

  7. #7
    VBAX Tutor
    Joined
    Dec 2009
    Posts
    295
    Location
    Finaly

    thanks alot for all your help
    and you time

    Oleg

Posting Permissions

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