Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
tenaj
 
Posts: n/a
Default If Statement?


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

  #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



  #3   Report Post  
Posted to microsoft.public.excel.newusers
Ron Coderre
 
Posts: n/a
Default If Statement?


Tenaj

I think this does what you want:

For a value in A1

B1: =MOD(A1+5,10)

Does that help?

Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=536799

  #4   Report Post  
Posted to microsoft.public.excel.newusers
tenaj
 
Posts: n/a
Default If Statement?


Bob Phillips Wrote:
=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

Thank You Bob Phillips! Superb!!!!!!!!!! I could have never figured
that out.


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

  #5   Report Post  
Posted to microsoft.public.excel.newusers
tenaj
 
Posts: n/a
Default If Statement?


Ron Coderre Wrote:
Tenaj

I think this does what you want:

For a value in A1

B1: =MOD(A1+5,10)

Does that help?

Regards,
Ron


Thank you Ron. I didn't figure out how to use it. Maybe I did
something wrong. The formula didn't generate anything but I have a
formula now that does exactly what I need. Thank you for you time and
help.


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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SET statement tutorial Daminc Excel Discussion (Misc queries) 13 January 17th 06 04:47 PM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
How to calculate a sum as one outcome of an IF statement barb in NC Excel Worksheet Functions 2 March 31st 05 08:01 PM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM


All times are GMT +1. The time now is 06:46 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"