rmccafferty
Board Regular
- Joined
- Jul 16, 2009
- Messages
- 60
I am faced with an extremely complex workbook with formulas that contain code I have not used or seen before. If anyone can explain what OR means in the following, I would be very grateful. I do not see how the OR could mean literally, or, and it does not refer to a worksheet column of OR:
'=INT(0.5+RC[1]/12)+IF(OR(Input!R[16]C="A", Input!R[16]C="SA", Input!R[16]C="Q", Input!R[16]C="BM"),0.001,0)+IF(OR(Input!R[16]C[2]="C",Input!R[16]C[2]="BC",Input!R[16]C[2]="RC"),0.002,0)+IF(OR(Input!R[16]C[2]="B",Input!R[16]C[2]="BC",Input!R[16]C[2]="BRET"),0.004,0)+IF(OR(Input!R[16]C[2]="R",Input!R[16]C[2]="RC",Input!R[16]C[2]="RRET"),0.008,0)
The above is all one line in the Excel cell, but for whatever reason did a couple of line breaks when I pasted it above. I added the leading apostrophe in the first line. There are innumerable cells within many tabs of this workbook with these designations in them.
'=INT(0.5+RC[1]/12)+IF(OR(Input!R[16]C="A", Input!R[16]C="SA", Input!R[16]C="Q", Input!R[16]C="BM"),0.001,0)+IF(OR(Input!R[16]C[2]="C",Input!R[16]C[2]="BC",Input!R[16]C[2]="RC"),0.002,0)+IF(OR(Input!R[16]C[2]="B",Input!R[16]C[2]="BC",Input!R[16]C[2]="BRET"),0.004,0)+IF(OR(Input!R[16]C[2]="R",Input!R[16]C[2]="RC",Input!R[16]C[2]="RRET"),0.008,0)
The above is all one line in the Excel cell, but for whatever reason did a couple of line breaks when I pasted it above. I added the leading apostrophe in the first line. There are innumerable cells within many tabs of this workbook with these designations in them.