+ Reply to Thread
Results 1 to 12 of 12

Conditional Formatting….. Manage Rules

  1. #1
    Registered User
    Join Date
    02-18-2013
    Location
    Seattle, WA
    MS-Off Ver
    Mac Excel 2011
    Posts
    10

    Conditional Formatting….. Manage Rules

    Hello!! First off, I just want to say thank you to everyone that looks at my post and I think this is a great site that I have visited many times! Thank you!

    Overview:
    In the sheet "Cost of Goods" that is part of our monthly budget for our business, each line item consist of a expense that can be categorized as a "Cost of Good". When we receive an invoice that belongs in the "Cost of Goods" sheet, we enter in the pertinent information like the Company Name, Account #, Invoice #, Amount Due, Date Due, and how the invoice will be paid from. At this Stage, we make the whole row yellow by using the Fill Color tool. Once the amount of the invoice has been deducted from our account, we enter the same amount that was in the Amount Due column in to the Amount Paid column and then we change the row from yellow to green. We do this because it helps us to easily differentiate between the invoices were the funds have been deducted from our account and the invoices that haven't been deducted from our account.

    Problem:
    I can't figure out how to create a rule in Conditional Formatting… -> Manage Rules were once we enter in a value into the column "Amount Due" that it turns that specific row yellow and then when we enter in that exact value into the column "Amount Paid" it then turns that specific row green.

    Any Suggestions? I have attached an excel file that has two "Cost of Goods" sheets. One is the current sheet with no rows with any Fill Color and the other sheet, "goal" that show what we want the sheet to look if we were able to successful create a rule to do what we are trying to do.

    One thing to note, sometimes we enter in expenses that we haven't yet received the invoice for because it is a monthly expense. In these cases we leave the row for that specific invoice/expense white.

    Example.xlsx

  2. #2
    Registered User
    Join Date
    03-20-2011
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Conditional Formatting….. Manage Rules

    1. For Amount Due: Highlight the section that you want the conditional formatting to apply to.
    2. Select conditional formatting button.
    3. Select classic for the style, I do this because that is what I am familiar with.
    4. Select “use formula to determine cells to format”.
    5. Enter this formula into the formula section =indirect(“U”&ROW())>0
    6. Select formatting option, yellow fill and black font ( you may have to select custom format.
    7. Select ok till it updates the sheet
    8. Repeat steps 1 through 7 for Amount paid except for on step 5 enter this formula =indirect(“V”&ROW())>0.
    9. You will need to click the plus sign to add a new condition
    Hope this helps (see your attached updated file)
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-18-2013
    Location
    Seattle, WA
    MS-Off Ver
    Mac Excel 2011
    Posts
    10

    Re: Conditional Formatting….. Manage Rules

    This helps a lot! Thank you!

    What if I wanted the second formatting Rule to be when the value in Column U is equal to the Value in Column V of the same row then the row is Green would the formulate look something like these two attempts?

    =indirect(“U”&ROW())=indirect(“V”&ROW()) ????

    =indirect(“U”&ROW())=indirect(“V”&ROW()) ???

    Neither of them work and also something weird happens. The Edit Formatting Rule Menu looks correct and the Fill and Font are what I set them to be but then when I click okay the Manage Rule Menu changes the FIll and Font to Yellow and Black, just like the second rule. See images below. Any thoughts?


    Screen Shot 2014-01-15 at 2.38.59 PM.pngScreen Shot 2014-01-15 at 2.39.09 PM.png

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Conditional Formatting….. Manage Rules

    INDIRECT is not required for this. If you have row 2 active:

    =$U2=$V2

    will be the formula. The row number will change when applied to other rows.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  5. #5
    Registered User
    Join Date
    02-18-2013
    Location
    Seattle, WA
    MS-Off Ver
    Mac Excel 2011
    Posts
    10

    Re: Conditional Formatting….. Manage Rules

    What all rows 5 thru 22 are active would the formula then be =$u5:u22=$v5:v22 ??

  6. #6
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Conditional Formatting….. Manage Rules

    No. If you have selected rows 5 to 22 and the active cell is in row 5, the formula is simply:
    =$U5=$V5

  7. #7
    Registered User
    Join Date
    02-18-2013
    Location
    Seattle, WA
    MS-Off Ver
    Mac Excel 2011
    Posts
    10

    Re: Conditional Formatting….. Manage Rules

    I can't get that to work. I am trying to get it so the row fill color is yellow when the value in column u is greater then zero and the value in column V of the same row is zero. And then when the values of both U and V of the same row are equal and not zero then the row fill color is Green.

    Could you create an if then formula that would update the fill color to yellow like:
    =indirect(“U”&ROW())>0 & (“V”&ROW())=0 ->>> Yellow

    =indirect(“U”&ROW())=(“V”&ROW()) & (“U”&ROW())>0 ->> Green

  8. #8
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Conditional Formatting….. Manage Rules

    =AND($U5>0,$V5=0) ->>> Yellow
    =AND($U5=$V5,$U5<>0) ->> Green

  9. #9
    Registered User
    Join Date
    02-18-2013
    Location
    Seattle, WA
    MS-Off Ver
    Mac Excel 2011
    Posts
    10

    Re: Conditional Formatting….. Manage Rules

    Okay, because you are U5 does them I have to create the rule for each row? If not what would the formula be for all the rows?

    So in the formula Section:

    =indirect(“U”&ROW())>0=AND(“U”&ROW())>0,(“V”&ROW())=0) ->> Yellow

    =indirect(“V”&ROW())>0=AND((“U”&ROW())=(“V”&ROW()),((“U”&ROW())<>0) ->> Green

  10. #10
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Conditional Formatting….. Manage Rules

    No INDIRECT is necessary! Select rows 5 to 22 and enter the formulas exactly as I have posted. Formatting will adjust for each row because row number in both formulas is relative - note it is $U5 instead of $U$5

  11. #11
    Registered User
    Join Date
    02-18-2013
    Location
    Seattle, WA
    MS-Off Ver
    Mac Excel 2011
    Posts
    10

    Re: Conditional Formatting….. Manage Rules

    Crazy, the formula was shorten as it got more complicated!

    Thanks for your help! What does INDIRECT do?

  12. #12
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Conditional Formatting….. Manage Rules

    INDIRECT returns a reference to a cell from a cell address, like "A1"

+ 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. conditional formatting rules for a cell on sheet 1 based on rules from sheet 2
    By jsard in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 08-15-2013, 09:22 AM
  2. What new rules do I need for Conditional Formatting?
    By ypurcaro in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-12-2013, 04:30 AM
  3. [SOLVED] Conditional Formatting Rules Help
    By PCAg in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-11-2012, 05:33 PM
  4. Conditional Formatting with rules
    By howcroc in forum Excel General
    Replies: 6
    Last Post: 02-04-2011, 12:01 PM
  5. Conditional Formatting with more than 3 rules
    By vickyho1008 in forum Excel General
    Replies: 5
    Last Post: 07-24-2008, 10:06 PM

Tags for this Thread

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