Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
benzi_k_ahamed
 
Posts: n/a
Default How to change the value of a cell when a condition is satisfied, but not otherwise?


I have a small problem.
My requirement is as follows:

I have two cells and have enabled manual calculation. The first cell
loops through the values 1-5 whenever F9 key is pressed.
The function for this is
-*B9*=IF(B9="1","2",IF(B9="2", "3", IF(B9="3", "4", IF(B9="4", "5",
"1"))))-
Whenever the value of cell B9 changes from 5 to 1, I need the value of
cell C3 to change, but never otherwise.
The complication is that cell C3 changes randomly every time B9 changes
from value 5 to value 1.
Right now, my formula for C3 is
-*C3*=IF(B9="5",Rand()*100,C3)-
Yes, I know that a circular reference is created, so I used manual
calculation and made iteration limit to 1, change limit to 0 in
ToolsOptionsCalculation.
It seems to work, but I need a better solution, because I cannot refer
cell C3 from any other formula as it says it causes a circular
reference. I don't know why the circular reference in C3 is not caught
in the first place.

Can anybody help me with this issue?


--
benzi_k_ahamed
------------------------------------------------------------------------
benzi_k_ahamed's Profile: http://www.excelforum.com/member.php...o&userid=30352
View this thread: http://www.excelforum.com/showthread...hreadid=500093

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
I Need a formula to evaluate a cell with + or - values Bob in Oklahoma Excel Worksheet Functions 6 October 31st 05 02:41 PM
Cell Change Color - Need Help alani New Users to Excel 3 June 29th 05 03:50 PM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
Cell references change when entering new data [email protected] New Users to Excel 2 May 6th 05 07:48 PM
Look for change next blank cell in Range Nigel Bennett Excel Worksheet Functions 1 March 13th 05 09:45 PM


All times are GMT +1. The time now is 09:44 AM.

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"