Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default acknowledge divisability of $20 indicate mathematical results

Need help designing a formula to discern the nearest increment of $20.00 then
show the results - one to indicate the result of the original subtraction
(e.g., $539.00 - $520.00 with $520.00 being the result) and the other column
with the remaining amount (e.g., $19.00).

This example would include three columns: 1) The original amount, 2) the
total result of $20.00 increments, and 3) what remains from the original
amount.

Is this possible? Thanx for any assistance.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default acknowledge divisability of $20 indicate mathematical results

Here are some options to use in Cell B1 if you are testing a value in Cell A1:

If you want the next HIGHER increment of $20 use:
=Ceiling(A1,20)

If you want the closest LOWER multiple of $20 use:
=QUOTIENT(A1,20)*20

If you want the NEAREST multiple of $20 use:
=ROUND(A1/20,0)*20

For any of them, use this formula in Cell C1:
=A1-B1

Does that help?

Regards,
Ron

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 126
Default acknowledge divisability of $20 indicate mathematical results

The problem is to find the largest integer n such that n*20<=T, where T
stands for the target value.

Now, you can solve this algebraically. Since n*20<=T, n=Int(T/20).
This works only for T=0.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Multi-disciplinary business expertise
+ Technology skills
= Optimal solution to your business problem
Recipient Microsoft MVP award 2000-2005

In article ,
says...
Need help designing a formula to discern the nearest increment of $20.00 then
show the results - one to indicate the result of the original subtraction
(e.g., $539.00 - $520.00 with $520.00 being the result) and the other column
with the remaining amount (e.g., $19.00).

This example would include three columns: 1) The original amount, 2) the
total result of $20.00 increments, and 3) what remains from the original
amount.

Is this possible? Thanx for any assistance.


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
Mathematical Integration Octav Excel Worksheet Functions 5 August 13th 09 04:24 PM
Mathematical Problem Lynlea Excel Worksheet Functions 3 October 27th 06 01:43 PM
How do you get the X bar mathematical symbol? TZ Excel Discussion (Misc queries) 2 October 26th 05 02:27 AM
How to auto acknowledge a prompt box, Macro gifer Excel Programming 6 March 9th 05 01:17 AM
How to acknowledge a message box from VB program? Darwin Excel Programming 2 May 29th 04 02:15 PM


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