schnabs
Technical User
- Jan 21, 2009
- 50
When I use the record macro function in Excel, and I try to record this in a cell
=IF(AND(MATCH(MAX(
OFFSET($K$1,MATCH(J2,$J$2:$J$5000,0),0,COUNTIF($J$2:$J$5000,J2),1)),
OFFSET($K$1,MATCH(J2,$J$2:$J$5000,0),0,COUNTIF($J$2:$J$5000,J2),1),0)<=COUNTIF($J$2:J2,J2),(E2<>0)),E2,IF(A2<>"","Total",0))
It throws an unable to record error message. I've searched around online and only found that Excel limits Macros to under 255 characters per cell, but this is 213. Anyone have any ideas?
Thanks
=IF(AND(MATCH(MAX(
OFFSET($K$1,MATCH(J2,$J$2:$J$5000,0),0,COUNTIF($J$2:$J$5000,J2),1)),
OFFSET($K$1,MATCH(J2,$J$2:$J$5000,0),0,COUNTIF($J$2:$J$5000,J2),1),0)<=COUNTIF($J$2:J2,J2),(E2<>0)),E2,IF(A2<>"","Total",0))
It throws an unable to record error message. I've searched around online and only found that Excel limits Macros to under 255 characters per cell, but this is 213. Anyone have any ideas?
Thanks