#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default IF and MOD functions

Hello,

I have a list of numbers spanning down in a column that continuously
increases. I would like to have the next column over trigger with a "False"
or something of the like whenever the list has hit or first exceeds a certain
multiple. For example, if the "Trigger" is every multiple of 200, this is
what I envision the list looking like:

150 True
160 True
170 True
195 True
205 False (First to exceed 200, first multiple of 200)
230 True
290 True
340 True
450 False (First to exceed 400, second multiple of 200)
580 True
610 False (First to exceed 600, third multiple of 200)

If anyone can help me out with a formula or macro I would really appreciate
it, thanks!!!










  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 913
Default IF and MOD functions

On Wed, 9 Sep 2009 11:59:17 -0700, cincinnatikid123
wrote:

Hello,

I have a list of numbers spanning down in a column that continuously
increases. I would like to have the next column over trigger with a "False"
or something of the like whenever the list has hit or first exceeds a certain
multiple. For example, if the "Trigger" is every multiple of 200, this is
what I envision the list looking like:

150 True
160 True
170 True
195 True
205 False (First to exceed 200, first multiple of 200)
230 True
290 True
340 True
450 False (First to exceed 400, second multiple of 200)
580 True
610 False (First to exceed 600, third multiple of 200)

If anyone can help me out with a formula or macro I would really appreciate
it, thanks!!!



If your list is in the A column starting on row 1, try the following
formulas:

In cell B1:
=A1<200

In cell B2:
=FLOOR(A2,200)=FLOOR(A1,200)

Copy cell B2 down as far as you have data in column A.

Hope this helps / Lars-Åke
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default IF and MOD functions

Woohoo!!! This is great, thank you!

"Lars-Ã…ke Aspelin" wrote:

On Wed, 9 Sep 2009 11:59:17 -0700, cincinnatikid123
wrote:

Hello,

I have a list of numbers spanning down in a column that continuously
increases. I would like to have the next column over trigger with a "False"
or something of the like whenever the list has hit or first exceeds a certain
multiple. For example, if the "Trigger" is every multiple of 200, this is
what I envision the list looking like:

150 True
160 True
170 True
195 True
205 False (First to exceed 200, first multiple of 200)
230 True
290 True
340 True
450 False (First to exceed 400, second multiple of 200)
580 True
610 False (First to exceed 600, third multiple of 200)

If anyone can help me out with a formula or macro I would really appreciate
it, thanks!!!



If your list is in the A column starting on row 1, try the following
formulas:

In cell B1:
=A1<200

In cell B2:
=FLOOR(A2,200)=FLOOR(A1,200)

Copy cell B2 down as far as you have data in column A.

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
How to convert cell formula functions to code functions Adnan Excel Discussion (Misc queries) 1 October 1st 08 08:30 PM
formula/functions for average and if functions Petu71 Excel Worksheet Functions 2 August 5th 07 08:25 PM
efficiency: database functions vs. math functions vs. array formula nickname Excel Discussion (Misc queries) 2 July 14th 06 04:26 AM
Looking for a site with functions that substitute the ATP functions Franz Verga Excel Worksheet Functions 3 June 24th 06 04:30 AM
Nesting functions in the functions dialog box cs170a Excel Worksheet Functions 0 June 10th 05 10:36 PM


All times are GMT +1. The time now is 01:25 PM.

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"