+ Reply to Thread
Results 1 to 9 of 9

Formatting based on cell text

  1. #1
    Registered User
    Join Date
    09-17-2018
    Location
    Beijing, China
    MS-Off Ver
    Office 360, 2016
    Posts
    75

    Formatting based on cell text

    Hello everyone, I am just getting my feet wet in the formula aspects of Excel and have hit a couple roadblocks I can't seem to figure out.

    I am on a Mac, running Excel 2016.

    I have a list in a column of about 130 cells, each with specific text entered. Additionally each cell is formatted with a unique color fill and text color. I have this list again on 15 separate sheets in a different order. I am looking to auto format each instance of the word to match the original formatting on sheet 1.

    Screen Shot 2018-09-10 at 7.48.36 PM.pngScreen Shot 2018-09-10 at 7.49.39 PM.png

    Again I am trying to have the cells in picture two auto format to the cells in picture 1 with the matching text.


    I think my issue arises because they are out of order in the sheets?

    Thank you for your help!
    Last edited by kgall89; 09-17-2018 at 06:26 AM. Reason: Typo

  2. #2
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    610

    Re: Conditional Formatting based on cell text

    if the words in Sheet1 are conditional formatted then you can simply use Format painter to copy their formats in the other sheets.
    If I've helped U pls click on d *Add Reputation

  3. #3
    Registered User
    Join Date
    09-17-2018
    Location
    Beijing, China
    MS-Off Ver
    Office 360, 2016
    Posts
    75

    Re: Conditional Formatting based on cell text

    Thank you for the reply bhenlee.

    Unfortunately they were not conditionally formatted on Sheet1, I typed in a hex# for each fill color and text color. This was very time consuming, I am hoping a formula will help speed up the process.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Conditional Formatting based on cell text

    As far as I know, you can't achieve this with formula.

    It can be done with the macro, but whenever you add some new data into dependant sheet(s) or change anything in the master formatting table, the macro would have to be executed again.
    Best Regards,

    Kaper

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Conditional Formatting based on cell text

    If you are interested in such solution, will you please attach a SMALL sample Excel workbook(s) (10-20 rows of data and 3-4 sheets is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. (If trere are typical cases like: all unique values/duplicates could occur, day/night, nobody present/several persons at once, before/on/past due, etc. - please show them all or at least indicate in text) The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution(s) is/are also shown (mock up the results manually).

    3. Make sure that all confidential/restricted information (either personal or business) like real e-mails, social security numbers, bank accounts, etc. is removed first!!

    To attach an Excel file you have to do the following: Just before posting, scroll down and press Go Advanced button and then scroll down and press Manage Attachments link. Now follow the instructions at the top of that pop-up screen.

  6. #6
    Registered User
    Join Date
    09-17-2018
    Location
    Beijing, China
    MS-Off Ver
    Office 360, 2016
    Posts
    75

    Re: Conditional Formatting based on cell text

    Thank you for the offer but I will just push through and manually format.

  7. #7
    Registered User
    Join Date
    09-17-2018
    Location
    Beijing, China
    MS-Off Ver
    Office 360, 2016
    Posts
    75

    Re: Conditional Formatting based on cell text

    Thank you Kaper for your response. That is very unfortunate to hear but I appreciate your time.

  8. #8
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Formatting based on cell text

    Do not give up that easily

    Check such macro:
    Please Login or Register  to view this content.
    You can test how it works on the attached file - see all worksheets, then run the macro, and watch changes it made. If it works as expected close the file, prepare copy of your original file (never work on original with not fully tested solutions).

    If you can rename sheet with colors table to Master do it, and open file from the attachment.

    If not, you have to change sheet name in macro code:
    Open VBA editor (In Win systems it's Ctrl+F11, shall be similar on Mac). Change the name
    in 4th line of code:
    Please Login or Register  to view this content.
    Do not close file from attachment - just make your workbook active. Run the same macro - changes shall be done in your file.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    09-17-2018
    Location
    Beijing, China
    MS-Off Ver
    Office 360, 2016
    Posts
    75

    Re: Formatting based on cell text

    Amazing work. That worked perfectly thank you so much!

+ 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] Conditional Formatting Based on Text in Another Cell
    By femola in forum Excel General
    Replies: 3
    Last Post: 01-21-2016, 06:16 AM
  2. VBA Conditional Formatting based on cell value and Text
    By uroy67640 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-09-2015, 01:38 AM
  3. Conditional Formatting Based on Another Cell's Text
    By computergeek in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 06-26-2012, 11:18 AM
  4. [SOLVED] Conditional Formatting Based on Another Cell's Text
    By computergeek in forum Excel General
    Replies: 6
    Last Post: 06-26-2012, 11:14 AM
  5. Replies: 1
    Last Post: 03-21-2012, 03:27 PM
  6. Replies: 2
    Last Post: 11-23-2010, 11:13 PM
  7. Replies: 4
    Last Post: 07-31-2009, 08:47 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