#1   Report Post  
Posted to microsoft.public.excel.misc
compaq
 
Posts: n/a
Default The If function


I have 3 columns, (A) which has calendar months, (B) which is a cost
figure for that month and (C) a “higher” or “lower” statement on that
months cost compared to the previous months.

I have used the formula =IF(C2C3,"higher","lower") to show this, which
works, but where I have copied this formula down to the other cells.

The problem I want to rsolve is that in months where there is no data,
it defaults to a Worse statement, I require it to be empty.

I use this spreadsheet on my pocket pc, so it does not support VB or
conditional formatting. Is there a way of only allowing the statement
if there is data in the cells. I have used the isnumber function, but
this does not work.

Any help appreciated.


Thanks.


--
compaq
------------------------------------------------------------------------
compaq's Profile: http://www.excelforum.com/member.php...o&userid=35484
View this thread: http://www.excelforum.com/showthread...hreadid=552604

  #2   Report Post  
Posted to microsoft.public.excel.misc
SamuelT
 
Posts: n/a
Default The If function


Hi,

Try this:

=IF(C2="","",IF(C2C3,"higher","lower"))


--
SamuelT
------------------------------------------------------------------------
SamuelT's Profile: http://www.excelforum.com/member.php...o&userid=27501
View this thread: http://www.excelforum.com/showthread...hreadid=552604

  #3   Report Post  
Posted to microsoft.public.excel.misc
compaq
 
Posts: n/a
Default The If function


SamuelT Wrote:
Hi,

Try this:

=IF(C2="","",IF(C2C3,"higher","lower"))



Works a treat, thank you for your help.:)


--
compaq
------------------------------------------------------------------------
compaq's Profile: http://www.excelforum.com/member.php...o&userid=35484
View this thread: http://www.excelforum.com/showthread...hreadid=552604

  #4   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default The If function

=IF(COUNT(C2:C3)=2,IF(C2C3,"higher","lower"),"")

Vaya con Dios,
Chuck, CABGx3




"compaq" wrote:


I have 3 columns, (A) which has calendar months, (B) which is a cost
figure for that month and (C) a €śhigher€ť or €ślower€ť statement on that
months cost compared to the previous months.

I have used the formula =IF(C2C3,"higher","lower") to show this, which
works, but where I have copied this formula down to the other cells.

The problem I want to rsolve is that in months where there is no data,
it defaults to a Worse statement, I require it to be empty.

I use this spreadsheet on my pocket pc, so it does not support VB or
conditional formatting. Is there a way of only allowing the statement
if there is data in the cells. I have used the isnumber function, but
this does not work.

Any help appreciated.


Thanks.


--
compaq
------------------------------------------------------------------------
compaq's Profile: http://www.excelforum.com/member.php...o&userid=35484
View this thread: http://www.excelforum.com/showthread...hreadid=552604


  #5   Report Post  
Posted to microsoft.public.excel.misc
compaq
 
Posts: n/a
Default The If function


Hi Again,

Thanks for responding, both formulas work, so thanks for that.

I seem to have another problem though, if I have data that is the same,
it defaults to Lower. Can I get a third Text to appear "Same"?

Thanks again.


--
compaq
------------------------------------------------------------------------
compaq's Profile: http://www.excelforum.com/member.php...o&userid=35484
View this thread: http://www.excelforum.com/showthread...hreadid=552604



  #6   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default The If function


=IF(COUNT(C2:C3)=2,IF(C2C3,"higher",IF(C2<C3,"low er","same")))

Vaya con Dios,
Chuck, CABGx3


"compaq" wrote:


Hi Again,

Thanks for responding, both formulas work, so thanks for that.

I seem to have another problem though, if I have data that is the same,
it defaults to Lower. Can I get a third Text to appear "Same"?

Thanks again.


--
compaq
------------------------------------------------------------------------
compaq's Profile: http://www.excelforum.com/member.php...o&userid=35484
View this thread: http://www.excelforum.com/showthread...hreadid=552604


  #7   Report Post  
Posted to microsoft.public.excel.misc
compaq
 
Posts: n/a
Default The If function


CLR Wrote:
=IF(COUNT(C2:C3)=2,IF(C2C3,"higher",IF(C2<C3,"low er","same")))

Vaya con Dios,
Chuck, CABGx3


Hi,

Thanks for the response. Your suggestion works, but I have my original
problem, in future months without data, it defaults to "false" where I
need it to be blank.


Thanks



--
compaq
------------------------------------------------------------------------
compaq's Profile: http://www.excelforum.com/member.php...o&userid=35484
View this thread: http://www.excelforum.com/showthread...hreadid=552604

  #8   Report Post  
Posted to microsoft.public.excel.misc
SamuelT
 
Posts: n/a
Default The If function


=IF(C2="","",IF(C2C3,"higher",IF(C2=C3,"Same","Lo wer")))


--
SamuelT
------------------------------------------------------------------------
SamuelT's Profile: http://www.excelforum.com/member.php...o&userid=27501
View this thread: http://www.excelforum.com/showthread...hreadid=552604

  #9   Report Post  
Posted to microsoft.public.excel.misc
compaq
 
Posts: n/a
Default The If function


SamuelT Wrote:
=IF(C2="","",IF(C2C3,"higher",IF(C2=C3,"Same","Lo wer")))



Thats the one! Thank you all for your help. What a great site.


--
compaq
------------------------------------------------------------------------
compaq's Profile: http://www.excelforum.com/member.php...o&userid=35484
View this thread: http://www.excelforum.com/showthread...hreadid=552604

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
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 08:53 PM.

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"