+ Reply to Thread
Results 1 to 10 of 10

Finding and highlighting a row based on multiple cell values

  1. #1
    Registered User
    Join Date
    08-16-2022
    Location
    Czech Republic
    MS-Off Ver
    Microsoft 365 for business
    Posts
    5

    Finding and highlighting a row based on multiple cell values

    Hello everyone,

    I registered because of this and I would like to ask you for help, because I am approaching hopelessness.

    Explanation of what I am trying to do:
    In a CSV that contains a BOM of a certain product, there is a column called "State" containing a value, which describes whether the part (or an assembly) is serialized, or is obsolete. State '50' stands for a serialized part and state '80' stands for an obsolete part. Long story short - I would like to find a part, or an assembly that has a state of '80' and highlight a row containing a sub-assembly, which is one level higher than that.

    So for clarity, this is a simplified BOM:
    startpoint.PNG

    This is an illustration to comprehend the level structure (this is not so easily done by hand in the real CSV - usually there are about 15 levels):
    structure_illus.PNG

    This is what I would love to achieve:
    endresult.PNG

    That way we would be able to back-check whether our assemblies do not accidentally contain obsolete parts, and if they do, this feature could help me tell which exact sub-assemblies are the problematic ones.

    I hope I explained my problem clearly enough, if not, please let me know, I will clarify ASAP. Thank you very much in advance for any help!
    Attached Files Attached Files
    Last edited by thebub; 08-17-2022 at 11:27 AM. Reason: Adding a file of the example (although very simple)

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Finding and highlighting a row based on multiple cell values

    I really don't like this in D2 but I'm having brain fog and I can't seem to get my head around a better formula:

    Please Login or Register  to view this content.
    I'll keep thinking ...

    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Finding and highlighting a row based on multiple cell values

    This is a little shorter:

    Please Login or Register  to view this content.
    WBD

  4. #4
    Registered User
    Join Date
    08-16-2022
    Location
    Czech Republic
    MS-Off Ver
    Microsoft 365 for business
    Posts
    5

    Re: Finding and highlighting a row based on multiple cell values

    Thank you very much! I would not have come up with that myself.

    Can I have an additional question? - how do I alter the function if I hypothetically wanted to look for more than one status number? F.e.: 70,80 and 12?

  5. #5
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Finding and highlighting a row based on multiple cell values

    Hey. A small change then:

    Please Login or Register  to view this content.
    I'm still sure there is a better way though

    WBD

  6. #6
    Registered User
    Join Date
    08-16-2022
    Location
    Czech Republic
    MS-Off Ver
    Microsoft 365 for business
    Posts
    5

    Re: Finding and highlighting a row based on multiple cell values

    Thank you! This will do perfectly.

  7. #7
    Registered User
    Join Date
    08-16-2022
    Location
    Czech Republic
    MS-Off Ver
    Microsoft 365 for business
    Posts
    5

    Re: Finding and highlighting a row based on multiple cell values

    I am sorry to unmark this as SOLVED, but I have found a weird occurence, that thwarts my implementation... I must be stupid, but I cannot comprehend what exactly is wrong.

    You can find my illustration of implementation enclosed. I am aware that the equation only goes through about 1000 rows here, but when I update the equation to about 5000 rows, it does not display anything anymore.

    Can you please explain what exactly happened there?

    simple_example2.xlsx

  8. #8
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Finding and highlighting a row based on multiple cell values

    You removed a column from the sheet so it stopped working. Try this in C3:

    Please Login or Register  to view this content.
    WBD

  9. #9
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Finding and highlighting a row based on multiple cell values

    Idle curiosity. You could also achieve this using a macro:

    Please Login or Register  to view this content.
    WBD

  10. #10
    Registered User
    Join Date
    08-16-2022
    Location
    Czech Republic
    MS-Off Ver
    Microsoft 365 for business
    Posts
    5

    Re: Finding and highlighting a row based on multiple cell values

    Ohhh... Thank you. Now I understand the logic of the function.

    Thank you for the macro as well!

+ 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: 6
    Last Post: 06-03-2022, 03:35 AM
  2. [SOLVED] Highlighting a cell based on 2 different cells values
    By athinaida in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-03-2018, 12:41 PM
  3. Need help finding and highlighting same values
    By NoBob in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-08-2016, 09:22 PM
  4. Highlighting Cell Values based on Previous Cell
    By Dooley Mack SC in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-10-2015, 12:54 PM
  5. Finding values based on multiple conditions
    By T21PAC in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-31-2014, 12:21 PM
  6. [SOLVED] Finding Values in one random list, highlighting, and labeling based on a known list
    By mark00thomas in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-14-2013, 07:41 AM
  7. Replies: 15
    Last Post: 09-09-2012, 08:49 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