+ Reply to Thread
Results 1 to 14 of 14

IF formula and conditional formating

  1. #1
    Registered User
    Join Date
    05-17-2013
    Location
    California, USA
    MS-Off Ver
    Excel 2003
    Posts
    27

    Question IF formula and conditional formating

    Hi,

    I have this formula in an excel, in other columns to bring a higher value: =IF(E2>A2, "Yes", "")
    How can I use in a conditional formatting?
    I want to highlight a value in columns where one value is higher than other, like:

    A B C D E
    30 15 2 5 35
    15 10 11 5 5
    2 4 52 2 4


    So, I need the formula to look at column A, and check B, C, D and E and highlight any value in those column where B,C,D or E is higher than A across the excel.
    Is it possible with conditional formatting ?


    Thanks a lot

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: IF formula and conditional formating

    =B2>$A2
    Try this simple formula with conditional formatting
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: IF formula and conditional formating

    or this one: =$A2<A2

  4. #4
    Registered User
    Join Date
    05-17-2013
    Location
    California, USA
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: IF formula and conditional formating

    Thanks, but I can't make it work.
    I need something to check column B,C,D,E,F,G that will tell me if is higher than column A.
    It highlighted other cells maybe because I put incorrect formula?


    Sample.PNG

    Thanks again!

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

    Re: IF formula and conditional formating

    Both of the formulas provided will work. You just have to apply them correctly.

    To apply the Conditional Formatting formula from post #2, try this:
    Highlight B2:G100 (or however far down your data goes) > Conditional Formatting > New Rule > Use a formula

    =B2>$A2

    Format: Fill Yellow > OK > OK

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

    Re: IF formula and conditional formating

    If you selected the cells starting with B1, the formula that you would have to use would be this:

    =B1>$A1

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: IF formula and conditional formating

    or simply select range A:G suitably and use it from post #3

    the best way is attach example excel file

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

    Re: IF formula and conditional formating

    Quote Originally Posted by sandy666 View Post
    or simply select range A:G suitably and use it from post #3
    Sandy, if the user selects A:G, wouldn't the formula have to be =$A1<A1 ?

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: IF formula and conditional formating

    in A1 are headers
    I said suitably so OP should know where are OP's numbers

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

    Re: IF formula and conditional formating

    Right, but with Conditional Formatting, the formula has to start with the top left of the selected range.

    The top-left of A:G is A1.

    If you select A:G and then use =$A2<A2, wouldn't the CF be off by one row as seen in the screenshot in post #4?

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: IF formula and conditional formating

    Gosh!, suitably means eg. A2:G20 or any other range

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

    Re: IF formula and conditional formating

    Understood. Didn't mean to derail this thread.

  13. #13
    Registered User
    Join Date
    05-17-2013
    Location
    California, USA
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: IF formula and conditional formating

    Thanks a lot.
    It worked.... as you guys said.... all you need is knowing where to put the formula and select it correctly.

    Much appreciated.

  14. #14
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: IF formula and conditional formating

    no problem


    If that takes care of your original question, & to say Thanks, please click on Add Reputtion (bottom left corner of the post of the person(s) who helped you)
    then select Thread Tools from the menu (top right corner of your thread) and mark this thread as SOLVED.
    If you did it - ignore it.
    Thank you.

+ 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. Formula in conditional formating
    By sirenwerks in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-07-2017, 03:34 AM
  2. need a formula in conditional formating
    By sharadmaxwell in forum Excel General
    Replies: 1
    Last Post: 10-14-2016, 03:40 AM
  3. [SOLVED] need a formula in conditional formating
    By sharadmaxwell in forum Excel General
    Replies: 13
    Last Post: 04-27-2016, 11:02 AM
  4. Conditional formating formula with if & and
    By dimitrioskal in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-27-2014, 06:53 AM
  5. Conditional formating formula
    By grey_hair in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-22-2014, 03:19 AM
  6. Replies: 4
    Last Post: 01-23-2014, 10:14 AM
  7. Conditional formating-What formula do i need to use in conditional formating
    By warrima in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2009, 12:33 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