#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default if then else

I am using excel 2003 and wonder if there is a formula like "if then else"
statement, that I can use in a spreadsheet?
If there is not a formula like this then what else can I use?
Thanks for any help
Chefmike

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default if then else

Example formula entered in B1...............

=IF(A1=0,1000,A1)

If A1 is equal to 0 then return 1000, else return the value of A1


Gord Dibben MS Excel MVP

On Tue, 16 Jan 2007 16:46:01 -0800, chefmike
wrote:

I am using excel 2003 and wonder if there is a formula like "if then else"
statement, that I can use in a spreadsheet?
If there is not a formula like this then what else can I use?
Thanks for any help
Chefmike


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 268
Default if then else

I assume that if your referring to IF THEN ELSE you are of an age that used
BASIC some while ago. You're showing your age! I too know IF THEN ELSE!

Seriously, the IF function is the equivalent to IF THEN ELSE. Taking as a
very simple example =IF(a=1,"high","low"), the value in cell A1 =1 it will
return the text "high" (without quotes) and if not it will return the text
"low"The basic (oops). Each of the three elements can be very much more
complicated and include AND and OR (remember those) up to 256 characters -
but you can do more.

If you have a specific problem please post details here and we'll see what
we can do.

Regards.

Bill Ridgeway
Computer Solutions

"chefmike" wrote in message
...
I am using excel 2003 and wonder if there is a formula like "if then else"
statement, that I can use in a spreadsheet?
If there is not a formula like this then what else can I use?
Thanks for any help
Chefmike



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default if then else

Thanks Bill,
Yes I guess I am showing my age and I do remember AND and OR, I will try and
post some more information in a little while. Thanks again

"Bill Ridgeway" wrote:

I assume that if your referring to IF THEN ELSE you are of an age that used
BASIC some while ago. You're showing your age! I too know IF THEN ELSE!

Seriously, the IF function is the equivalent to IF THEN ELSE. Taking as a
very simple example =IF(a=1,"high","low"), the value in cell A1 =1 it will
return the text "high" (without quotes) and if not it will return the text
"low"The basic (oops). Each of the three elements can be very much more
complicated and include AND and OR (remember those) up to 256 characters -
but you can do more.

If you have a specific problem please post details here and we'll see what
we can do.

Regards.

Bill Ridgeway
Computer Solutions

"chefmike" wrote in message
...
I am using excel 2003 and wonder if there is a formula like "if then else"
statement, that I can use in a spreadsheet?
If there is not a formula like this then what else can I use?
Thanks for any help
Chefmike




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



All times are GMT +1. The time now is 01:11 PM.

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"