![]() |
#1
|
|||
|
|||
![]()
I'm trying to create a COUNTIF formula with the R1C1 format that should look like the following after being run:
=COUNTIF(I24:I24,"<"&DP24) I'm having trouble getting the row number variable, "less than" sign, and ampersand to work correctly when all in the same formula. What I have now (below) gives me a Run-time error 1004 (application-defined or object-defined error). Variations of what's below place a hardcoded TRUE/FALSE in the cell. Here is what I have now: Cells(x, LastColumnNumber + 10).FormulaR1C1 = "=CountIF(R" & x & "C" & 9 & ":R" & x & "C" & LastColumnNumber & ","">"" & " & " & Cells(x, LastColumnNumber + 8).Address)""" Any suggestions on how to make this work? Thanks! |
Tags |
ampersand, countif, r1c1 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
COUNTIF and Cell address problem | ColinC | Excel | 3 | 12-24-2011 04:08 AM |
![]() |
jujuwillis | Excel | 2 | 10-15-2011 11:06 AM |
![]() |
ibrahimaa | Excel | 3 | 05-23-2011 11:23 AM |
how to read R1C1 formula | Suhanti | Excel | 2 | 10-16-2010 11:30 AM |
![]() |
Todd | Excel | 9 | 02-27-2010 08:30 PM |