+ Reply to Thread
Results 1 to 8 of 8

Formula using Circular Reference

  1. #1
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Broooklyn, NY
    MS-Off Ver
    Excel 2016
    Posts
    207

    Formula using Circular Reference

    I need to calculate the following using circular reference

    Value Criteria1 Criteria2
    $50.00 15 15
    $30.00 40 200
    $80.00 80 90
    $100.00 120 30

    If Criteria 1 or Criteria 2 is less than 100, leave the value inputted, otherwise you should have 0. For instance, $100 should turn into 0 since criteria 1 has 120.

    Any ideas?

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Formula using Circular Reference

    How does the number in the value column get there? Is it pulled from elsewhere or is it manually entered? If it is pulled from some other cell(s), you could just use an IF formula in the value column. Something like:

    =IF(MAX(B1,C1)>100,0,FormulaThatPullsValue)

    If it's manually entered and you need it to drop to zero if a criteria exceeds 100, that could be achieved using a VBA change event. It would be helpful to see a representative sample workbook (use: Go Advanced --> Manage Attachments to access the upload window). Be sure to alter or remove any sensitive data.

    Should $30 drop to 0 as well, since criteria2 is 100?
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  3. #3
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Broooklyn, NY
    MS-Off Ver
    Excel 2016
    Posts
    207

    Re: Formula using Circular Reference

    It has to be easier way. Would it work with data validation? What formula could I put in there? Yes, $30 should drop to 0. Value is manually entered and it is not a formula.
    Last edited by olga6542; 11-16-2017 at 01:18 PM.

  4. #4
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Formula using Circular Reference

    It's hard to say without seeing anything. Are you able to post a sample workbook?

  5. #5
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Broooklyn, NY
    MS-Off Ver
    Excel 2016
    Posts
    207

    Re: Formula using Circular Reference

    Here is the attachment
    Attached Files Attached Files

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula using Circular Reference

    Quote Originally Posted by olga6542 View Post
    It has to be easier way.
    Unfortunately, there is not. You cannot have both a formula and a manually entered value in the same cell. The formula is required to test the logic.

    As CAntosh stated in post #2, this can be done, but it will have to be through VBA.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,116

    Re: Formula using Circular Reference

    Do you want a value AND a formula in the one cell??? If so, you can't.

    This formual will work inD2, copied down, but NOT in A2...


    =IF(OR(B2>=100, C2>=100),0,A2)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  8. #8
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Formula using Circular Reference

    Assuming the data in A is manually entered, you can use a helper column (see Glenn's approach) or VBA:

    Please Login or Register  to view this content.
    The procedure above should change the A value to zero if a criteria value over/equal to 100 is entered.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help with circular reference formula
    By texas tornado in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-03-2014, 02:54 PM
  2. Replies: 2
    Last Post: 02-23-2014, 06:06 PM
  3. circular reference formula
    By ddv13 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-26-2013, 06:38 PM
  4. Circular Reference when formulas reference end of row formula!
    By Spellbound in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-29-2009, 08:26 AM
  5. Replies: 1
    Last Post: 08-21-2007, 07:22 PM
  6. Circular Reference Formula Help
    By acebrown in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-21-2006, 08:25 PM
  7. [SOLVED] circular reference formula
    By Abhi in forum Excel General
    Replies: 4
    Last Post: 03-12-2006, 10:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1