+ Reply to Thread
Results 1 to 8 of 8

Highlight rows based on current cell value and changes when moving to other cell

  1. #1
    Forum Contributor
    Join Date
    02-19-2020
    Location
    SE-Asia
    MS-Off Ver
    2019
    Posts
    116

    Highlight rows based on current cell value and changes when moving to other cell

    Ps: Prefer NON VBA solution if possible

    I know I can do this

    Select 'Use a formula to determine which cells to format'.
    Enter the formula =$E5="UK"
    But what I want is, when the Cursor moves to row $E$7 and the text in there is different, then all the other rows (with the same text in Column $E as in $E$7) should be highlighted instead of the ones that have the text from $E$5.

    Ps: I prefer NOT to use VBA for this WB, so I have no idea if it is possible this way.
    I could do it with a Helper cell, but would prefer not to do that as the data is already present in the column (starting from $E5)


    Edit: Sorry forgot, please give me a hint first instead of the full solution. Thx
    Attached Files Attached Files
    Last edited by iammike; 05-10-2024 at 04:06 AM. Reason: additional info

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,797

    Re: Highlight rows based on current cell value and changes when moving to other cell

    Any conditional formatting that depends on what cell is currently selected is going to require VBA.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    02-19-2020
    Location
    SE-Asia
    MS-Off Ver
    2019
    Posts
    116

    Re: Highlight rows based on current cell value and changes when moving to other cell

    thought as much, shame.

    This is a WB which (when finished) I am giving to my friends and I don't want them to have to mess with VBA code.

    Changing a formula oke, but messing with VBA no.

    Thx again, appreciated.

    Is there another way? (again without VBA?)

    edit: Oke just for my curiosity what would the VBA code be?
    Last edited by iammike; 05-10-2024 at 05:29 AM.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,797

    Re: Highlight rows based on current cell value and changes when moving to other cell

    Here is a demo solution. There is a lag from when you select the row to when the rows are highlighted. I am not sure why that is. But it shows the functionality. Click in any row to highlight all the rows with that country.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    02-19-2020
    Location
    SE-Asia
    MS-Off Ver
    2019
    Posts
    116

    Re: Highlight rows based on current cell value and changes when moving to other cell

    Thx really appreciated.

    Shame indeed that it is not possible without VBA, but I am really surprised how little code it needs.
    Last edited by iammike; 05-10-2024 at 09:12 PM.

  6. #6
    Forum Contributor
    Join Date
    02-19-2020
    Location
    SE-Asia
    MS-Off Ver
    2019
    Posts
    116

    Re: Highlight rows based on current cell value and changes when moving to other cell

    I found something which will work for now, but not using Conditional Formatting.

    I just put a filter on "Country". Oke you don't get "fancy" line fills, but for my friends (and me) this will do!
    Attached Files Attached Files
    Last edited by iammike; 05-11-2024 at 09:52 PM.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,797

    Re: Highlight rows based on current cell value and changes when moving to other cell

    That's a good solution. It didn't occur to me to suggest that because that's not the same thing you asked for, but whatever works.

  8. #8
    Forum Contributor
    Join Date
    02-19-2020
    Location
    SE-Asia
    MS-Off Ver
    2019
    Posts
    116

    Re: Highlight rows based on current cell value and changes when moving to other cell

    Thx,

    you are right, it's totally not what I was looking for.

    Oke with conditional formatting you can do fancy things, but as we are planning on going for 72 days, it will be difficult to see (or you must have a very big screen ) to see all the formatting (countries)

    This (sort/filter) way the selected country (and the camper pitch details) will be listed together in a couple of rows.

    Thx again for the help, very much appreciated

+ 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: 4
    Last Post: 03-25-2022, 11:51 AM
  2. [SOLVED] Highlight a cell in a row based on the current sum of that series
    By Maazak in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-10-2021, 05:55 PM
  3. [SOLVED] Delete Rows based on cell value, highlight based on cell value and keep deleted data
    By jaredli in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-21-2020, 06:37 AM
  4. Replies: 3
    Last Post: 09-16-2017, 01:03 PM
  5. [SOLVED] Insert rows based on the current cell value and, then, copy some cells into the new rows
    By Excel-RZ in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-03-2013, 05:19 PM
  6. Auto-Converting Cell Value to link & moving rows of data based on cell value
    By Th3Forgotten in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-15-2013, 08:05 AM
  7. Replies: 8
    Last Post: 05-20-2012, 06:06 PM

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