Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tim Tim is offline
external usenet poster
 
Posts: 408
Default how do i create a divisible formula

I use a xl doc that has numbers in the cells that need to be divisible by 15.
Can i incert a formula that will check the number in B5 and display an error
message in F10 if the number in B5 is not divisible by 15.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default how do i create a divisible formula

Tim,

Try this in F10

=AND(B5<"",MOD(B5,15)=0)

Mike

"Tim" wrote:

I use a xl doc that has numbers in the cells that need to be divisible by 15.
Can i incert a formula that will check the number in B5 and display an error
message in F10 if the number in B5 is not divisible by 15.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 74
Default how do i create a divisible formula

Tim,

Insert this formula into F10:
=IF(B5/15-INT(B5/15)0,0,1)

This will return a 1 or a 0 depending on whether or not it is divisible by 15.
You can change the 1 and 0 to any message you would like, just use quotes if
it is text.

Doug

"Mike H" wrote:

Tim,

Try this in F10

=AND(B5<"",MOD(B5,15)=0)

Mike

"Tim" wrote:

I use a xl doc that has numbers in the cells that need to be divisible by 15.
Can i incert a formula that will check the number in B5 and display an error
message in F10 if the number in B5 is not divisible by 15.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default how do i create a divisible formula

On Wed, 6 Jan 2010 05:32:01 -0800, Tim
wrote:

I use a xl doc that has numbers in the cells that need to be divisible by 15.
Can i incert a formula that will check the number in B5 and display an error
message in F10 if the number in B5 is not divisible by 15.



Try this formula in cell F10:

=IF(MOD(B5,15)0,"error message","")

Hope this helps / Lars-Åke
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
Sums divisible by 12 Guy[_2_] Excel Worksheet Functions 2 August 12th 08 12:20 AM
getting numbers that are divisible by 4 ramana Excel Worksheet Functions 4 June 19th 07 08:18 AM
Check if Equally Divisible John Excel Worksheet Functions 4 April 1st 06 02:10 PM
need a conditional formula to generate numbers divisible by 4 between a given starting no. & end No. ramana Excel Worksheet Functions 5 October 21st 05 07:39 AM
how do an @if formula to meet criteria where x is divisible by 12 lax_fan Excel Worksheet Functions 2 May 16th 05 11:12 PM


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