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 Using the "IF" function (I think)

Here is what I am trying to do... I have a spreadsheet with a lot of cells
with simple equations like =A1/A2 where in many cases A2 = 0. In my
spreadsheet they display as: #DIV/0! since the denominator of the
equation is 0. I would like to make it so that when the denominator in this
equation = 0, text that I choose is displayed, such as N/A . I think
this would be the IF function but I am not sure. How would I go about doing
this? If someone could provide a sample of what I need to type into the cell
to have this happen, I would appreciate it.

Thanks,
Chris
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 268
Default Using the "IF" function (I think)

=IF(ISERROR(A1/A2),"N/A",A1/A2)

"Chris from Boston" wrote:

Here is what I am trying to do... I have a spreadsheet with a lot of cells
with simple equations like =A1/A2 where in many cases A2 = 0. In my
spreadsheet they display as: #DIV/0! since the denominator of the
equation is 0. I would like to make it so that when the denominator in this
equation = 0, text that I choose is displayed, such as N/A . I think
this would be the IF function but I am not sure. How would I go about doing
this? If someone could provide a sample of what I need to type into the cell
to have this happen, I would appreciate it.

Thanks,
Chris

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Using the "IF" function (I think)

Or a slight variation:

=IF(A2=0,"n/a",A1/A2)

then if there is some other error this will show in the cell.

Hope this helps.

Pete

kassie wrote:
=IF(ISERROR(A1/A2),"N/A",A1/A2)

"Chris from Boston" wrote:

Here is what I am trying to do... I have a spreadsheet with a lot of cells
with simple equations like =A1/A2 where in many cases A2 = 0. In my
spreadsheet they display as: #DIV/0! since the denominator of the
equation is 0. I would like to make it so that when the denominator in this
equation = 0, text that I choose is displayed, such as N/A . I think
this would be the IF function but I am not sure. How would I go about doing
this? If someone could provide a sample of what I need to type into the cell
to have this happen, I would appreciate it.

Thanks,
Chris


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Using the "IF" function (I think)

Thanks a lot kassie and Pete!

- Chris


"Pete_UK" wrote:

Or a slight variation:

=IF(A2=0,"n/a",A1/A2)

then if there is some other error this will show in the cell.

Hope this helps.

Pete

kassie wrote:
=IF(ISERROR(A1/A2),"N/A",A1/A2)

"Chris from Boston" wrote:

Here is what I am trying to do... I have a spreadsheet with a lot of cells
with simple equations like =A1/A2 where in many cases A2 = 0. In my
spreadsheet they display as: #DIV/0! since the denominator of the
equation is 0. I would like to make it so that when the denominator in this
equation = 0, text that I choose is displayed, such as N/A . I think
this would be the IF function but I am not sure. How would I go about doing
this? If someone could provide a sample of what I need to type into the cell
to have this happen, I would appreciate it.

Thanks,
Chris



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
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
numerical integration integreat Excel Discussion (Misc queries) 4 May 12th 06 02:40 AM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Wild Characters in "IF" function jakar Excel Discussion (Misc queries) 3 November 17th 05 05:35 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM


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