×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Excel Nested Loop - Circular Reference

Excel Nested Loop - Circular Reference

Excel Nested Loop - Circular Reference

(OP)
Hello all.

I'd like for another set of eyes to see this if statement to see where a circular reference has occured (or not) and or point a trouble spot as to why it doesn't return the expected value.

=IF(M34>=0,(IF((K34*M34+G34)>=$N$7, G35=$N$7,G35=K34*M34+G34)),(IF(ABS(K34*M34+G34)>=$N$7, G35=-$N$7, G35=K34*M34+G34)))

The values of the cells are:

M34 = -0.02124
K34 = 10
G34 = 0
N7 = 0.303

for this case I believe that G35 should be -0.2124  but so far excel arrives at 0 and some hint a circular reference.

Any help would be greatly appreciated.

Regards,
Qshake
pipe
Eng-Tips Forums:Real Solutions for Real Problems Really Quick.
 

RE: Excel Nested Loop - Circular Reference

All of your if and then cases return a boolean 1 or 0.

You can't change the value of another cell with a formula.

RE: Excel Nested Loop - Circular Reference

(OP)
I've figured it out....just after posting.  I'm too stuck in the old code languages where we have to assign the results to another varible.  

See where the results of the if state are I am asking it to set G35 equal to that computation rather than just leaving the computation!

Thanks for your help.  This is quite effective from Eng-tips perspective - I post and then I solve.  But from my perspective it's a pain and I find that I should have hit my head against the wall harder!!

Regards,
Qshake
pipe
Eng-Tips Forums:Real Solutions for Real Problems Really Quick.
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources