#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default IF Function?

Hi,

I have two cells, and I divide them, but need to set another cell that
would: if the number for the divides cells is infinite that it would show 0.
How to put "infinite" into if function? or is there another, better one?

thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default IF Function?

You can't store infinite in Excel; the max number is 9.99999999999999E+307
But maybe you mean to avoid division by zero:

=IF(B1=0,0,A1/B1)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"eXecutioner28" wrote in message
...
| Hi,
|
| I have two cells, and I divide them, but need to set another cell that
| would: if the number for the divides cells is infinite that it would show 0.
| How to put "infinite" into if function? or is there another, better one?
|
| thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default IF Function?

I want to do this then, to divide like this 5/0 and to get 0 and not #DIJ/0.
Is this possible? please anwser asap

thanks

Korisnik "Niek Otten" napisao je:

You can't store infinite in Excel; the max number is 9.99999999999999E+307
But maybe you mean to avoid division by zero:

=IF(B1=0,0,A1/B1)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"eXecutioner28" wrote in message
...
| Hi,
|
| I have two cells, and I divide them, but need to set another cell that
| would: if the number for the divides cells is infinite that it would show 0.
| How to put "infinite" into if function? or is there another, better one?
|
| thanks



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default IF Function?

That is what I meant:

=IF(B1=0,0,A1/B1)

If B1 is zero, the formula will return zero, otherwise it will return A1/B1

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"eXecutioner28" wrote in message
...
|I want to do this then, to divide like this 5/0 and to get 0 and not #DIJ/0.
| Is this possible? please anwser asap
|
| thanks
|
| Korisnik "Niek Otten" napisao je:
|
| You can't store infinite in Excel; the max number is 9.99999999999999E+307
| But maybe you mean to avoid division by zero:
|
| =IF(B1=0,0,A1/B1)
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "eXecutioner28" wrote in message
| ...
| | Hi,
| |
| | I have two cells, and I divide them, but need to set another cell that
| | would: if the number for the divides cells is infinite that it would show 0.
| | How to put "infinite" into if function? or is there another, better one?
| |
| | thanks
|
|
|


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default IF Function?

ok, but what if in C1 value is 5 and in D1 is 0, then cell E1(C1/D1) is
returning #DIJ/0! and I would like it to return 0. Is that possible?

Korisnik "Niek Otten" napisao je:

That is what I meant:

=IF(B1=0,0,A1/B1)

If B1 is zero, the formula will return zero, otherwise it will return A1/B1

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"eXecutioner28" wrote in message
...
|I want to do this then, to divide like this 5/0 and to get 0 and not #DIJ/0.
| Is this possible? please anwser asap
|
| thanks
|
| Korisnik "Niek Otten" napisao je:
|
| You can't store infinite in Excel; the max number is 9.99999999999999E+307
| But maybe you mean to avoid division by zero:
|
| =IF(B1=0,0,A1/B1)
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "eXecutioner28" wrote in message
| ...
| | Hi,
| |
| | I have two cells, and I divide them, but need to set another cell that
| | would: if the number for the divides cells is infinite that it would show 0.
| | How to put "infinite" into if function? or is there another, better one?
| |
| | thanks
|
|
|





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default IF Function?

In E1:

=IF(D1=0,0,C1/D1)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"eXecutioner28" wrote in message
...
| ok, but what if in C1 value is 5 and in D1 is 0, then cell E1(C1/D1) is
| returning #DIJ/0! and I would like it to return 0. Is that possible?
|
| Korisnik "Niek Otten" napisao je:
|
| That is what I meant:
|
| =IF(B1=0,0,A1/B1)
|
| If B1 is zero, the formula will return zero, otherwise it will return A1/B1
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "eXecutioner28" wrote in message
| ...
| |I want to do this then, to divide like this 5/0 and to get 0 and not #DIJ/0.
| | Is this possible? please anwser asap
| |
| | thanks
| |
| | Korisnik "Niek Otten" napisao je:
| |
| | You can't store infinite in Excel; the max number is 9.99999999999999E+307
| | But maybe you mean to avoid division by zero:
| |
| | =IF(B1=0,0,A1/B1)
| |
| | --
| | Kind regards,
| |
| | Niek Otten
| | Microsoft MVP - Excel
| |
| | "eXecutioner28" wrote in message
| | ...
| | | Hi,
| | |
| | | I have two cells, and I divide them, but need to set another cell that
| | | would: if the number for the divides cells is infinite that it would show 0.
| | | How to put "infinite" into if function? or is there another, better one?
| | |
| | | thanks
| |
| |
| |
|
|
|


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default IF Function?

ok, thanks but what if i have like this:
C9 - 0
D9 - 0

and in E9 I have formula like this: =450/C9/D9. Is it possible to get 0 and
not this #DIJ/0!. Can you explain the process?

thank you very much

bye


Korisnik "Niek Otten" napisao je:

In E1:

=IF(D1=0,0,C1/D1)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"eXecutioner28" wrote in message
...
| ok, but what if in C1 value is 5 and in D1 is 0, then cell E1(C1/D1) is
| returning #DIJ/0! and I would like it to return 0. Is that possible?
|
| Korisnik "Niek Otten" napisao je:
|
| That is what I meant:
|
| =IF(B1=0,0,A1/B1)
|
| If B1 is zero, the formula will return zero, otherwise it will return A1/B1
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "eXecutioner28" wrote in message
| ...
| |I want to do this then, to divide like this 5/0 and to get 0 and not #DIJ/0.
| | Is this possible? please anwser asap
| |
| | thanks
| |
| | Korisnik "Niek Otten" napisao je:
| |
| | You can't store infinite in Excel; the max number is 9.99999999999999E+307
| | But maybe you mean to avoid division by zero:
| |
| | =IF(B1=0,0,A1/B1)
| |
| | --
| | Kind regards,
| |
| | Niek Otten
| | Microsoft MVP - Excel
| |
| | "eXecutioner28" wrote in message
| | ...
| | | Hi,
| | |
| | | I have two cells, and I divide them, but need to set another cell that
| | | would: if the number for the divides cells is infinite that it would show 0.
| | | How to put "infinite" into if function? or is there another, better one?
| | |
| | | thanks
| |
| |
| |
|
|
|



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default IF Function?

=IF(OR(C9=0,D9=0),0,450/C9/D9)

Just check each divider and if any of them is zero, return zero

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"eXecutioner28" wrote in message
...
| ok, thanks but what if i have like this:
| C9 - 0
| D9 - 0
|
| and in E9 I have formula like this: =450/C9/D9. Is it possible to get 0 and
| not this #DIJ/0!. Can you explain the process?
|
| thank you very much
|
| bye
|
|
| Korisnik "Niek Otten" napisao je:
|
| In E1:
|
| =IF(D1=0,0,C1/D1)
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "eXecutioner28" wrote in message
| ...
| | ok, but what if in C1 value is 5 and in D1 is 0, then cell E1(C1/D1) is
| | returning #DIJ/0! and I would like it to return 0. Is that possible?
| |
| | Korisnik "Niek Otten" napisao je:
| |
| | That is what I meant:
| |
| | =IF(B1=0,0,A1/B1)
| |
| | If B1 is zero, the formula will return zero, otherwise it will return A1/B1
| |
| | --
| | Kind regards,
| |
| | Niek Otten
| | Microsoft MVP - Excel
| |
| | "eXecutioner28" wrote in message
| | ...
| | |I want to do this then, to divide like this 5/0 and to get 0 and not #DIJ/0.
| | | Is this possible? please anwser asap
| | |
| | | thanks
| | |
| | | Korisnik "Niek Otten" napisao je:
| | |
| | | You can't store infinite in Excel; the max number is 9.99999999999999E+307
| | | But maybe you mean to avoid division by zero:
| | |
| | | =IF(B1=0,0,A1/B1)
| | |
| | | --
| | | Kind regards,
| | |
| | | Niek Otten
| | | Microsoft MVP - Excel
| | |
| | | "eXecutioner28" wrote in message
| | | ...
| | | | Hi,
| | | |
| | | | I have two cells, and I divide them, but need to set another cell that
| | | | would: if the number for the divides cells is infinite that it would show 0.
| | | | How to put "infinite" into if function? or is there another, better one?
| | | |
| | | | thanks
| | |
| | |
| | |
| |
| |
| |
|
|
|


  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 947
Default IF Function?

Hi. If using Excel 2007, maybe...

=IFERROR(450/C9/D9,0)

Just a side note...Your examples have been dividing two cells.
However, with 450/C9/D9 you are actually multiplying them:
450 / (C9*D9)

Just throwing this out...did you mean: 450 / (C9/D9) ?
--
HTH :)
Dana DeLouis
Windows XP & Office 2007


"eXecutioner28" wrote in message
...
ok, thanks but what if i have like this:
C9 - 0
D9 - 0

and in E9 I have formula like this: =450/C9/D9. Is it possible to get 0
and
not this #DIJ/0!. Can you explain the process?

thank you very much

bye


Korisnik "Niek Otten" napisao je:

In E1:

=IF(D1=0,0,C1/D1)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"eXecutioner28" wrote in
message
...
| ok, but what if in C1 value is 5 and in D1 is 0, then cell E1(C1/D1) is
| returning #DIJ/0! and I would like it to return 0. Is that possible?
|
| Korisnik "Niek Otten" napisao je:
|
| That is what I meant:
|
| =IF(B1=0,0,A1/B1)
|
| If B1 is zero, the formula will return zero, otherwise it will return
A1/B1
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "eXecutioner28" wrote in
message
| ...
| |I want to do this then, to divide like this 5/0 and to get 0 and not
#DIJ/0.
| | Is this possible? please anwser asap
| |
| | thanks
| |
| | Korisnik "Niek Otten" napisao je:
| |
| | You can't store infinite in Excel; the max number is
9.99999999999999E+307
| | But maybe you mean to avoid division by zero:
| |
| | =IF(B1=0,0,A1/B1)
| |
| | --
| | Kind regards,
| |
| | Niek Otten
| | Microsoft MVP - Excel
| |
| | "eXecutioner28" wrote
in message
| | ...
| | | Hi,
| | |
| | | I have two cells, and I divide them, but need to set another
cell that
| | | would: if the number for the divides cells is infinite that it
would show 0.
| | | How to put "infinite" into if function? or is there another,
better one?
| | |
| | | thanks
| |
| |
| |
|
|
|





  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default IF Function?

Oh, this is great... thanks a lot, it works like I imagined...

thanks again

bye

Korisnik "Niek Otten" napisao je:

=IF(OR(C9=0,D9=0),0,450/C9/D9)

Just check each divider and if any of them is zero, return zero

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"eXecutioner28" wrote in message
...
| ok, thanks but what if i have like this:
| C9 - 0
| D9 - 0
|
| and in E9 I have formula like this: =450/C9/D9. Is it possible to get 0 and
| not this #DIJ/0!. Can you explain the process?
|
| thank you very much
|
| bye
|
|
| Korisnik "Niek Otten" napisao je:
|
| In E1:
|
| =IF(D1=0,0,C1/D1)
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "eXecutioner28" wrote in message
| ...
| | ok, but what if in C1 value is 5 and in D1 is 0, then cell E1(C1/D1) is
| | returning #DIJ/0! and I would like it to return 0. Is that possible?
| |
| | Korisnik "Niek Otten" napisao je:
| |
| | That is what I meant:
| |
| | =IF(B1=0,0,A1/B1)
| |
| | If B1 is zero, the formula will return zero, otherwise it will return A1/B1
| |
| | --
| | Kind regards,
| |
| | Niek Otten
| | Microsoft MVP - Excel
| |
| | "eXecutioner28" wrote in message
| | ...
| | |I want to do this then, to divide like this 5/0 and to get 0 and not #DIJ/0.
| | | Is this possible? please anwser asap
| | |
| | | thanks
| | |
| | | Korisnik "Niek Otten" napisao je:
| | |
| | | You can't store infinite in Excel; the max number is 9.99999999999999E+307
| | | But maybe you mean to avoid division by zero:
| | |
| | | =IF(B1=0,0,A1/B1)
| | |
| | | --
| | | Kind regards,
| | |
| | | Niek Otten
| | | Microsoft MVP - Excel
| | |
| | | "eXecutioner28" wrote in message
| | | ...
| | | | Hi,
| | | |
| | | | I have two cells, and I divide them, but need to set another cell that
| | | | would: if the number for the divides cells is infinite that it would show 0.
| | | | How to put "infinite" into if function? or is there another, better one?
| | | |
| | | | thanks
| | |
| | |
| | |
| |
| |
| |
|
|
|



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
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM
How do I nesting subtotal function within average function in Exc Amy Yeh Excel Worksheet Functions 4 January 19th 05 06:23 PM
Nested IF Function, Date Comparing, and NetworkDays Function carl Excel Worksheet Functions 2 December 29th 04 09:57 PM


All times are GMT +1. The time now is 05:24 AM.

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"