MFish
Board Regular
- Joined
- May 9, 2019
- Messages
- 76
Hi there,
I need a code with the INDIRECT Function that will allow me to delete rows and the function won't give me that #REF alert.
Cell A1 is 0
Cell A2, =IF(B2=B1, A1, A1+1)
Cell A3, =IF(B3=B2, A2, A2+1)
So on and so forth... About 400 rows...
I'm "categorizing" the unique values. If it doesn't match then the next line will be a different number, in this case alternating between ODD and EVEN numbers to give me the correct shade through conditional formatting.
I need a code with the INDIRECT Function that will allow me to delete rows and the function won't give me that #REF alert.
Cell A1 is 0
Cell A2, =IF(B2=B1, A1, A1+1)
Cell A3, =IF(B3=B2, A2, A2+1)
So on and so forth... About 400 rows...
I'm "categorizing" the unique values. If it doesn't match then the next line will be a different number, in this case alternating between ODD and EVEN numbers to give me the correct shade through conditional formatting.