Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to display answer as whole number and remainder

I wanted to be able to divide one number by another and display the answer as
a whole number (not rounded up or down) and then the remainder in separate
cells so I can apply other formulas to the answers later. EG 6000 / 305 =
19 r 205
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 179
Default how to display answer as whole number and remainder

Hi ynot

do you want to have this in VBA or as a formula?

formula:
a1: 6000
a2: 305
a3: =ROUND((A1-(A2/2))/A2,0)
a4: =A1-A2*A3

hth

Carlo

"ynot" wrote:

I wanted to be able to divide one number by another and display the answer as
a whole number (not rounded up or down) and then the remainder in separate
cells so I can apply other formulas to the answers later. EG 6000 / 305 =
19 r 205

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 179
Default how to display answer as whole number and remainder

Sorry, correction:
(although the formula before works, this one is cleaner)

a3: =TRUNC(A1/A2,0)

Hth

Carlo

"Carlo" wrote:

Hi ynot

do you want to have this in VBA or as a formula?

formula:
a1: 6000
a2: 305
a3: =ROUND((A1-(A2/2))/A2,0)
a4: =A1-A2*A3

hth

Carlo

"ynot" wrote:

I wanted to be able to divide one number by another and display the answer as
a whole number (not rounded up or down) and then the remainder in separate
cells so I can apply other formulas to the answers later. EG 6000 / 305 =
19 r 205

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default how to display answer as whole number and remainder

You can use MOD() to find the remainder.

Tim


"ynot" wrote in message
...
I wanted to be able to divide one number by another and display the answer
as
a whole number (not rounded up or down) and then the remainder in separate
cells so I can apply other formulas to the answers later. EG 6000 / 305 =
19 r 205



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
convert number to dozen showing remainder hayescircus New Users to Excel 1 March 17th 10 03:26 PM
I need an answer display in one cell if (=), but another if (-) LeslieD Excel Discussion (Misc queries) 3 October 29th 07 08:50 PM
Formulas display 0 instead of answer wicked2025 Excel Discussion (Misc queries) 3 November 2nd 06 11:19 PM
How do I set up the remainder to display in Excel? Ben Dummar Excel Discussion (Misc queries) 3 May 27th 06 11:43 AM
Divide number and add remainder in another cell rhon101 Excel Discussion (Misc queries) 4 November 30th 05 02:02 AM


All times are GMT +1. The time now is 01:47 AM.

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"