Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Andrew
 
Posts: n/a
Default Comparing cell values then labeling them based on comparision

Hi. I'm trying to find a function or way to compare two cells and then label
them according to if one cell is lesser, greater, or the same as the other.

I have a large data sheet where I want to compare many pairs of cells and
then have them labeled in this way. For example for each pair where the
second cell value is larger than the first it would put greater, where the
first is larger it would be lesser, etc.

Can anybody help me with this? also feel free to email me at
.

Thanks so much for your help.
  #2   Report Post  
Jay
 
Posts: n/a
Default

Hi. I'm trying to find a function or way to compare two cells and then
label them according to if one cell is lesser, greater, or the same as
the other.

I have a large data sheet where I want to compare many pairs of cells
and then have them labeled in this way. For example for each pair
where the second cell value is larger than the first it would put
greater, where the first is larger it would be lesser, etc.


Here's one way.

Suppose column A holds the first of each pair and column B holds the
second.

In C1, put
=IF(B1A1,"greater",IF(B1<A1,"lesser","equal"))
and extend downward. (Note that I included the case of equality.)

Customize to your needs.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I copy values from one cell in a column down to the next c GSingh Excel Discussion (Misc queries) 9 August 16th 05 11:18 AM
Cell linked to a range of cell values in different sheet szeng Excel Discussion (Misc queries) 1 August 9th 05 02:41 AM
Counting values and comparing them to a single cell Tbentsen Excel Discussion (Misc queries) 3 August 4th 05 10:47 PM
Cell values based upon multiple conditions Ryan M via OfficeKB.com New Users to Excel 2 July 19th 05 02:10 AM
How do I automatically hide columns in a worksheet based on a cell value? dkhedkar Excel Worksheet Functions 1 March 5th 05 12:20 AM


All times are GMT +1. The time now is 05:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"