Thread: If Statement?
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Bob Phillips
 
Posts: n/a
Default If Statement?

=CHOOSE(A1+1,5,6,7,8,9,0,1,2,3,4)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"tenaj" wrote in
message ...

Hey everyone,

=IF(A1=0,9,A1-1)
This formulas says if A1=0, make it 9 and subtract 1

How do I make it say if A1 equals 0, make A2= 5 and if A1=5 make A2=0

But there are 5 conditions. They mirror each other. Example: a 0 is a
5 and a 5 is a 0.

0=5, 5=0
1= 6, 6=1
2=7, 7=2
3=8, 8=3
4=9, 9=4
How do I make the cell meet all of these conditions.

Thank you for your help.


--
tenaj
------------------------------------------------------------------------
tenaj's Profile:

http://www.excelforum.com/member.php...o&userid=32691
View this thread: http://www.excelforum.com/showthread...hreadid=536799