+ Reply to Thread
Results 1 to 4 of 4

If 2 colums have the same number, highlight red.

  1. #1
    Registered User
    Join Date
    02-17-2014
    Location
    Dallas
    MS-Off Ver
    Excel 2007
    Posts
    4

    If 2 colums have the same number, highlight red.

    How can I get two range of columns to highlight if they have the exact number in it, and highlight them red.

    Thanks

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: If 2 colums have the same number, highlight red.

    Hi and welcome to the forum

    Are the numbers next to each other? (same row) Or could they be in different rows in each column?

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    02-17-2014
    Location
    Dallas
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: If 2 colums have the same number, highlight red.

    109 50.24
    324.82 92.18
    50.87 300
    92.18 1000

    How can I get the 92.18 highlighted red, so I know they are the same value?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: If 2 colums have the same number, highlight red.

    You can do this with conditional formatting. Assuming your data is in A1:B4...

    1. highlight the range you want to apply the conditional formatting to (A1:A4)
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =VLOOKUP(A1,$B$1:$B$4,1,0).........................format fill RED

    Repeat for columns B, change the formula to =VLOOKUP(b1,$a$1:$a$4,1,0)

+ 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] Comparing number values in different colums
    By Mankeli in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-20-2014, 06:32 AM
  2. [SOLVED] Compare two colums from different sheets and to highlight the different cell in sheet 2
    By Thinker8 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-26-2013, 04:46 AM
  3. Highest number in two colums
    By thermometer98 in forum Excel General
    Replies: 9
    Last Post: 02-28-2006, 04:25 PM
  4. Highlight all colums in Bar Graph
    By Parveen in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-29-2005, 10:05 AM
  5. Replies: 3
    Last Post: 02-07-2005, 09: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