Tazguy37
MrExcel MVP
- Joined
- May 28, 2004
- Messages
- 4,237
is it just that they have a different thought process than I do?
OR
do they think, "It works...why change it?"
I saw this formula in an Excel worksheet at work just now:
=IF(G19=0,4,IF(G19=1,3,IF(G19=2,2,IF(G19=3,1,IF(G19=4,1,IF(G19>=5,0))))))
That's six, count 'em, six IF statements. I shortened it to:
=IF(G18>=5,0,IF(G18=4,1,4-G18))
If anybody has another formula with two or less functions in it, by all means -- share it. But seeing as how I don't know who generated the formulas, I'll probably never know the answer to my query. I was just interested to see what everybody else thought.
OR
do they think, "It works...why change it?"
I saw this formula in an Excel worksheet at work just now:
=IF(G19=0,4,IF(G19=1,3,IF(G19=2,2,IF(G19=3,1,IF(G19=4,1,IF(G19>=5,0))))))
That's six, count 'em, six IF statements. I shortened it to:
=IF(G18>=5,0,IF(G18=4,1,4-G18))
If anybody has another formula with two or less functions in it, by all means -- share it. But seeing as how I don't know who generated the formulas, I'll probably never know the answer to my query. I was just interested to see what everybody else thought.