View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.misc
BoniM BoniM is offline
external usenet poster
 
Posts: 353
Default Multiples of 1000 in cells?

=IF(A1=0,FLOOR(A1-50000,1000),CEILING(-A1+50000,1000))*SIGN(A1)

With first value in A1, above formula in A2 and copied right, and =A1-A2
entered in A3 and copied right, you get the following resurlts:

-410700 99735 109040
-461000 49000 59000
50300 50735 50040



"Confused" wrote:

if i say, "if a #<0, then put the # i'm trying to determine up to the next
highest multiple of 1,000" or "If #0, then put the # i'm trying to down to
the last multiple of 1,000."
-For example, if the number was -410,700 and i was trying to get it to equal
50,000, so i would add 460,700. however, 460,700 can only be increments of
1,000, so since -410,700 is less than zero, i would make 460,000 go up to the
next highest multiple of 1,000 which would be 461,000. this keeps my result
at greather than or equal to 50,000.
HOW WOULD I PUT THAT INTO AN EQUATION?!?

"Confused" wrote:

How can I write and embedded IF statement that only occurs in multiples of
1000?