TdC
Trem's hunky sex love muffin
- Joined
- Dec 20, 2003
- Messages
- 30,925
Dudes,
I need a formula that returns a given set of 1's and 0's when a certain letter or combination is present in a cell. I've tried this:
but the barstand will only match the first IF(FIND()) when another combination is present it fails
example:
I'm prolly forgetting something stupid. Help meh pls guys
I need a formula that returns a given set of 1's and 0's when a certain letter or combination is present in a cell. I've tried this:
Code:
=IF(FIND("CRU";A2);1&CHAR(44)&1&CHAR(44)&0&CHAR(44)&1&CHAR(44)&0&CHAR(44)&1;IF(FIND("C";A2);1&CHAR(44)&1&CHAR(44)&1&CHAR(44)&0&CHAR(44)&0&CHAR(44)&1;IF(FIND("R";A2);1&CHAR(44)&1&CHAR(44)&0&CHAR(44)&0&CHAR(44)&0&CHAR(44)&1;IF(FIND("U";A2);1&CHAR(44)&1&CHAR(44)&0&CHAR(44)&1&CHAR(44)&0&CHAR(44)&1;IF(FIND("CR";A2);1&CHAR(44)&1&CHAR(44)&1&CHAR(44)&0&CHAR(44)&0&CHAR(44)&1;IF(FIND("CU";A2);1&CHAR(44)&1&CHAR(44)&1&CHAR(44)&1&CHAR(44)&0&CHAR(44)&1;IF(FIND("RU";A2);1&CHAR(44)&1&CHAR(44)&0&CHAR(44)&1&CHAR(44)&0&CHAR(44)&1;0)))))))
but the barstand will only match the first IF(FIND()) when another combination is present it fails
example:
Code:
C #VALUE!
R #VALUE!
U #VALUE!
CR #VALUE!
CU #VALUE!
RU #VALUE!
CRU 1,1,0,1,0,1
I'm prolly forgetting something stupid. Help meh pls guys