Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default IF Function that returns a percentage

I am wanting to create a logic test formula that if the cell is equal to zero
then the output would be 100%, if the cell is not zero then I would divide
the cell by another one to get a percent. Here is my formula

IF(I395=0,"100",I396/I395)

It works but I want the number 100 to be stored as a percent so it shows up
on my chart. Any suggestions?


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default IF Function that returns a percentage

Hi,

Try this with the cell formatted as percent

=IF(I395=0,1,I396/I395)

Mike

"Zach" wrote:

I am wanting to create a logic test formula that if the cell is equal to zero
then the output would be 100%, if the cell is not zero then I would divide
the cell by another one to get a percent. Here is my formula

IF(I395=0,"100",I396/I395)

It works but I want the number 100 to be stored as a percent so it shows up
on my chart. Any suggestions?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default IF Function that returns a percentage

=IF(I395=0,1,I396/I395) and format the cell as %

"Zach" wrote:

I am wanting to create a logic test formula that if the cell is equal to zero
then the output would be 100%, if the cell is not zero then I would divide
the cell by another one to get a percent. Here is my formula

IF(I395=0,"100",I396/I395)

It works but I want the number 100 to be stored as a percent so it shows up
on my chart. Any suggestions?


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
IF function returns function statement rather than result ckrogers Excel Worksheet Functions 3 April 16th 09 09:21 PM
IF(AND(OR function returns #VALUE! error Linda Excel Worksheet Functions 3 April 15th 09 06:00 PM
INT Function Returns 1 bhavesh Excel Worksheet Functions 3 December 29th 06 02:48 PM
Function that Returns Worksheet Name Moset Excel Discussion (Misc queries) 3 July 12th 05 04:07 PM
If function that returns value in a cell. rayteach Excel Worksheet Functions 4 June 6th 05 03:26 AM


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