Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 112299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:31:22+00:00 2026-05-11T02:31:22+00:00

I have a workbook with two sheets. I would like to format the cell

  • 0

I have a workbook with two sheets. I would like to format the cell background color in the first column of sheet 1 based on the values in the second column of sheet 2.

For example, if the value of of sheet2, row 6, column 2 is say, 4, then I would like the background color of sheet 1, row 4, column 1 to be green. If none of the values in sheet 2, column 2 reference a particlar row in sheet 1, I’d like to leave it set to no color. There’s no prohibition against the same value appearing multiple times in the second column of sheet 2. Bonus kudos if you can tell me how to unset the color if the last value in sheet 2 pointing to a row in sheet 1 is removed.

I’m sure that for the Excel wizards out there this could be trivial, but I rarely have occasion to use excel and certainly don’t have time to become a black belt in it. Can anyone offer me advice, pointers, or a quick formula to do this? If this is going to take some complex VB code to implement, it isn’t worth it.

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T02:31:23+00:00Added an answer on May 11, 2026 at 2:31 am

    Here’s how I did it in Excel 2003 using conditional formatting.

    To apply conditional formatting to Sheet1 using values from Sheet2, you need to mirror the values into Sheet1.

    Creating a mirror of Sheet2, column B in Sheet 1

    1. Go to Sheet1.
    2. Insert a new column by right-clicking column A’s header and selecting ‘Insert’.
    3. Enter the following formula into A1:

      =IF(ISBLANK(Sheet2!B1),'',Sheet2!B1)

    4. Copy A1 by right-clicking it and selecting ‘Copy‘.
    5. Paste the formula into column A by right-clicking its header and selecting ‘Paste‘.

    Sheet1, column A should now exactly mirror the values in Sheet2, column B.

    (Note: if you don’t like it in column A, it works just as well to have it in column Z or anywhere else.)

    Applying the conditional formatting

    1. Stay on Sheet1.
    2. Select column B by left-clicking its header.
    3. Select the menu item Format > Conditional Formatting...
    4. Change Condition 1 to ‘Formula is‘ and enter this formula:

      =MATCH(B1,$A:$A,0)

    5. Click the Format... button and select a green background.

    You should now see the green background applied to the matching cells in Sheet1.

    Hiding the mirror column

    1. Stay on Sheet1.
    2. Right-click the header on column A and select ‘Hide‘.

    This should automatically update Sheet1 whenever anything in Sheet2 is changed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 58k
  • Answers 58k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer What you are implementing here is essentially msleep_interruptible() (linux/kernel/timer.c) /**… May 11, 2026 at 8:39 am
  • added an answer Since your Thing destructor already knows how to clean up… May 11, 2026 at 8:39 am
  • added an answer I know this will work in SQL Server, and it… May 11, 2026 at 8:39 am

Top Members

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.

      Related Questions

      No related questions found