Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Michael
 
Posts: n/a
Default Comparison Function

Hi Folks - I have the follwoing data:

Col A Col B Col C
45 50 Increase
60 75 Increase
65 50 Decrease
44 44 Same

Is there a function I can use in Col C to determine if a cell value
increased, decreased or stayed the same? Thanks in advance.

Michael







  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi Michael

one way
=IF(OR(ISBLANK(B1),ISBLANK(A1)),"",IF(B1=A1,"Same" ,IF(B1-A10,"Increase","Decrease")))

this only puts the words in if both A1 & B1 have data in them

Cheers
julieD



"Michael" wrote in message
news:wutId.20293$B95.14346@lakeread02...
Hi Folks - I have the follwoing data:

Col A Col B Col C
45 50 Increase
60 75 Increase
65 50 Decrease
44 44 Same

Is there a function I can use in Col C to determine if a cell value
increased, decreased or stayed the same? Thanks in advance.

Michael









  #3   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

Also...

=LOOKUP(A2-B2,{-9.99999999999999E+307,0,2.229E-308},{"Decrease","Same","Increase"})

Michael wrote:
Hi Folks - I have the follwoing data:

Col A Col B Col C
45 50 Increase
60 75 Increase
65 50 Decrease
44 44 Same

Is there a function I can use in Col C to determine if a cell value
increased, decreased or stayed the same? Thanks in advance.

Michael







  #4   Report Post  
Jason Morin
 
Posts: n/a
Default

In addition to Julie's formula, you could use:

=CHOOSE((B1A1)+1+(A1=B1)*2,"Decrease","Increase", "Same")

However, mine does not take into consideration blanks - I
suppose you could add an IF in there.

HTH
Jason
Atlanta, GA

-----Original Message-----
Hi Folks - I have the follwoing data:

Col A Col B Col C
45 50 Increase
60 75 Increase
65 50 Decrease
44 44 Same

Is there a function I can use in Col C to determine if a

cell value
increased, decreased or stayed the same? Thanks in

advance.

Michael







.

  #5   Report Post  
Michael
 
Posts: n/a
Default

Julie - Thanks. I understand your example the best. Thanks to all!!

Michael



"JulieD" wrote in message
...
Hi Michael

one way

=IF(OR(ISBLANK(B1),ISBLANK(A1)),"",IF(B1=A1,"Same" ,IF(B1-A10,"Increase","De
crease")))

this only puts the words in if both A1 & B1 have data in them

Cheers
julieD



"Michael" wrote in message
news:wutId.20293$B95.14346@lakeread02...
Hi Folks - I have the follwoing data:

Col A Col B Col C
45 50 Increase
60 75 Increase
65 50 Decrease
44 44 Same

Is there a function I can use in Col C to determine if a cell value
increased, decreased or stayed the same? Thanks in advance.

Michael













  #6   Report Post  
JulieD
 
Posts: n/a
Default

Hi Michael

you're welcome and thanks for the feedback.

Cheers
JulieD

"Michael" wrote in message
news:yOuId.20294$B95.1409@lakeread02...
Julie - Thanks. I understand your example the best. Thanks to all!!

Michael



"JulieD" wrote in message
...
Hi Michael

one way

=IF(OR(ISBLANK(B1),ISBLANK(A1)),"",IF(B1=A1,"Same" ,IF(B1-A10,"Increase","De
crease")))

this only puts the words in if both A1 & B1 have data in them

Cheers
julieD



"Michael" wrote in message
news:wutId.20293$B95.14346@lakeread02...
Hi Folks - I have the follwoing data:

Col A Col B Col C
45 50 Increase
60 75 Increase
65 50 Decrease
44 44 Same

Is there a function I can use in Col C to determine if a cell value
increased, decreased or stayed the same? Thanks in advance.

Michael













  #7   Report Post  
Harlan Grove
 
Posts: n/a
Default

"Jason Morin" wrote...
In addition to Julie's formula, you could use:

=CHOOSE((B1A1)+1+(A1=B1)*2,"Decrease","Increase" ,"Same")

However, mine does not take into consideration blanks - I
suppose you could add an IF in there.

....

Or

=IF(COUNT(A1:B1)=2,CHOOSE(2+SIGN(B1-A1),"Decrease","Same","Increase"),
"Missing")

Or if this is purely for display,

=IF(COUNT(A1:B1)=2,B1-A1,"Missing")

and give the col C the number format "Increase";"Decrease";"Same".


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
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM
Find a Function to use accross different worksheets R. Hale Excel Worksheet Functions 3 November 25th 04 07:07 AM
change function variable prompts?? thinkingfield Excel Worksheet Functions 1 November 8th 04 04:01 PM
Counting Function Dilemma Simon Lloyd Excel Worksheet Functions 0 November 8th 04 03:13 PM


All times are GMT +1. The time now is 07:01 AM.

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

About Us

"It's about Microsoft Excel"