+ Reply to Thread
Results 1 to 7 of 7

Conditional formatting syntax - single cell reference value?

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    St Albans, UK
    MS-Off Ver
    Excel 2010
    Posts
    15

    Conditional formatting syntax - single cell reference value?

    Please can someone give link to the syntax of Conditional formatting and formulae in Excel 2007?

    Either a website or manual source would be appreciated.

    I wish to process large quantities of columnar numeric data with arguments (e.g.): -

    =IF((An + reference cell value)<Bn,1,0)

    Thank you.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Conditional formatting syntax - single cell reference value?

    Bit more info what youre trying to achieve would be better
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Conditional formatting syntax - single cell reference value?

    In conditional formatting you really do not need the IF statement.

    In other words

    =IF((An + reference cell value)<Bn,1,0)

    =1+B1<10 >> Pick format

    1 equals An
    10 equals Bn
    B1 the referenced cell
    HTH
    Regards, Jeff

  4. #4
    Registered User
    Join Date
    09-13-2012
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Conditional formatting syntax - single cell reference value?

    I found the conditional formatting examples in this reference to be helpful. Look at example 5 on that site. It looks like the conditional formatting formula part of Excel already does the IF() statement. So you should only have to do the condition part.

    i.e. An begins on A1, Bn begins on B1 and the referenced cell value is at C1, highlight range A and try:
    =A1+$C$1<B1

    http://www.techrepublic.com/blog/10t...g-feature/3166

  5. #5
    Registered User
    Join Date
    09-05-2012
    Location
    St Albans, UK
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Conditional formatting syntax - single cell reference value?

    Quote Originally Posted by Special-K View Post
    Bit more info what youre trying to achieve would be better
    (Special-K); PLEASE - I am NOT interested in ploughing through "examples" which might be doing something near...

    Compare columns of numeric data where a "constant" as derived from a value within an unrelated single cell is added to each cell in one of the data columns.

    my requirements - surely somewhere Excel 2007 syntax is fully documented?
    To fully explain my requirements would be a ridiculous undertaking. Sufficient detail has been given.

    (jeffrey) I doubt this will work - I am certainly not entering the equation into +15k rows individually...

    Thank you (lwflip) for giving a clue as to the syntax of the $ operator

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Conditional formatting syntax - single cell reference value?

    cf works on true/false nearly any formula that results in true/false can be used
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Conditional formatting syntax - single cell reference value?

    Quote Originally Posted by Bebbspoke View Post
    To fully explain my requirements would be a ridiculous undertaking. Sufficient detail has been given.
    You may not think this comes off as rude, but it does. We certainly are not trying to provide you with any wild goose chase, but what you did provide as an explanation was not sufficient in my opinion and since two of us where not quite sure...

    Well, that is entirely up to you to decide but best wishes for the rest of your project.

    Thank you (lwflip) for giving a clue as to the syntax of the $ operator
    Hmmm...didn't realize this was part of your question.
    Switch between relative, absolute, and mixed references
    Last edited by jeffreybrown; 09-14-2012 at 10:45 AM.

+ 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