Solved

Conditional Formatting

Posted on 2014-10-28
3
312 Views
Last Modified: 2014-10-28
I have an Excel workbook with two sheets. The “Mark” sheet allows you to capture the names and marks. The “Level” sheet displays the level for the entered mark in the first sheet. The problem I have is that for the rows that have no names the cell is still formatted. It should only do this for rows that have names. See attached file.
Scoresheet.xlsx
0
Comment
Question by:zerog
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 6

Expert Comment

by:Brian Matis
ID: 40409046
The problem is with the IF statements in column B on the Level tab. You need to define what should happen when the cells on the Mark tab are blank. Here's an IF statement you can use that'll set blank values on the Mark tab to being blank values on the level tab.

=IF(Mark!B4="", "", IF( Mark!B4<=39, "1", IF( Mark!B4<=69, "2", IF( Mark!B4<=100, "3" ) ) ))

Open in new window

0
 
LVL 6

Accepted Solution

by:
Brian Matis earned 500 total points
ID: 40409050
Here's a revised version of the spreadsheet with the updates. Is this what you meant?
Scoresheet-2.xlsx
0
 
LVL 19

Expert Comment

by:Montoya
ID: 40409078
you can change your formula to: =IF(ISBLANK(Mark!A4)=FALSE,(IF( Mark!B4<=39, "1", IF( Mark!B4<=69, "2", IF( Mark!B4<=100, "3" ) ) )),0)
this basically checks whether or not the name exists, before performing your conditional formatting.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question