Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tim H
 
Posts: n/a
Default If statement to avoid Creating Circular Reference

Good Day,

I have two columns of data With the following in each,

in Cell L2 and filled down is
=IF(H2=10,IF(U2=1,"$",1),IF(L3=1,IF(U2=1,"$",IF(W2 =1,"Trl",1)),0))

In cell M2 and filled down is
=IF(I2=-10,IF(V2=1,"$",1),IF(M3=1,IF(V2=1,"$",IF(X2=1,"Trl ",1)),0))

This works - but what I need to be able to do is find a way to add: While
the cell in one column has a value of 1, then the other cannot return a 1
until the value changes in the first changes

Any Ideas?

Best Regards,

Tim
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
wjohnson
 
Posts: n/a
Default If statement to avoid Creating Circular Reference


Tim - Not exactly clear what you want to do but a couple of things I
think might be easier to accomplish.
=IF(H2=10,IF(U2=1,"$",1),IF(L3=1,IF(U2=1,"$",IF(W2 =1,"Trl",1)),0))
If you fill down - your second "IF" statement (L3=1) gets overwritten
when you copy down. Also you have U2=in there twice.
I would try using an AND statement something like the following:
=IF(AND(H2=10,U2=1),"$",IF(W2=1,"TRL",0))
In my limited function knowledge - your first "IF" statement should
have a "value" if "TRUE" and not another IF statement. Use the second
IF Statment for the "FALSE" part of the IF function - which is what my
example is trying to show you. If you use the AND function - when you
close it you will get an error message - just ignore it - go to the
formula area of the spreadsheet - put the cursor on the "IF" statement
you need to complete and then hit the "equal" sign.


--
wjohnson
------------------------------------------------------------------------
wjohnson's Profile: http://www.excelforum.com/member.php...o&userid=29640
View this thread: http://www.excelforum.com/showthread...hreadid=494968

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tim H
 
Posts: n/a
Default If statement to avoid Creating Circular Reference

Thank you for your response, this formula was not written by me and I can
re-write it fo tread if,then,if,then,if,then,else. This, however, is not the
problem I am having, What I need to accomplish Is For both columns, while the
value in one is equal to 1, the value in the other cannot be 1. I Need to
find a way to do this for both columns without creating a circular reference.
Any Ideas?

Best Regards,

Tim Henning

"wjohnson" wrote:


Tim - Not exactly clear what you want to do but a couple of things I
think might be easier to accomplish.
=IF(H2=10,IF(U2=1,"$",1),IF(L3=1,IF(U2=1,"$",IF(W2 =1,"Trl",1)),0))
If you fill down - your second "IF" statement (L3=1) gets overwritten
when you copy down. Also you have U2=in there twice.
I would try using an AND statement something like the following:
=IF(AND(H2=10,U2=1),"$",IF(W2=1,"TRL",0))
In my limited function knowledge - your first "IF" statement should
have a "value" if "TRUE" and not another IF statement. Use the second
IF Statment for the "FALSE" part of the IF function - which is what my
example is trying to show you. If you use the AND function - when you
close it you will get an error message - just ignore it - go to the
formula area of the spreadsheet - put the cursor on the "IF" statement
you need to complete and then hit the "equal" sign.


--
wjohnson
------------------------------------------------------------------------
wjohnson's Profile: http://www.excelforum.com/member.php...o&userid=29640
View this thread: http://www.excelforum.com/showthread...hreadid=494968


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
wjohnson
 
Posts: n/a
Default If statement to avoid Creating Circular Reference


Tim - Why not try having a cell on your spreadsheet like A1 reference
the value in cell L2 and then make your M2 reference to cell A1 - so if
cell A1 is 1 - then M2 has to be something else. This should eliminate
the circular reference.


--
wjohnson
------------------------------------------------------------------------
wjohnson's Profile: http://www.excelforum.com/member.php...o&userid=29640
View this thread: http://www.excelforum.com/showthread...hreadid=494968

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
How can I avoid circular reference AND extra input maintchief New Users to Excel 3 November 10th 05 12:39 PM
Highest Value / Circular Reference Help Josh M Excel Worksheet Functions 0 May 23rd 05 06:49 PM
Need to avoid a circular reference... Denise Excel Worksheet Functions 1 April 1st 05 08:23 PM
Help solve a Circular Reference brupub Excel Worksheet Functions 6 February 14th 05 07:11 AM
How do I fix a circular reference in a financial statement? drjayhawk25 Excel Discussion (Misc queries) 0 February 7th 05 05:19 PM


All times are GMT +1. The time now is 11:55 AM.

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

About Us

"It's about Microsoft Excel"