Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Is there such a thing as an "if" command in excel?

In DOS programmes there is an "if" command,which puts figures in a particular
column depending on the number you put in the "if" column. is there any way
that i can do this in an excel spreadsheet?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Is there such a thing as an "if" command in excel?

Yes.

The format is:
=IF(criteria, result if true, result if false)

Type in =IF and hit Ctrl+A for help.

Hope this helps.
Andy.

"paulas27" wrote in message
...
In DOS programmes there is an "if" command,which puts figures in a
particular
column depending on the number you put in the "if" column. is there any
way
that i can do this in an excel spreadsheet?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Is there such a thing as an "if" command in excel?

Yes ...

=IF(condition, result if True, result if False)

e.g.

=IF(A1B1,"ABC","DEF")

If A1B1 result is "ABC" otherwise it is "DEF"

ABC/DEF could be replaced by cell references/formulae

HTH

"paulas27" wrote:

In DOS programmes there is an "if" command,which puts figures in a particular
column depending on the number you put in the "if" column. is there any way
that i can do this in an excel spreadsheet?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Is there such a thing as an "if" command in excel?

Thank you.

So if say I wanted to do a formula for example so that

If column B10 = 1 the figure from A10 will go into C10
If column B10 = 2 the figure from A10 will go into D10
If column B10 = 3 the figure from A10 will go into E10 etc etc what would
the formula be for that?

Thanks




"Toppers" wrote:

Yes ...

=IF(condition, result if True, result if False)

e.g.

=IF(A1B1,"ABC","DEF")

If A1B1 result is "ABC" otherwise it is "DEF"

ABC/DEF could be replaced by cell references/formulae

HTH

"paulas27" wrote:

In DOS programmes there is an "if" command,which puts figures in a particular
column depending on the number you put in the "if" column. is there any way
that i can do this in an excel spreadsheet?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default Is there such a thing as an "if" command in excel?

That would require VBA coding, not a straight formula.

"paulas27" wrote:

Thank you.

So if say I wanted to do a formula for example so that

If column B10 = 1 the figure from A10 will go into C10
If column B10 = 2 the figure from A10 will go into D10
If column B10 = 3 the figure from A10 will go into E10 etc etc what would
the formula be for that?

Thanks




"Toppers" wrote:

Yes ...

=IF(condition, result if True, result if False)

e.g.

=IF(A1B1,"ABC","DEF")

If A1B1 result is "ABC" otherwise it is "DEF"

ABC/DEF could be replaced by cell references/formulae

HTH

"paulas27" wrote:

In DOS programmes there is an "if" command,which puts figures in a particular
column depending on the number you put in the "if" column. is there any way
that i can do this in an excel spreadsheet?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default Is there such a thing as an "if" command in excel?

Actually, one thing you could do which would not require VBA coding is the
following.

In cell C10: =IF(B10=1,A10,"") -- means "if the value in B10 is 1, THEN
input the value in A10, ELSE, do nothing."
In cell D10: =IF(B10=2,A10,"")
In cell E10: =IF(B10=3,A10,"")

etc.

Dave


"Dave F" wrote:

That would require VBA coding, not a straight formula.

"paulas27" wrote:

Thank you.

So if say I wanted to do a formula for example so that

If column B10 = 1 the figure from A10 will go into C10
If column B10 = 2 the figure from A10 will go into D10
If column B10 = 3 the figure from A10 will go into E10 etc etc what would
the formula be for that?

Thanks




"Toppers" wrote:

Yes ...

=IF(condition, result if True, result if False)

e.g.

=IF(A1B1,"ABC","DEF")

If A1B1 result is "ABC" otherwise it is "DEF"

ABC/DEF could be replaced by cell references/formulae

HTH

"paulas27" wrote:

In DOS programmes there is an "if" command,which puts figures in a particular
column depending on the number you put in the "if" column. is there any way
that i can do this in an excel spreadsheet?

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
enable automatic refresh Vass Excel Worksheet Functions 2 March 11th 06 04:36 AM
Excel 5 and Excel 2000 question. Naveen Mukkelli Excel Discussion (Misc queries) 1 March 3rd 06 09:05 AM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
Value Errors with EXCEL XP not showing up in EXCEL 2000 goodguy Links and Linking in Excel 0 July 19th 05 02:38 PM


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