+ Reply to Thread
Results 1 to 8 of 8

Highlight repeated cell in excel and update the text

  1. #1
    Registered User
    Join Date
    03-01-2018
    Location
    India
    MS-Off Ver
    2010
    Posts
    33

    Highlight repeated cell in excel and update the text

    Hi,

    I have an excel with more than 20 sheets. There are 3 columns in each sheet. S.No, Part number and Status.
    Each sheet has 50+ part numbers. These part numbers are repeated in different sheets also.

    First thing i need to do is to highlight all repeated part numbers in all the sheets. I browsed though this forum and got code to do. But it highlights only in the current sheet and not all the sheets.

    Second thing i need is, if i update the status column as "completed" against any part number, the status column against the same part number repeated at all the places in different sheets also should get updated as "completed"

    Is it possible? I have attached excel for reference.

    Thank you.

    Regards,
    Prasanna.A
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Highlight repeated cell in excel and update the text

    Welcome to the Forum.

    Place the following code on ThisWorkbook Module.
    To do so, open VB editor, double click ThisWorkbook from the project pane and place the following code into the opened code window.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    03-01-2018
    Location
    India
    MS-Off Ver
    2010
    Posts
    33

    Re: Highlight repeated cell in excel and update the text

    Dear Sir,

    Thank you for the response.

    The code is working perfectly.

    But only if i type "completed" it reflects in all other sheets.

    I need to get whatever i type against the part in the status.

    For example, if i type "Work in Progress", same has to reflect for repeating part numbers against status column of all sheets.

    Is it possible? And how is the repeating numbers highlighted in all sheets? You have added that also inside the code?

    Thank you so much!

    Regards,
    Prasanna.A

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Highlight repeated cell in excel and update the text

    Replace the following line
    Please Login or Register  to view this content.
    With
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-01-2018
    Location
    India
    MS-Off Ver
    2010
    Posts
    33

    Re: Highlight repeated cell in excel and update the text

    Dear Sir,

    Thank you so much. Everything is perfect except one thing.

    The numbers which are in 1st sheet, if i type in the status column, it gets updated. This is 100% fine.

    But there are few part numbers which are not in first sheet, but available in 2nd, 3rd and so on sheets.

    In this case, I update the status column of the part number in second sheet and it has to reflect in all other sheets.

    Basically if i update the status column against a part number in ANY SHEET, it has to update in all other sheets where it is repeated.

    Is it possible to do?

    Regards,
    Prasanna.A

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Highlight repeated cell in excel and update the text

    Okay, try this to see if you get the desired result.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    03-01-2018
    Location
    India
    MS-Off Ver
    2010
    Posts
    33

    Re: Highlight repeated cell in excel and update the text

    Hi,

    Just I checked. It is working perfectly.

    Thank you so much. It was a great help!

    Regards,
    Prasanna.A

  8. #8
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Highlight repeated cell in excel and update the text

    You're welcome Prascena! Glad it worked as desired.
    Thanks for the rep.

+ 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. Highlight values that are repeated more than twice
    By amirsalamat in forum Excel General
    Replies: 10
    Last Post: 08-21-2016, 12:20 AM
  2. [SOLVED] Highlight cell based on total quantity value based on repeated order numbers
    By PWilson0727 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-29-2014, 02:02 PM
  3. [SOLVED] Find text and highlight in Excel cell
    By mqcai4613 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-16-2013, 08:41 AM
  4. how to highlight repeated information
    By TheMightyFederer in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-04-2012, 10:43 AM
  5. 2003 - Highlight only repeated cells
    By samboytor in forum Excel General
    Replies: 1
    Last Post: 06-21-2011, 12:13 PM
  6. Highlight repeated numbers
    By Alicia0096 in forum Excel General
    Replies: 2
    Last Post: 08-03-2010, 09:57 PM
  7. [SOLVED] Printing text in a repeated cell/row that is longer than repeated
    By Valerie Dyet in forum Excel General
    Replies: 1
    Last Post: 02-12-2006, 11:30 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