1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

Conditional formatting based on a range of text in 2nd sheet

Our take

In your two-sheet workbook, you want to apply conditional formatting to highlight order numbers based on their status, which is listed on the second sheet. Your current formula, `=$B1='Sheet2!A1`, works for a single status but does not accommodate a range. To achieve your goal, you can use the formula `=COUNTIF(Sheet2!$A$1:$A$10, $B1) > 0`. This approach checks if the status in column B matches any entry in the specified range on the second sheet, allowing for effective conditional formatting based on

Conditional formatting is a powerful feature in spreadsheets, but as one Reddit user discovered, it can be tricky when dealing with ranges. In a recent post, /u/jaegerjockey shared their struggle: they wanted to highlight order numbers based on status from a list on another sheet, but using a range reference like ='Sheet2!$A1:$A$5 didn't work, while a single cell did. This is a common pitfall that many users face, and it underscores the need for clear guidance. For those looking to deepen their formula skills, our related article "How do you write an IF formula that changes the value based on which range, out of two ranges, the original value fell in?" offers insights into handling range-based logic in Excel, showing how such challenges are part of a broader pattern of formula complexity.

The core issue lies in how conditional formatting formulas are evaluated. Unlike standard cell formulas, conditional formatting must return a boolean (TRUE/FALSE) for each individual cell in the range being formatted. When you use a range like 'Sheet2!$A1:$A$5', Excel interprets this as an array, but the conditional formatting rule expects a single TRUE or FALSE per cell. To fix this, you need a function that checks if the cell's value matches any in the range. For example, using =COUNTIF(Sheet2!$A$1:$A$5, $B1)>0 will return TRUE if $B1 is found in the range, thus applying the formatting. Alternatively, =MATCH($B1, Sheet2!$A$1:$A$5, 0) can be used with ISNUMBER to achieve the same result. This approach leverages functions that can handle arrays within the context of conditional formatting, transforming a frustrating roadblock into a learning opportunity. Understanding relative and absolute references—like the mixed reference $B1—is also key, as it ensures the formula adapts correctly across the column.

This kind of nuance is where many users hit a wall. It's not just about memorizing syntax; it's about grasping the underlying logic of spreadsheet evaluation, which can feel arcane and unwelcoming. For professionals relying on spreadsheets for critical tasks like order tracking, such hurdles can lead to errors, wasted time, and significant frustration. It highlights a key limitation of traditional spreadsheet tools: they often demand deep, specialized knowledge to unlock their full potential, leaving users feeling constrained rather than empowered. This matters because productivity should stem from insights, not from debugging basic features. By recognizing these pain points, we can shift toward a more human-centered approach that prioritizes accessibility and user outcomes over technical minutiae.

Looking ahead, the future of spreadsheets lies in AI-native platforms that understand context and intent. Imagine a system where you simply say, "Highlight orders with statuses from this list," and it automatically configures the correct conditional formatting without you needing to wrestle with range references or function syntax. Such tools would transform spreadsheet literacy from a barrier into an enabler, allowing users to explore data with confidence and discover insights more intuitively. This evolution isn't about replacing user agency but about augmenting it—making complex tasks simpler and more approachable. As we move forward, the question isn't just how to solve today's formula puzzles, but how to reimagine data interaction altogether, creating solutions that are truly future-focused and aligned with how people actually work.

Hey!

I have a two sheet workbook. First sheet has column A: list of order numbers that should be highlighted based on status and column B: status. the status text comes from a list in the second sheet. all possible statuses are listed from A1:A10 on the second sheet, but there might select colors per status (like from A1:A3 and A10 would all need the same color)

Right now I have as a formula:

=$B1='Sheet2!A1

and that works, but trying to use a range doesn't work

=$B1='Sheet2!$A1:$A$5

I'm certain I'm overlooking a basic issue, but my googling skills are failing me 😞

submitted by /u/jaegerjockey
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Tagged with

#rows.com#cloud-based spreadsheet applications#AI formula generation techniques#Excel compatibility#Excel alternatives for data analysis#formula generator#Excel alternatives#conditional formatting#workbook#sheet#order numbers#status#formula#range#highlighted#status text#colors per status#list#A1:A10#A1:A5