Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Conditional formatting formula comparing two columns

Posted on 2012-12-28
3
Medium Priority
?
282 Views
Last Modified: 2012-12-28
I have 3 columns (A, B and C) in Excel 2010. I need to put text YES in the C column if A is less than 25% of B and text NO if it is more than 25%. What is the best way to do it?
0
Comment
Question by:MisUszatek
  • 2
3 Comments
 
LVL 22

Expert Comment

by:Flyster
ID: 38728104
You can use this formula:

=IF(A1<(B1/4),"Yes","No")

Flyster
0
 

Author Comment

by:MisUszatek
ID: 38728112
I might need to change the percentage once in a while to a different value, let say 37%. How would that look like?
0
 
LVL 22

Accepted Solution

by:
Flyster earned 1400 total points
ID: 38728211
If you want to hard code it you can use:

=IF(A1<(B1*0.37),"Yes","No")

Or, you can use a reference cell:

=IF(A1<(B1*D1),"Yes","No")

Just put your .37 in cell D1. A little more flexibility that way.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

877 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