SolveigBor
New Member
- Joined
- Aug 17, 2011
- Messages
- 3
Hi!
I have a problem with a formula that gets too long to be accepted by excel.
I want to make a formula like this, only that I want to add more lines, which I'm not allowed to. Is there a way to make this shorter/easier?
=IF(ISNA(MATCH(O4,$Q$5:$Q$27,0)),O4,(IF(ISNA(MATCH(O5,$Q$5:$Q$27,0)),O5,(IF(ISNA(MATCH(O6,$Q$5:$Q$27,0)),O6,(IF(ISNA(MATCH(O7,$Q$5:$Q$27,0)),O7,(IF(ISNA(MATCH(O8,$Q$5:$Q$27,0)),O8,(IF(ISNA(MATCH(O9,$Q$5:$Q$27,0)),O9,(IF(ISNA(MATCH(O10,$Q$5:$Q$27,0)),O10,(IF(ISNA(MATCH(O11,$Q$5:$Q$27,0)),O11,(IF(ISNA(MATCH(O12,$Q$5:$Q$27,0)),O12,(IF(ISNA(MATCH(O13,$Q$5:$Q$27,0)),O13,(IF(ISNA(MATCH(O14,$Q$5:$Q$27,0)),O14,(IF(ISNA(MATCH(O15,$Q$5:$Q$27,0)),O15,(IF(ISNA(MATCH(O16,$Q$5:$Q$27,0)),O16,(IF(ISNA(MATCH(O17,$Q$5:$Q$27,0)),O17,(IF(ISNA(MATCH(O18,$Q$5:$Q$27,0)),O18,(IF(ISNA(MATCH(O19,$Q$5:$Q$27,0)),O19,(IF(ISNA(MATCH(O20,$Q$5:$Q$27,0)),O20,(IF(ISNA(MATCH(O21,$Q$5:$Q$27,0)),O21,(IF(ISNA(MATCH(O22,$Q$5:$Q$27,0)),O22,(IF(ISNA(MATCH(O23,$Q$5:$Q$27,0)),O23,(IF(ISNA(MATCH(O24,$Q$5:$Q$27,0)),O24,(IF(ISNA(MATCH(O25,$Q$5:$Q$27,0)),O25,(IF(ISNA(MATCH(O26,$Q$5:$Q$27,0)),O26,(IF(ISNA(MATCH(O27,$Q$5:$Q$27,0)),O27,(IF(ISNA(MATCH(O28,$Q$5:$Q$27,0)),O28,(IF(ISNA(MATCH(O29,$Q$5:$Q$27,0)),O29,(IF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H(O59,$Q$5:$Q$27,0)),O59,(IF(ISNA(MATCH(O61,$Q$5:$Q$27,0)),O61,(IF(ISNA(MATCH(O62,$Q$5:$Q$27,0)),O62,(IF(ISNA(MATCH(O63,$Q$5:$Q$27,0)),O63,(IF(ISNA(MATCH(O64,$Q$5:$Q$27,0)),O64,(IF(ISNA(MATCH(O65,$Q$5:$Q$27,0)),O65,(IF(ISNA(MATCH(O66,$Q$5:$Q$27,0)),O66,(IF(ISNA(MATCH(O67,$Q$5:$Q$27,0)),O67,O68)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
I have a problem with a formula that gets too long to be accepted by excel.
I want to make a formula like this, only that I want to add more lines, which I'm not allowed to. Is there a way to make this shorter/easier?
=IF(ISNA(MATCH(O4,$Q$5:$Q$27,0)),O4,(IF(ISNA(MATCH(O5,$Q$5:$Q$27,0)),O5,(IF(ISNA(MATCH(O6,$Q$5:$Q$27,0)),O6,(IF(ISNA(MATCH(O7,$Q$5:$Q$27,0)),O7,(IF(ISNA(MATCH(O8,$Q$5:$Q$27,0)),O8,(IF(ISNA(MATCH(O9,$Q$5:$Q$27,0)),O9,(IF(ISNA(MATCH(O10,$Q$5:$Q$27,0)),O10,(IF(ISNA(MATCH(O11,$Q$5:$Q$27,0)),O11,(IF(ISNA(MATCH(O12,$Q$5:$Q$27,0)),O12,(IF(ISNA(MATCH(O13,$Q$5:$Q$27,0)),O13,(IF(ISNA(MATCH(O14,$Q$5:$Q$27,0)),O14,(IF(ISNA(MATCH(O15,$Q$5:$Q$27,0)),O15,(IF(ISNA(MATCH(O16,$Q$5:$Q$27,0)),O16,(IF(ISNA(MATCH(O17,$Q$5:$Q$27,0)),O17,(IF(ISNA(MATCH(O18,$Q$5:$Q$27,0)),O18,(IF(ISNA(MATCH(O19,$Q$5:$Q$27,0)),O19,(IF(ISNA(MATCH(O20,$Q$5:$Q$27,0)),O20,(IF(ISNA(MATCH(O21,$Q$5:$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,(IF(ISNA(MATCH(O51,$Q$5:$Q$27,0)),O51,(IF(ISNA(MATCH(O52,$Q$5:$Q$27,0)),O52,(IF(ISNA(MATCH(O53,$Q$5:$Q$27,0)),O53,(IF(ISNA(MATCH(O54,$Q$5:$Q$27,0)),O54,(IF(ISNA(MATCH(O55,$Q$5:$Q$27,0)),O55,(IF(ISNA(MATCH(O56,$Q$5:$Q$27,0)),O56,(IF(ISNA(MATCH(O57,$Q$5:$Q$27,0)),O57,(IF(ISNA(MATCH(O58,$Q$5:$Q$27,0)),O58,(IF(ISNA(MATCH(O59,$Q$5:$Q$27,0)),O59,(IF(ISNA(MATCH(O61,$Q$5:$Q$27,0)),O61,(IF(ISNA(MATCH(O62,$Q$5:$Q$27,0)),O62,(IF(ISNA(MATCH(O63,$Q$5:$Q$27,0)),O63,(IF(ISNA(MATCH(O64,$Q$5:$Q$27,0)),O64,(IF(ISNA(MATCH(O65,$Q$5:$Q$27,0)),O65,(IF(ISNA(MATCH(O66,$Q$5:$Q$27,0)),O66,(IF(ISNA(MATCH(O67,$Q$5:$Q$27,0)),O67,O68)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))