Need a formula for tracking a number

SirCumferance

New Member
Joined
Apr 27, 2018
Messages
7
So, I have a number in B1, 1-21. I need a formula in A1 that will return a value based on that number.
i have a method that looks goodish, but not sure if efficient and/or wrong, even if it looks like the values are good.
I want it so that at 0,1,2,3,4,5,6,7,8,9 it returns 0,0,-1,-1,-1,-2,-2,-2,-3, etc. But I seem to be missing something, most likely simple. I am toying with
Code:
=-1*CEILING(M12/2,1)
to varying degrees of success. I can get the smaller numbers to work, but not the higher ones, lol.

Anyone can help this math deficient individual?
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Try this:
Code:
=INT((1-M12)/3)
 
Upvote 0
SO CLOSE!
It starts the -1 at 2, instead of 3, so the whole thing is a full number off.
BUT, you have given me another method to play with, thank you.
 
Upvote 0
Glad you got is working.

Regarding your previous post:
It starts the -1 at 2, instead of 3, so the whole thing is a full number off.
that was on purpose, per your original request:
I want it so that at 0,1,2,3,4,5,6,7,8,9 it returns 0,0,-1,-1,-1,-2,-2,-2,-3, etc.
So, if you go line-by-line:
0=0
1=0
2=-1
3=-1
etc.

In hindsight, I am guessing that was a typo in the original request.
 
Upvote 0

Forum statistics

Threads
1,214,854
Messages
6,121,941
Members
449,056
Latest member
denissimo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top