+ Reply to Thread
Results 1 to 6 of 6

Conditional format with formula

  1. #1
    Registered User
    Join Date
    12-19-2019
    Location
    Karlsruhe, Deutschland
    MS-Off Ver
    2016-2019
    Posts
    3

    Conditional format with formula

    Hi Excel experts!

    I would like to select a particular cell in the column and apply the format to the whole column using conditional formatting.

    I tried it like this: =IF(CELL("contents";ADDRESS(9;COLUMN()))=0)

    If true -> apply format to all the cell in the column


    thanks!

  2. #2
    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,929

    Re: Conditional format with formula

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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

  3. #3
    Registered User
    Join Date
    12-19-2019
    Location
    Karlsruhe, Deutschland
    MS-Off Ver
    2016-2019
    Posts
    3

    Re: Conditional format with formula

    My dummy workbook:
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-24-2020
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    95

    Re: Conditional format with formula

    Hi, there

    First, CELL(info_type,reference) function requires a REFERENCE as the 2nd parameter while ADDRESS(row_num,column_num,abs_num,a1,sheet_text) function returns a TEXT; using =TYPE(ADDRESS(1,1)) =2, which means TEXT.

    Secondly, why not just use =C2=0?

  5. #5
    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,929

    Re: Conditional format with formula

    Try using something like this as your rule...
    =B$8=TODAY()

  6. #6
    Registered User
    Join Date
    12-19-2019
    Location
    Karlsruhe, Deutschland
    MS-Off Ver
    2016-2019
    Posts
    3

    Re: Conditional format with formula

    Thanks for the information ThxAlot.

    It's perfekt FDibbins!

+ 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. Replies: 12
    Last Post: 02-19-2018, 12:32 PM
  2. [SOLVED] Conditional Format Formula Help
    By MarkPr in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-19-2017, 12:12 PM
  3. [SOLVED] Conditional Format Formula
    By sawkind in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-11-2016, 12:24 PM
  4. [SOLVED] VBA to create a relative formula in a conditional format (rather than an absolute formula)
    By The_Snook in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2016, 08:00 AM
  5. Replies: 7
    Last Post: 03-24-2015, 07:44 AM
  6. formula help - conditional format to colour cell = count = formula
    By rangeruk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2015, 09:03 PM
  7. [SOLVED] Formula/format base don another conditional format
    By ketteringjack in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-12-2012, 07:35 AM

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