+ Reply to Thread
Results 1 to 5 of 5

I need to draw a border line across the entire row where value of G1 > G4:G76

  1. #1
    Registered User
    Join Date
    06-10-2023
    Location
    Mumbai India
    MS-Off Ver
    2019
    Posts
    21

    I need to draw a border line across the entire row where value of G1 > G4:G76

    I have a dynamic Value in G1 (keeps updating every 5 mins)

    Also have dynamic values from G4 to G76 (keeps updating every 5 mins)

    I need to draw a border line across the entire row where value of G1 > G4:G76 (the range)

    since value in G42 is greater than G1 the border line is drawn across B42 to L42 however this border line will shift above or below based on value changes in G1

    Below code borders all Rows irrespective of the Value in G1 but this is what I need.


    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    06-10-2023
    Location
    Mumbai India
    MS-Off Ver
    2019
    Posts
    21

    Re: I need to draw a border line across the entire row where value of G1 > G4:G76

    Have attached the sample file
    Attached Files Attached Files

  3. #3
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: I need to draw a border line across the entire row where value of G1 > G4:G76

    Perhaps the following conditional formatting rule: =AND($G$1>$G4,$G$1<=$G5) applies to: B4:L76
    Note that the border line is red as all rows already have a black border line below them.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  4. #4
    Registered User
    Join Date
    06-10-2023
    Location
    Mumbai India
    MS-Off Ver
    2019
    Posts
    21

    Re: I need to draw a border line across the entire row where value of G1 > G4:G76

    Good work there, however I dont need that Black border, Just one Red Line Should Suffice.
    Last edited by mahmad558; 06-11-2023 at 01:33 AM.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: I need to draw a border line across the entire row where value of G1 > G4:G76

    Thank You for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post.
    By the way, if you don't want the black border lines select B4:L76 and then select no border from the font pane on the home tab.
    I hope that you have a blessed day.
    Attached Files Attached Files

+ 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. [SOLVED] Draw border around merged cells, until the end of the row with vba
    By lofgren in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-16-2021, 12:50 PM
  2. [SOLVED] Draw border when date in column A changes
    By lofgren in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-04-2019, 03:56 PM
  3. Need macro to draw border
    By indjb in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-31-2017, 04:38 PM
  4. Draw a border based on current month
    By JT_2111 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2014, 06:44 PM
  5. How to write a Series (Sr.No) & Draw Border for Spaced Data using VBA?
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-13-2011, 07:52 AM
  6. Using a macro to draw the cell border
    By Jeroen1000 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-30-2009, 10:06 AM
  7. [SOLVED] Erase & Draw Border functions no longer work
    By bob m in forum Excel General
    Replies: 2
    Last Post: 02-25-2005, 02:06 PM

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