I'm trying to use IF statements in Excel but I can't get round the problem of using more than 7. I want to use 52 statements as I'm trying to apply it to playing card data:
IF(A1=0, "Ac")
IF(A1=1,"2c")
"
"
"
IF(A1=51,"Ks")
Has anyone got any tips?
Cheers
2007-03-16
06:34:46
·
6 answers
·
asked by
lcam
1
in
Computers & Internet
➔ Programming & Design
Found the solution now thanks
=IF(A2>25, CHOOSE(A2-25,"Ah","2h","3h","4h","5h","6h","7h","8h","9h","Th","Jh","Qh","Kh","As","2s","3s","4s","5s","6s","7s","8s","9s","Ts","Js","Qs","Ks"), CHOOSE(A2+1,"Ac","2c","3c","4c","5c","6c","7c","8c","9c","Tc","Jc","Qc","Kc","Ad","2d","3d","4d","5d","6d","7d","8d","9d","Td","Jd","Qd","Kd"))
2007-03-16
20:44:31 ·
update #1