+ Reply to Thread
Results 1 to 18 of 18

IF function Circular reference

  1. #1
    Registered User
    Join Date
    07-17-2014
    Location
    texas, usa
    MS-Off Ver
    2010
    Posts
    17

    IF function Circular reference

    and my head is spinning.
    I'm trying to do something so simple and I can't seem to figure it out, which doesn't bode well for my chances of completing the project I've set for myself.

    I need to set up a function that will change the font to red if the number goes above a certain point. I understand I need "if" but I try it, I get a circular warning pop up. It can't be that difficult. I managed to get it to add all the cells I wanted together and come up with a total. Why can't I get it to change color if it goes too high? <sigh>
    Excel is going to drive me insane!

  2. #2
    Forum Contributor
    Join Date
    01-29-2009
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    123

    Re: IF function Circular reference

    It seems like you want cell color to change on the cell with the total? You should use Conditional Formatting on the cell with the total. Highlight the cell with total, go to the Home ribbon > Conditional Formatting > Highlight Cells Rules > Greater Than > then put in a threshold number. The cell with total will change color according to your selected format when it goes over the threshold value.

  3. #3
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: IF function Circular reference

    Can you just use conditional formatting? Conditional formatting > Highlight cell rules > Greater than > enter whatever number you want in the first box and then in the 2nd box click the dropdown and select "Custom Format..." and just change the font to red.

  4. #4
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: IF function Circular reference

    Can you post your workbook?

    I can't really imagine how you could get a circular reference out of conditional formatting, so I can't propose a solution without seeing that.

  5. #5
    Registered User
    Join Date
    07-17-2014
    Location
    texas, usa
    MS-Off Ver
    2010
    Posts
    17

    Re: IF function Circular reference

    No, sorry I wasn't clear. I want the font color to change. I know how to make the cell color change.

  6. #6
    Registered User
    Join Date
    07-17-2014
    Location
    texas, usa
    MS-Off Ver
    2010
    Posts
    17

    Re: IF function Circular reference

    I tried this too. I'm doing something wrong.

  7. #7
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: IF function Circular reference

    If you go into the custom formatting option, you can set it up so all it does is change the font color red without changing the cell color.

  8. #8
    Registered User
    Join Date
    07-17-2014
    Location
    texas, usa
    MS-Off Ver
    2010
    Posts
    17

    Re: IF function Circular reference

    how do i post my worksheet

  9. #9
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: IF function Circular reference

    Click on "Go Advanced" at the bottom of the message box and on the next screen click on the paper clip icon at the top. Then select the file you want to upload.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: IF function Circular reference

    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =A1>10 (or whichever cell/value you need to use)
    Then select Format/Font, select the co0lor you want
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  11. #11
    Registered User
    Join Date
    07-17-2014
    Location
    texas, usa
    MS-Off Ver
    2010
    Posts
    17

    Re: IF function Circular reference

    e4 for example.
    if the number 54 or more, I want it to turn red

    How do you delete a post?!?!?
    Attached Files Attached Files
    Last edited by anstar; 09-05-2014 at 02:11 PM.

  12. #12
    Registered User
    Join Date
    07-17-2014
    Location
    texas, usa
    MS-Off Ver
    2010
    Posts
    17

    Re: IF function Circular reference

    Quote Originally Posted by FDibbins View Post
    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =A1>10 (or whichever cell/value you need to use)
    Then select Format/Font, select the co0lor you want
    I'm doing something wrong, because I've tried that several times and it's not working.

  13. #13
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: IF function Circular reference

    Not sure why you are using this for the CF rule in E4...
    =MOD( ROW( ), 2) =1

    All you need there is...
    =E4>53

    And for the Applies To range, you can just use this...
    =$E$4:$W$32

  14. #14
    Registered User
    Join Date
    07-17-2014
    Location
    texas, usa
    MS-Off Ver
    2010
    Posts
    17

    Re: IF function Circular reference

    That CF rule just shaded every other row so it was easier to read

    All you need there is...
    =E4>53

    And for the Applies To range, you can just use this...
    =$E$4:$W$32
    Sorry, I don't understand where that goes, or how it turns my font red.
    Last edited by anstar; 09-05-2014 at 02:22 PM.

  15. #15
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: IF function Circular reference

    OK understood

    Then just add my suggestion as a new rule (and leave your rule there)

    On a side note, be aware that, if used in excess, CF can start to slow your file down

  16. #16
    Registered User
    Join Date
    07-17-2014
    Location
    texas, usa
    MS-Off Ver
    2010
    Posts
    17

    Re: IF function Circular reference

    I'm (obviously) not great with excel. Don't I have to highlight each cell I want to use CF for? Is there a shortcut like the click and drag for formulas? I need entire columns to change color if necessary.

  17. #17
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: IF function Circular reference

    Yeah, just change the range defintion in the rules section.

    ...I'm also not a big fan of the way you have your data organized; splitting up the data with subtotals in the middle is confusing to me.

    Does the attached work for you? (I just filled the table with nonsense using RANDBETWEEN). It means you can also apply one CF rule to the whole data range; much easier, IMO.
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    07-17-2014
    Location
    texas, usa
    MS-Off Ver
    2010
    Posts
    17

    Re: IF function Circular reference

    I'm also not a big fan of the way you have your data organized; splitting up the data with subtotals in the middle is confusing to me.
    Sorry. I have to divide it that way. We work in quarters. I need the breakdown in quarters. The subtotals by quarter are more important than the individual monthly totals actually.

+ 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. Problem with circular reference in a custom function
    By mongoose36 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-16-2014, 07:18 PM
  2. [SOLVED] IF/MIN Function To Get Around Circular Reference
    By rylock in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-23-2013, 07:09 PM
  3. [SOLVED] Excel 2007 : Incorrect Circular Reference with TODAY() function
    By qaliq in forum Excel General
    Replies: 5
    Last Post: 03-13-2012, 06:48 AM
  4. Worksheet_Change function and circular reference error message
    By nicole_2007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2007, 07:35 AM
  5. IF function and circular reference
    By Abdrahim in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-18-2007, 03:02 PM

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