IF and MOD functions

  • Thread starter cincinnatikid123
  • Start date
C

cincinnatikid123

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!!!
 
L

Lars-Åke Aspelin

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
 
C

cincinnatikid123

Woohoo!!! This is great, thank you!

Lars-Ã…ke Aspelin said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top