Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default getting #DIV/0! when calculating percentage

hi all, i'm not much of a guru with Excel. how do i prevent the #DIV/0! when
a column i'm dividing by is a 0.

i'm using Excel to calculate the Delta %. i'm using a simple formula
(K-L)/K. a lot of rows have values but obviously if for example K9 is 0 i'm
going to get an error. any ideas?

TIA
Ted



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default getting #DIV/0! when calculating percentage

Hi Ted,
Try this formula:
=IF(ISNA((K-L)/K),"",(K-L)/K)
Regards - Dave

"Ted" wrote:

hi all, i'm not much of a guru with Excel. how do i prevent the #DIV/0! when
a column i'm dividing by is a 0.

i'm using Excel to calculate the Delta %. i'm using a simple formula
(K-L)/K. a lot of rows have values but obviously if for example K9 is 0 i'm
going to get an error. any ideas?

TIA
Ted




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default getting #DIV/0! when calculating percentage

thanks for the response Dave. unfortunately that didn't work. i was thinking
about something like that but i don't know the function in Excel.

"Dave" wrote in message
...
Hi Ted,
Try this formula:
=IF(ISNA((K-L)/K),"",(K-L)/K)
Regards - Dave

"Ted" wrote:

hi all, i'm not much of a guru with Excel. how do i prevent the #DIV/0!
when
a column i'm dividing by is a 0.

i'm using Excel to calculate the Delta %. i'm using a simple formula
(K-L)/K. a lot of rows have values but obviously if for example K9 is 0
i'm
going to get an error. any ideas?

TIA
Ted








  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default getting #DIV/0! when calculating percentage

you did however point me in the right direction. i simplified it to
=IF(K=0,"",(K-L)/K) and that did work. in access its iif not if...thats what
was throwing me off. thanks for your help.

"Dave" wrote in message
...
Hi Ted,
Try this formula:
=IF(ISNA((K-L)/K),"",(K-L)/K)
Regards - Dave

"Ted" wrote:

hi all, i'm not much of a guru with Excel. how do i prevent the #DIV/0!
when
a column i'm dividing by is a 0.

i'm using Excel to calculate the Delta %. i'm using a simple formula
(K-L)/K. a lot of rows have values but obviously if for example K9 is 0
i'm
going to get an error. any ideas?

TIA
Ted








  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ASA ASA is offline
external usenet poster
 
Posts: 13
Default getting #DIV/0! when calculating percentage

Should be =IF(ISERROR((K-L)/K),"",(K-L)/K)


"Dave" wrote:

Hi Ted,
Try this formula:
=IF(ISNA((K-L)/K),"",(K-L)/K)
Regards - Dave

"Ted" wrote:

hi all, i'm not much of a guru with Excel. how do i prevent the #DIV/0! when
a column i'm dividing by is a 0.

i'm using Excel to calculate the Delta %. i'm using a simple formula
(K-L)/K. a lot of rows have values but obviously if for example K9 is 0 i'm
going to get an error. any ideas?

TIA
Ted




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
calculating a percentage Jennnifer Excel Discussion (Misc queries) 4 January 21st 08 11:04 PM
Calculating a Percentage Reegan Excel Worksheet Functions 2 November 9th 06 12:04 PM
Calculating a percentage with the end percentage in mind Shadowshady Excel Discussion (Misc queries) 2 June 17th 06 09:41 AM
Calculating Percentage mconnolly Excel Worksheet Functions 1 August 29th 05 09:48 PM
Calculating percentage mac_see Excel Worksheet Functions 1 March 12th 05 07:11 PM


All times are GMT +1. The time now is 08:48 PM.

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"