#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 298
Default Question on MOD

Hello,

Running Excel (Office 2007) on WinXP.

My spreadsheet is used for tracking sales of Girl Scout cookies. Need to
determine how many cases and/or boxes of cookies are needed. 12 boxes per
case.

Columns B-I are for each type of cookie.
Rows 4-33 are 1 scout per row.
Row 34 are totals for each type of cookie.
Row 35 has how many cases are needed for each type of cookie.
Row 36 should show how many individual boxes are needed.

Problem:
Row 36 needs to say how many individual boxes are needed.
So, this needs to be the remainder left over after determining the number of
cases.

If I use actual numbers "=MOD(37,3)", result is 1, and is correct.
The formula I'm using is: =MOD (B34,B35)
This always returns a green 0 (zero)
Why? What am I doing wrong?

Thanks,

Rich
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,091
Default Question on MOD

What number in B34? What number is in B35?

Tyro

"rich" wrote in message
...
Hello,

Running Excel (Office 2007) on WinXP.

My spreadsheet is used for tracking sales of Girl Scout cookies. Need to
determine how many cases and/or boxes of cookies are needed. 12 boxes per
case.

Columns B-I are for each type of cookie.
Rows 4-33 are 1 scout per row.
Row 34 are totals for each type of cookie.
Row 35 has how many cases are needed for each type of cookie.
Row 36 should show how many individual boxes are needed.

Problem:
Row 36 needs to say how many individual boxes are needed.
So, this needs to be the remainder left over after determining the number
of
cases.

If I use actual numbers "=MOD(37,3)", result is 1, and is correct.
The formula I'm using is: =MOD (B34,B35)
This always returns a green 0 (zero)
Why? What am I doing wrong?

Thanks,

Rich



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Question on MOD

And in answering that, make sure you look carefully at what is really in
B35.
Are you perhaps confused by (for example) thinking that you've got 3 but in
fact perhaps you've got a number like =37/3 which is 3.0833333 but only
displayed to zero decimal places?
--
David Biddulph

"Tyro" wrote in message
...
What number in B34? What number is in B35?

Tyro

"rich" wrote in message
...
Hello,

Running Excel (Office 2007) on WinXP.

My spreadsheet is used for tracking sales of Girl Scout cookies. Need to
determine how many cases and/or boxes of cookies are needed. 12 boxes
per
case.

Columns B-I are for each type of cookie.
Rows 4-33 are 1 scout per row.
Row 34 are totals for each type of cookie.
Row 35 has how many cases are needed for each type of cookie.
Row 36 should show how many individual boxes are needed.

Problem:
Row 36 needs to say how many individual boxes are needed.
So, this needs to be the remainder left over after determining the number
of
cases.

If I use actual numbers "=MOD(37,3)", result is 1, and is correct.
The formula I'm using is: =MOD (B34,B35)
This always returns a green 0 (zero)
Why? What am I doing wrong?

Thanks,

Rich





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Question on MOD

On Feb 10, 2:13*pm, rich wrote:
If I use actual numbers "=MOD(37,3)", result is 1, and is correct.

The formula I'm using is: *=MOD (B34,B35)
This always returns a green 0 (zero)
Why? *What am I doing wrong?


You are probably confusing the displayed values with the actual values
in B34 and B35. Go to each cell and format them using Scientific with
14 decimal places. (This is just a temporary format. You can use
ctrl-Z to undo it.) You will probably see that what is displayed as
37 or 3 is not exactly that value.

But I suspect that is not the real problem....

Columns B-I are for each type of cookie.
Rows 4-33 are 1 scout per row.
Row 34 are totals for each type of cookie.
Row 35 has how many cases are needed for each type of cookie.
Row 36 should show how many individual boxes are needed.
Problem:
Row 36 needs to say how many individual boxes are needed.
So, this needs to be the remainder left over after determining the
number of cases.


If B35 is "how many cases are needed" of that type of cookie, then
MOD(B34,B35) would not give the number of (additional) individual
boxes required.

I presume that you computed B35 with a formula like =B34/12, where 12
might be the number of boxes per case.

If I'm correct, then first, I would compute B35 with the formula
=INT(B34/12).

And I would compute B36 with the formula =MOD(B34,12), or with the
formula =B34 - 12*B35

PS: Don't forget to order some individual boxes of each cookie to
cover for broken boxes. My wife was GS cookie chair for our service
unit for many years, and we found that there were always broken
boxes.
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,091
Default Question on MOD

All the OP has to do is select the cell and look at the value in the formula
bar

Tyro

"joeu2004" wrote in message
...
On Feb 10, 2:13 pm, rich wrote:
If I use actual numbers "=MOD(37,3)", result is 1, and is correct.

The formula I'm using is: =MOD (B34,B35)
This always returns a green 0 (zero)
Why? What am I doing wrong?


You are probably confusing the displayed values with the actual values
in B34 and B35. Go to each cell and format them using Scientific with
14 decimal places. (This is just a temporary format. You can use
ctrl-Z to undo it.) You will probably see that what is displayed as
37 or 3 is not exactly that value.

But I suspect that is not the real problem....

Columns B-I are for each type of cookie.
Rows 4-33 are 1 scout per row.
Row 34 are totals for each type of cookie.
Row 35 has how many cases are needed for each type of cookie.
Row 36 should show how many individual boxes are needed.
Problem:
Row 36 needs to say how many individual boxes are needed.
So, this needs to be the remainder left over after determining the
number of cases.


If B35 is "how many cases are needed" of that type of cookie, then
MOD(B34,B35) would not give the number of (additional) individual
boxes required.

I presume that you computed B35 with a formula like =B34/12, where 12
might be the number of boxes per case.

If I'm correct, then first, I would compute B35 with the formula
=INT(B34/12).

And I would compute B36 with the formula =MOD(B34,12), or with the
formula =B34 - 12*B35

PS: Don't forget to order some individual boxes of each cookie to
cover for broken boxes. My wife was GS cookie chair for our service
unit for many years, and we found that there were always broken
boxes.




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,091
Default Question on MOD

Assuming, of course, the cells contain numbers and not formulas.
"Tyro" wrote in message
...
All the OP has to do is select the cell and look at the value in the
formula bar

Tyro

"joeu2004" wrote in message
...
On Feb 10, 2:13 pm, rich wrote:
If I use actual numbers "=MOD(37,3)", result is 1, and is correct.

The formula I'm using is: =MOD (B34,B35)
This always returns a green 0 (zero)
Why? What am I doing wrong?


You are probably confusing the displayed values with the actual values
in B34 and B35. Go to each cell and format them using Scientific with
14 decimal places. (This is just a temporary format. You can use
ctrl-Z to undo it.) You will probably see that what is displayed as
37 or 3 is not exactly that value.

But I suspect that is not the real problem....

Columns B-I are for each type of cookie.
Rows 4-33 are 1 scout per row.
Row 34 are totals for each type of cookie.
Row 35 has how many cases are needed for each type of cookie.
Row 36 should show how many individual boxes are needed.
Problem:
Row 36 needs to say how many individual boxes are needed.
So, this needs to be the remainder left over after determining the
number of cases.


If B35 is "how many cases are needed" of that type of cookie, then
MOD(B34,B35) would not give the number of (additional) individual
boxes required.

I presume that you computed B35 with a formula like =B34/12, where 12
might be the number of boxes per case.

If I'm correct, then first, I would compute B35 with the formula
=INT(B34/12).

And I would compute B36 with the formula =MOD(B34,12), or with the
formula =B34 - 12*B35

PS: Don't forget to order some individual boxes of each cookie to
cover for broken boxes. My wife was GS cookie chair for our service
unit for many years, and we found that there were always broken
boxes.



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
If then question EllenM Excel Worksheet Functions 2 February 28th 07 02:03 PM
AVg question Tammy Excel Discussion (Misc queries) 6 February 27th 07 08:40 PM
Another IF Question [email protected] Excel Worksheet Functions 3 December 19th 06 04:58 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
The question is an excel question that I need to figure out howto do in excel. Terry Excel Worksheet Functions 3 January 23rd 06 06:22 PM


All times are GMT +1. The time now is 12:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"