Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default different values shown when #DIV/0! error is returned as result

When doing simple division, and when #DIV/0! Error occurs i need two
different options returned as results:

C=A/B - value for C should be €śnot enough data€ť when there is no entry in
cell B; cell B is blank

C=A/B - value for C should be €śno items€ť when entry in cell B = 0; 0 is
entered in cell B


or,

A B C
1 10 2 5
2 not enough data
3 5 0 no items
4 0 no items
5 0 0 no items
6 0 not enough data
..
..
..
etc

thanx
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default different values shown when #DIV/0! error is returned as result

Hello

=IF(A1="","Not Enough Data",IF(B1="","No Items",A1/B1))
--
Kevin Smith :o)


"Danko Jotanovic" wrote:

When doing simple division, and when #DIV/0! Error occurs i need two
different options returned as results:

C=A/B - value for C should be €śnot enough data€ť when there is no entry in
cell B; cell B is blank

C=A/B - value for C should be €śno items€ť when entry in cell B = 0; 0 is
entered in cell B


or,

A B C
1 10 2 5
2 not enough data
3 5 0 no items
4 0 no items
5 0 0 no items
6 0 not enough data
.
.
.
etc

thanx

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default different values shown when #DIV/0! error is returned as result

Hi,

=IF(B1="","Not Enough Data",IF(OR(A1=0,B1=0),"No Items",A1/B1))


Mike

"Danko Jotanovic" wrote:

When doing simple division, and when #DIV/0! Error occurs i need two
different options returned as results:

C=A/B - value for C should be €śnot enough data€ť when there is no entry in
cell B; cell B is blank

C=A/B - value for C should be €śno items€ť when entry in cell B = 0; 0 is
entered in cell B


or,

A B C
1 10 2 5
2 not enough data
3 5 0 no items
4 0 no items
5 0 0 no items
6 0 not enough data
.
.
.
etc

thanx

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default different values shown when #DIV/0! error is returned as resul

just partly true. you probably didn't scroll all the way down. your solution
returns "Not Enough Data" in both cases.

nevertheless this one is a GREAT hint !!!

actualy,
=IF(B1="", "Not Enough Data", IF(B1=0, "No Items", A1/B1))

does EXACTLY what i need.

Kevin, thanx a lot

"Kevin Smith" wrote:

Hello

=IF(A1="","Not Enough Data",IF(B1="","No Items",A1/B1))
--
Kevin Smith :o)


"Danko Jotanovic" wrote:

When doing simple division, and when #DIV/0! Error occurs i need two
different options returned as results:

C=A/B - value for C should be €śnot enough data€ť when there is no entry in
cell B; cell B is blank

C=A/B - value for C should be €śno items€ť when entry in cell B = 0; 0 is
entered in cell B


or,

A B C
1 10 2 5
2 not enough data
3 5 0 no items
4 0 no items
5 0 0 no items
6 0 not enough data
.
.
.
etc

thanx

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
VLookup multiple values - sum returned values into single cell se7098 Excel Worksheet Functions 12 April 2nd 23 07:32 PM
why result 77.1 * 850 shown 100000 in excel 2007? nth Excel Discussion (Misc queries) 4 February 9th 08 07:14 PM
Excel, function, result to be returned in another designated cell EXCEL WORKSHEET FUNCTIONS Excel Worksheet Functions 3 July 21st 06 06:24 PM
Result not being returned Pat Excel Worksheet Functions 8 February 19th 05 05:45 PM
Error being returned Pat Excel Worksheet Functions 4 January 17th 05 04:33 PM


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