+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : How to set conditional formatting for a row based on the value of another cell?

  1. #1
    Registered User
    Join Date
    10-22-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    1

    How to set conditional formatting for a row based on the value of another cell?

    Basically, I have a set of values being graphed. The values change depending on the buttons that have been toggled. Sometimes the values are revenue numbers and sometimes they are sales volume numbers. The cell next to the values is a header like "Revenue (MM USD)" and changes to "Volume (000s Units)" when volume is toggled.

    I'd like to make the cells display in number formatting when volume is toggled and as currency when revenue is toggled.

    Any help would be greatly appreciated. I apologize if I didn't include any important information, but I'll be quick to respond to any inquiries.

    Thanks

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: How to set conditional formatting for a row based on the value of another cell?

    Hi
    You could try to adapt the following code. This changes the Heading in cell A2 and the format in B2 from Number to US dollars.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-12-2011
    Location
    Kent, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: How to set conditional formatting for a row based on the value of another cell?

    Hi,

    You could try the following:

    Select all desired cells that need to change formatting type, then go to:

    Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format >

    At the bottom, enter the following formula:

    =$A1="Volume (000s Units)" where A1 is the cell that the formatting is based upon

    Then click 'Format' and choose the options you wish from there. Note that if you use this method you should format the cells as $ Currnency to begin with, they should then change when you toggle to "Volume (000s Units)".

    I hope that helps!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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