#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
EK EK is offline
external usenet poster
 
Posts: 20
Default Division

I have a Col A of numbers. I want the result in Col B to return the value if
it can be fully divided by a certain number, e.g. 5, or else return a zero.
Does anybody know what should be the formula in Col B to get those results?

Col A Col B
------ ------
23 0
45 9
12 0
16 0
25 5
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Division

=IF(MOD(A2,5),0,A2/5)
--
David Biddulph

"EK" wrote in message
...
I have a Col A of numbers. I want the result in Col B to return the value
if
it can be fully divided by a certain number, e.g. 5, or else return a
zero.
Does anybody know what should be the formula in Col B to get those
results?

Col A Col B
------ ------
23 0
45 9
12 0
16 0
25 5



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Division



"EK" wrote:

I have a Col A of numbers. I want the result in Col B to return the value if
it can be fully divided by a certain number, e.g. 5, or else return a zero.
Does anybody know what should be the formula in Col B to get those results?

Col A Col B
------ ------
23 0
45 9
12 0
16 0
25 5


YOU CAN USE BELOW MENTIONED FORMULA

=IF(MOD(A2,5)=0,A2/5,0)

H S SHASTRI

INDIA
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 help with division, please!!! swag143 Excel Worksheet Functions 1 August 16th 06 05:01 PM
Division David New Users to Excel 5 July 26th 06 11:06 AM
Division help? clayblay Excel Discussion (Misc queries) 6 January 13th 06 02:51 PM
Division help? clayblay Excel Discussion (Misc queries) 0 January 12th 06 11:54 PM
Division By Zero carl Excel Worksheet Functions 7 September 27th 05 05:07 PM


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