Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jerry
 
Posts: n/a
Default comparing two values

I have two columns: Col1: A and Col2: C, some values may be Col1: C and Col2:
A or some other ones may be Col1: A and Col2: A. Values range from A to F.
What I want to display is: if Col2 is less than Col1 display "Dropped", if
col2 is greater than col1 display "Improved", if col1 and col2 are the same
display "No change". Your assistance is greatly appreciated. Jerry
  #2   Report Post  
Jerry
 
Posts: n/a
Default

It does work good. Now I have a question, why when the values are C+ to a C-
it replies improved instead of Dropped. As you can see this is for school
grades. Thanks for the prompt answer.

"Maglor" wrote:

Jerry wrote:
I have two columns: Col1: A and Col2: C, some values may be Col1: C and Col2:
A or some other ones may be Col1: A and Col2: A. Values range from A to F.
What I want to display is: if Col2 is less than Col1 display "Dropped", if
col2 is greater than col1 display "Improved", if col1 and col2 are the same
display "No change". Your assistance is greatly appreciated. Jerry


If I understand your question correctly (the column explanation seems a
little bit confusing, my bad :-) ), this should solve your problem:

=IF(col1=col2,"no change",IF(col1col2,"dropped","improved"))

Of course you'll need to replace Col1 and Col2 by the corresponding
cells of each column.

  #3   Report Post  
JulieD
 
Posts: n/a
Default

Hi Jerry

AFAIK there's no way excel can the sort of comparison you're asking it to
without you providing excel with some sort of grading scale, so in an unused
part of your workbook in column A enter the different grades in descending
order (i'm assuming you're doing this on sheet 2 from cell A2 to A10)

then you can use the following formula

=IF(MATCH(A1,Sheet2!$A$2:$A$10,0)=MATCH(B1,Sheet2! $A$2:$A$10,0),"no
change",IF(MATCH(A1,Sheet2!$A$2:$A$10,0)<MATCH(B1, Sheet2!$A$2:$A$10,0),"dropped",
"improved"))

where A1 and B1 are the student's results.

Cheers
JulieD



"Jerry" wrote in message
...
It does work good. Now I have a question, why when the values are C+ to a
C-
it replies improved instead of Dropped. As you can see this is for school
grades. Thanks for the prompt answer.

"Maglor" wrote:

Jerry wrote:
I have two columns: Col1: A and Col2: C, some values may be Col1: C and
Col2:
A or some other ones may be Col1: A and Col2: A. Values range from A to
F.
What I want to display is: if Col2 is less than Col1 display "Dropped",
if
col2 is greater than col1 display "Improved", if col1 and col2 are the
same
display "No change". Your assistance is greatly appreciated. Jerry


If I understand your question correctly (the column explanation seems a
little bit confusing, my bad :-) ), this should solve your problem:

=IF(col1=col2,"no change",IF(col1col2,"dropped","improved"))

Of course you'll need to replace Col1 and Col2 by the corresponding
cells of each column.



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
Zero values in a log chart Joelle_Smith Charts and Charting in Excel 2 May 8th 23 03:42 AM
Hiding Values Below Z Axis Minimum Value on Axis Charts TryingToExcel Charts and Charting in Excel 1 February 18th 05 03:55 AM
Excel Comparing Values Paul Feltham Excel Discussion (Misc queries) 0 February 8th 05 05:21 PM
Need help with lookup and comparing values Steve Excel Worksheet Functions 7 January 30th 05 02:38 PM
Second serie doesn't use X-as values JackRnl Charts and Charting in Excel 1 January 20th 05 01:04 AM


All times are GMT +1. The time now is 11:47 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"