+ Reply to Thread
Results 1 to 5 of 5

Cf based on first column

  1. #1
    Forum Contributor
    Join Date
    01-18-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    641

    Cf based on first column

    I'm trying to have conditional formatting operate when column E is the leftmost column on the sheet.

    So if E is the first column showing , apply the CF. If it isn't (some other column is leftmost) then don't.

    I'm not sure this is even possible with CF , but am grateful for any advice.


    Using Excel , Word and Access 2003 - For the whole of 2024

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Cf based on first column

    I think it is possible. but there must be data in a row columns A to D. Header Text Will do.

    Sorry that only works for rows, =SUBTOTAL(103,$A1:$D1) will return 4 if all 4 rows are visible and 0 if they are hidden.

    You will need a Userdefined function to to give the same functionality for columns.

    Then you will need to test it with conditional formatting.
    Last edited by mehmetcik; 03-06-2020 at 10:12 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Contributor
    Join Date
    01-18-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    641

    Re: Cf based on first column

    Yes , A - D all have data and headers.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Cf based on first column

    You need to paste this code into a macro module:

    Please Login or Register  to view this content.
    Then use the Conditional Format rule: =vcol(D1)=4 for Column E

  5. #5
    Forum Contributor
    Join Date
    01-18-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    641

    Re: Cf based on first column

    Ok Thanks for this.


+ 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. VBA - Creating new column (Columns M) with values based on previous column (Column L)
    By will12321 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-21-2020, 03:36 AM
  2. Replies: 1
    Last Post: 04-12-2019, 08:15 PM
  3. Replies: 3
    Last Post: 08-27-2017, 05:20 PM
  4. [SOLVED] Sum values in Column A, based on dates in Column B & if value in Column C = True
    By rtcwlomax in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-25-2016, 12:03 PM
  5. Replies: 3
    Last Post: 03-22-2014, 08:35 AM
  6. Replies: 2
    Last Post: 08-09-2009, 12:58 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